add responsive changes
This commit is contained in:
1 parent
088d01b256
commit
2eea587e8b
11 files changed
+132
-71
No files matched your search
@@ -516,16 +516,37 @@
|
||||
}
|
||||
|
||||
.story-visual-panel {
|
||||
position: relative;
|
||||
min-height: clamp(360px, 42vw, 620px);
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
padding: clamp(1.2rem, 3vw, 2.4rem);
|
||||
border: 1px solid var(--theme-border);
|
||||
overflow: hidden;
|
||||
background: var(--theme-surface-soft);
|
||||
}
|
||||
|
||||
.story-visual-panel::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
background:
|
||||
radial-gradient(circle at 66% 32%, rgba(255, 255, 255, 0.11), transparent 14rem),
|
||||
radial-gradient(circle at 38% 68%, rgba(var(--theme-accent-rgb) / 0.1), transparent 17rem),
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
|
||||
var(--theme-paper);
|
||||
linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72)),
|
||||
linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 45%);
|
||||
}
|
||||
|
||||
.story-visual-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
filter: saturate(0.92) contrast(1.04);
|
||||
}
|
||||
|
||||
.character-facts {
|
||||
@@ -540,14 +561,16 @@
|
||||
min-height: 132px;
|
||||
}
|
||||
|
||||
.story-visual-panel > div {
|
||||
.story-visual-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.story-visual-panel > div > span:first-child {
|
||||
.story-visual-content > span:first-child {
|
||||
display: block;
|
||||
margin-bottom: var(--gap-sm);
|
||||
color: var(--theme-text-muted);
|
||||
color: rgba(255, 255, 255, 0.68);
|
||||
font-size: var(--text-xs);
|
||||
letter-spacing: 0.22em;
|
||||
text-transform: uppercase;
|
||||
@@ -564,9 +587,9 @@
|
||||
align-items: center;
|
||||
min-height: 40px;
|
||||
padding: 0.55rem 0.85rem;
|
||||
border: 1px solid var(--theme-border);
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
color: var(--theme-text);
|
||||
border: 1px solid rgba(255, 255, 255, 0.22);
|
||||
background: rgba(0, 0, 0, 0.24);
|
||||
color: #fff;
|
||||
font-size: var(--text-sm);
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useShop } from "../shop/useShop";
|
||||
import { useTheme } from "../theme/useTheme";
|
||||
import "../style/navbar.css";
|
||||
|
||||
function SharedNavbar({ variant = "light", active = "" }) {
|
||||
function SharedNavbar({ variant = "hero", active = "" }) {
|
||||
const { cart, openCart, openProfile, user } = useShop();
|
||||
const { isLight, toggleTheme } = useTheme();
|
||||
const cartLabel =
|
||||
|
||||
Reference in new issue
Block a user