Compare commits
3
Commits
fb801e3752
...
3f2c51eb1f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f2c51eb1f | ||
|
|
0786fbac8b | ||
|
|
ab588fd27b |
No files matched your search
@@ -231,11 +231,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.structure-block:nth-of-type(1)::before {
|
.structure-block:nth-of-type(1)::before {
|
||||||
background: rgba(255, 106, 0, 0.22);
|
background: #ffdecc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.structure-block:nth-of-type(2)::before {
|
.structure-block:nth-of-type(2)::before {
|
||||||
background: rgba(255, 106, 0, 0.45);
|
background: #ffad80;
|
||||||
}
|
}
|
||||||
|
|
||||||
.structure-block:nth-of-type(3)::before {
|
.structure-block:nth-of-type(3)::before {
|
||||||
@@ -288,18 +288,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.structure-block:nth-of-type(1) .structure-tag {
|
.structure-block:nth-of-type(1) .structure-tag {
|
||||||
background: rgba(255, 106, 0, 0.05);
|
background: #ffffff;
|
||||||
border-color: rgba(255, 106, 0, 0.16);
|
border-color: #f0e6df;
|
||||||
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.structure-block:nth-of-type(2) .structure-tag {
|
.structure-block:nth-of-type(2) .structure-tag {
|
||||||
background: rgba(255, 106, 0, 0.08);
|
background: #fff5ed;
|
||||||
border-color: rgba(255, 106, 0, 0.24);
|
border-color: #ffdecc;
|
||||||
|
color: #444;
|
||||||
}
|
}
|
||||||
|
|
||||||
.structure-block:nth-of-type(3) .structure-tag {
|
.structure-block:nth-of-type(3) .structure-tag {
|
||||||
background: rgba(255, 106, 0, 0.12);
|
background: #ffece0;
|
||||||
border-color: rgba(255, 106, 0, 0.32);
|
border-color: #ffad80;
|
||||||
|
color: #1f1f1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Duftstruktur End --- */
|
/* --- Duftstruktur End --- */
|
||||||
@@ -311,11 +314,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
padding: 22px;
|
padding: 22px;
|
||||||
background: linear-gradient(
|
background: #fff8f5;
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.06),
|
|
||||||
rgba(255, 106, 0, 0.02)
|
|
||||||
);
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.18);
|
border: 1px solid rgba(255, 106, 0, 0.18);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,11 +355,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.structure-info-dot--light {
|
.structure-info-dot--light {
|
||||||
background: rgba(255, 106, 0, 0.25);
|
background: #ffdecc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.structure-info-dot--mid {
|
.structure-info-dot--mid {
|
||||||
background: rgba(255, 106, 0, 0.5);
|
background: #ffad80;
|
||||||
}
|
}
|
||||||
|
|
||||||
.structure-info-dot--strong {
|
.structure-info-dot--strong {
|
||||||
@@ -395,6 +394,79 @@
|
|||||||
|
|
||||||
/* --- Mood Box End --- */
|
/* --- Mood Box End --- */
|
||||||
|
|
||||||
|
/* --- Accordion / Dropdown Components Start --- */
|
||||||
|
|
||||||
|
.accordion-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
margin-top: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion-item {
|
||||||
|
background: #f5f5f5;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
border-left: 3px solid #d9d9d9; /* Subtiler Rahmen im Normalzustand */
|
||||||
|
transition: border-color 0.2s ease, background 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion-item.is-open {
|
||||||
|
border-left-color: #ff6a00; /* Farbabgleich: Orange, wenn offen */
|
||||||
|
background: #fcfcfc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion-toggle {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
padding: 18px 20px;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 12px;
|
||||||
|
letter-spacing: 0.24em;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #1f1f1f;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion-toggle:hover {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 1;
|
||||||
|
color: #ff6a00;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion-content {
|
||||||
|
padding: 0 20px 22px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bereinigung der alten Strukturen für die Dropdowns */
|
||||||
|
.detail-structure-layout {
|
||||||
|
margin-top: 6px; /* Angepasst für das Innere des Dropdowns */
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-structure {
|
||||||
|
background: transparent; /* Hintergrund wird jetzt vom Akkordeon gesteuert */
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mood-box-content p {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.65;
|
||||||
|
margin: 0;
|
||||||
|
color: #1f1f1f;
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Accordion / Dropdown Components End --- */
|
||||||
|
|
||||||
/* --- Right Column Start --- */
|
/* --- Right Column Start --- */
|
||||||
|
|
||||||
.detail-info {
|
.detail-info {
|
||||||
@@ -915,7 +987,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.discovery-note-text p {
|
.discovery-note-text p {
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
color: #d0d0d0;
|
color: #d0d0d0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ function ProductDetailContent({ perfumeSlug }) {
|
|||||||
const [selectedSize, setSelectedSize] = useState("sample");
|
const [selectedSize, setSelectedSize] = useState("sample");
|
||||||
const [showReviewDetails, setShowReviewDetails] = useState(false);
|
const [showReviewDetails, setShowReviewDetails] = useState(false);
|
||||||
const [commentPage, setCommentPage] = useState(0);
|
const [commentPage, setCommentPage] = useState(0);
|
||||||
|
const [isStructureOpen, setIsStructureOpen] = useState(false);
|
||||||
|
const [isMoodOpen, setIsMoodOpen] = useState(false);
|
||||||
const selectedProductId = `${perfume.slug}-${selectedSize === "sample" ? "sample" : "full"}`;
|
const selectedProductId = `${perfume.slug}-${selectedSize === "sample" ? "sample" : "full"}`;
|
||||||
const selectedProductLabel = selectedSize === "sample" ? "Sample" : "Full Size";
|
const selectedProductLabel = selectedSize === "sample" ? "Sample" : "Full Size";
|
||||||
const selectedPriceCents = priceToCents(perfume.prices[selectedSize]);
|
const selectedPriceCents = priceToCents(perfume.prices[selectedSize]);
|
||||||
@@ -146,73 +148,102 @@ function ProductDetailContent({ perfumeSlug }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="detail-structure-layout">
|
{/* --- Accordion Group Start --- */}
|
||||||
<div className="detail-structure">
|
<div className="accordion-group">
|
||||||
<h3>DUFTSTRUKTUR</h3>
|
|
||||||
|
{/* Dropdown: Duftstruktur */}
|
||||||
|
<div className={`accordion-item ${isStructureOpen ? "is-open" : ""}`}>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="accordion-toggle"
|
||||||
|
onClick={() => setIsStructureOpen(!isStructureOpen)}
|
||||||
|
>
|
||||||
|
<span>DUFTSTRUKTUR</span>
|
||||||
|
<span className="accordion-icon">{isStructureOpen ? "−" : "+"}</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{isStructureOpen && (
|
||||||
|
<div className="accordion-content">
|
||||||
|
<div className="detail-structure-layout">
|
||||||
|
<div className="detail-structure">
|
||||||
|
<div className="structure-block">
|
||||||
|
<span className="structure-phase">PHASE 1: TOP NOTES (0–1 H)</span>
|
||||||
|
<div className="structure-tags-grid">
|
||||||
|
{perfume.phases.top.map((note) => (
|
||||||
|
<span key={note} className="structure-tag">{note}</span>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="structure-block">
|
<div className="structure-block">
|
||||||
<span className="structure-phase">PHASE 1: TOP NOTES (0–1 H)</span>
|
<span className="structure-phase">PHASE 2: HEART NOTES (1–4 H)</span>
|
||||||
<div className="structure-tags-grid">
|
<div className="structure-tags-grid">
|
||||||
{perfume.phases.top.map((note) => (
|
{perfume.phases.heart.map((note) => (
|
||||||
<span key={note} className="structure-tag">
|
<span key={note} className="structure-tag">{note}</span>
|
||||||
{note}
|
))}
|
||||||
</span>
|
</div>
|
||||||
))}
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="structure-block">
|
<div className="structure-block">
|
||||||
<span className="structure-phase">PHASE 2: HEART NOTES (1–4 H)</span>
|
<span className="structure-phase">PHASE 3: BASE NOTES (4 H+)</span>
|
||||||
<div className="structure-tags-grid">
|
<div className="structure-tags-grid">
|
||||||
{perfume.phases.heart.map((note) => (
|
{perfume.phases.base.map((note) => (
|
||||||
<span key={note} className="structure-tag">
|
<span key={note} className="structure-tag">{note}</span>
|
||||||
{note}
|
))}
|
||||||
</span>
|
</div>
|
||||||
))}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="structure-block">
|
<aside className="structure-info-box">
|
||||||
<span className="structure-phase">PHASE 3: BASE NOTES (4 H+)</span>
|
<span className="structure-info-label">ZUR EINORDNUNG</span>
|
||||||
<div className="structure-tags-grid">
|
<p>
|
||||||
{perfume.phases.base.map((note) => (
|
Die Duftstruktur zeigt, wie sich der Duft über die Zeit entfaltet:
|
||||||
<span key={note} className="structure-tag">
|
der erste Eindruck im Auftakt, die eigentliche Signatur im Herzen
|
||||||
{note}
|
und die Spur, die lange auf Haut und Kleidung bleibt.
|
||||||
</span>
|
</p>
|
||||||
))}
|
|
||||||
|
<div className="structure-info-legend">
|
||||||
|
<div>
|
||||||
|
<span className="structure-info-dot structure-info-dot--light" />
|
||||||
|
<span>Auftakt</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span className="structure-info-dot structure-info-dot--mid" />
|
||||||
|
<span>Herz</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span className="structure-info-dot structure-info-dot--strong" />
|
||||||
|
<span>Basis</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside className="structure-info-box">
|
{/* Dropdown: Moodsetting */}
|
||||||
<span className="structure-info-label">ZUR EINORDNUNG</span>
|
<div className={`accordion-item ${isMoodOpen ? "is-open" : ""}`}>
|
||||||
<p>
|
<button
|
||||||
Die Duftstruktur zeigt, wie sich der Duft über die Zeit entfaltet:
|
type="button"
|
||||||
der erste Eindruck im Auftakt, die eigentliche Signatur im Herzen
|
className="accordion-toggle"
|
||||||
und die Spur, die lange auf Haut und Kleidung bleibt.
|
onClick={() => setIsMoodOpen(!isMoodOpen)}
|
||||||
</p>
|
>
|
||||||
|
<span>MOODSETTING</span>
|
||||||
<div className="structure-info-legend">
|
<span className="accordion-icon">{isMoodOpen ? "−" : "+"}</span>
|
||||||
<div>
|
</button>
|
||||||
<span className="structure-info-dot structure-info-dot--light" />
|
|
||||||
<span>Auftakt</span>
|
{isMoodOpen && (
|
||||||
|
<div className="accordion-content">
|
||||||
|
<div className="mood-box-content">
|
||||||
|
<p>{perfume.mood}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
)}
|
||||||
<span className="structure-info-dot structure-info-dot--mid" />
|
</div>
|
||||||
<span>Herz</span>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<span className="structure-info-dot structure-info-dot--strong" />
|
|
||||||
<span>Basis</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</aside>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mood-box">
|
|
||||||
<span className="mood-label">MOODSETTING</span>
|
|
||||||
<p>{perfume.mood}</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
{/* --- Accordion Group End --- */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="detail-info">
|
<div className="detail-info">
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hero .btn {
|
.hero .btn {
|
||||||
border-radius: 0;
|
border-radius: 999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover {
|
.btn:hover {
|
||||||
@@ -436,8 +436,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1300px;
|
max-width: 1300px;
|
||||||
height: 340px;
|
height: 340px;
|
||||||
border-radius: 20px;
|
border-radius: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
justify-self: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.discovery-banner img {
|
.discovery-banner img {
|
||||||
|
|||||||
Reference in new issue
Block a user