add responsive changes
This commit is contained in:
1 parent
088d01b256
commit
2eea587e8b
11 files changed
+132
-71
No files matched your search
@@ -7,6 +7,8 @@ import { formatChf } from "../shop/money";
|
||||
import { useShop } from "../shop/useShop";
|
||||
import "./ProductDetailPage.css";
|
||||
|
||||
const STORY_PANEL_IMAGE = "/placeholder-character-panel.jpg";
|
||||
|
||||
const priceToCents = (price) => {
|
||||
const match = String(price).match(/(\d+)/);
|
||||
return match ? Number(match[1]) * 100 : 0;
|
||||
@@ -207,7 +209,14 @@ function ProductStorySection({ perfume }) {
|
||||
</div>
|
||||
|
||||
<div className="story-visual-panel" data-reveal="fade">
|
||||
<div>
|
||||
<img
|
||||
className="story-visual-image"
|
||||
src={STORY_PANEL_IMAGE}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<div className="story-visual-content">
|
||||
<span>Material-Komposition</span>
|
||||
<div className="material-tags">
|
||||
{perfume.materialTags.map((tag) => (
|
||||
@@ -528,7 +537,7 @@ function ProductDetailContent({ perfumeSlug }) {
|
||||
|
||||
return (
|
||||
<div className={`detail-page ${isTransitionArriving ? "is-transition-arriving" : ""}`}>
|
||||
<SharedNavbar variant="light" />
|
||||
<SharedNavbar variant="hero" />
|
||||
|
||||
<main className="shell">
|
||||
<div className="detail-topbar" data-product-transition-reveal>
|
||||
|
||||
Reference in new issue
Block a user