Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dc3086f25 | ||
|
|
2f09b272bb | ||
|
|
3a66eaaf4a | ||
|
|
283a7a5214 | ||
|
|
2eea587e8b | ||
|
|
088d01b256 | ||
|
|
5ca7152011 |
No files matched your search
@@ -9,6 +9,7 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gsap": "^3.14.2",
|
"gsap": "^3.14.2",
|
||||||
|
"lenis": "^1.3.23",
|
||||||
"react": "^19.2.4",
|
"react": "^19.2.4",
|
||||||
"react-dom": "^19.2.4",
|
"react-dom": "^19.2.4",
|
||||||
"react-router": "^7.14.0"
|
"react-router": "^7.14.0"
|
||||||
@@ -1778,6 +1779,37 @@
|
|||||||
"json-buffer": "3.0.1"
|
"json-buffer": "3.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/lenis": {
|
||||||
|
"version": "1.3.23",
|
||||||
|
"resolved": "https://registry.npmjs.org/lenis/-/lenis-1.3.23.tgz",
|
||||||
|
"integrity": "sha512-YxYq3TJqj9sJNv0V9SkyQHejt14xwyIwgDaaMK89Uf9SxQfIszu+gTQSSphh6BWlLTNVKvvXAGkg+Zf+oFIevg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"workspaces": [
|
||||||
|
"packages/*",
|
||||||
|
"playground",
|
||||||
|
"playground/*"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/darkroomengineering"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@nuxt/kit": ">=3.0.0",
|
||||||
|
"react": ">=17.0.0",
|
||||||
|
"vue": ">=3.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@nuxt/kit": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"react": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"vue": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/levn": {
|
"node_modules/levn": {
|
||||||
"version": "0.4.1",
|
"version": "0.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gsap": "^3.14.2",
|
"gsap": "^3.14.2",
|
||||||
|
"lenis": "^1.3.23",
|
||||||
"react": "^19.2.4",
|
"react": "^19.2.4",
|
||||||
"react-dom": "^19.2.4",
|
"react-dom": "^19.2.4",
|
||||||
"react-router": "^7.14.0"
|
"react-router": "^7.14.0"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="1386" height="344" viewBox="0 0 1386 344" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M121 343.5C96.6667 343.5 75.3333 337.833 57 326.5C39 314.833 25 299.167 15 279.5C5 259.833 9.23872e-07 238.167 9.23872e-07 214.5C9.23872e-07 190.5 5 168.833 15 149.5C25 129.833 39 114.333 57 103C75.3333 91.3333 96.6667 85.5 121 85.5C141.667 85.5 159.333 89.5 174 97.5C189 105.5 201.167 116.333 210.5 130V89.5H248V339.5H210.5V299.5C201.167 312.833 189 323.5 174 331.5C159.333 339.5 141.667 343.5 121 343.5ZM126 309.5C144.667 309.5 160.333 305.167 173 296.5C186 287.833 195.833 276.333 202.5 262C209.167 247.333 212.5 231.5 212.5 214.5C212.5 197.167 209.167 181.333 202.5 167C195.833 152.667 186 141.167 173 132.5C160.333 123.833 144.667 119.5 126 119.5C107.667 119.5 91.8333 123.833 78.5 132.5C65.1667 141.167 55 152.667 48 167C41 181.333 37.5 197.167 37.5 214.5C37.5 231.5 41 247.333 48 262C55 276.333 65.1667 287.833 78.5 296.5C91.8333 305.167 107.667 309.5 126 309.5ZM339.863 339.5V122.5H288.863V89.5H339.863V1.43051e-06H377.363V89.5H434.863V122.5H377.363V339.5H339.863ZM475.949 339.5V89.5H513.449V127.5C519.116 117.5 528.116 108 540.449 99C552.783 90 569.116 85.5 589.449 85.5C606.116 85.5 621.449 90 635.449 99C649.783 107.667 660.949 120 668.949 136C672.283 130.333 677.449 123.5 684.449 115.5C691.783 107.5 701.283 100.5 712.949 94.5C724.616 88.5 738.616 85.5 754.949 85.5C770.949 85.5 785.949 89.6667 799.949 98C813.949 106.333 825.283 118.333 833.949 134C842.949 149.333 847.449 167.5 847.449 188.5V339.5H809.949V189.5C809.949 168.5 803.949 151.667 791.949 139C780.283 126 765.616 119.5 747.949 119.5C729.616 119.5 713.783 125.667 700.449 138C687.116 150.333 680.449 167.667 680.449 190V339.5H642.949V189.5C642.949 168.5 636.949 151.667 624.949 139C613.283 126 598.616 119.5 580.949 119.5C562.616 119.5 546.783 125.667 533.449 138C520.116 150.333 513.449 167.667 513.449 190V339.5H475.949ZM1018.53 343.5C993.198 343.5 971.198 337.833 952.531 326.5C933.865 314.833 919.531 299.167 909.531 279.5C899.531 259.833 894.531 238.167 894.531 214.5C894.531 190.5 899.531 168.833 909.531 149.5C919.531 129.833 933.865 114.333 952.531 103C971.198 91.3333 993.198 85.5 1018.53 85.5C1044.2 85.5 1066.2 91.3333 1084.53 103C1103.2 114.333 1117.53 129.833 1127.53 149.5C1137.53 168.833 1142.53 190.5 1142.53 214.5C1142.53 238.167 1137.53 259.833 1127.53 279.5C1117.53 299.167 1103.2 314.833 1084.53 326.5C1066.2 337.833 1044.2 343.5 1018.53 343.5ZM1018.53 309.5C1037.2 309.5 1052.86 305.167 1065.53 296.5C1078.53 287.833 1088.36 276.333 1095.03 262C1101.7 247.333 1105.03 231.5 1105.03 214.5C1105.03 197.167 1101.7 181.333 1095.03 167C1088.36 152.667 1078.53 141.167 1065.53 132.5C1052.86 123.833 1037.2 119.5 1018.53 119.5C1000.2 119.5 984.531 123.833 971.531 132.5C958.531 141.167 948.698 152.667 942.031 167C935.365 181.333 932.031 197.167 932.031 214.5C932.031 231.5 935.365 247.333 942.031 262C948.698 276.333 958.531 287.833 971.531 296.5C984.531 305.167 1000.2 309.5 1018.53 309.5ZM1283.26 343.5C1260.26 343.5 1240.76 339.667 1224.76 332C1209.09 324.333 1197.09 314.333 1188.76 302C1180.42 289.333 1175.76 275.667 1174.76 261H1213.76C1214.76 269.333 1217.59 277.5 1222.26 285.5C1227.26 293.167 1234.76 299.5 1244.76 304.5C1254.76 309.167 1267.76 311.5 1283.76 311.5C1288.76 311.5 1294.92 311 1302.26 310C1309.59 309 1316.59 307.167 1323.26 304.5C1330.26 301.833 1336.09 297.833 1340.76 292.5C1345.42 287.167 1347.76 280.333 1347.76 272C1347.76 261.667 1343.76 253.667 1335.76 248C1327.76 242.333 1317.42 238 1304.76 235C1292.09 231.667 1278.59 228.5 1264.26 225.5C1250.26 222.5 1236.92 218.667 1224.26 214C1211.59 209 1201.26 202.167 1193.26 193.5C1185.26 184.5 1181.26 172.333 1181.26 157C1181.26 134.333 1189.42 116.833 1205.76 104.5C1222.42 91.8333 1246.92 85.5 1279.26 85.5C1301.26 85.5 1319.09 89 1332.76 96C1346.76 102.667 1357.26 111.333 1364.26 122C1371.59 132.667 1375.92 144.167 1377.26 156.5H1339.26C1337.92 145.833 1332.59 136.667 1323.26 129C1314.26 121.333 1299.26 117.5 1278.26 117.5C1238.59 117.5 1218.76 129.5 1218.76 153.5C1218.76 163.5 1222.76 171.167 1230.76 176.5C1238.76 181.833 1249.09 186.167 1261.76 189.5C1274.42 192.5 1287.76 195.5 1301.76 198.5C1316.09 201.167 1329.59 205 1342.26 210C1354.92 215 1365.26 222.167 1373.26 231.5C1381.26 240.5 1385.26 252.833 1385.26 268.5C1385.26 292.833 1375.92 311.5 1357.26 324.5C1338.92 337.167 1314.26 343.5 1283.26 343.5Z" fill="#EAEAEA"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 3.5 MiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#eaeaea" viewBox="0 0 256 256"><path d="M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 273 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#eaeaea" viewBox="0 0 256 256"><path d="M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 355 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#eaeaea" viewBox="0 0 256 256"><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 48 KiB |
@@ -24,17 +24,56 @@ main {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.shell {
|
||||||
|
width: var(--container-wide);
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 0 clamp(2.2rem, 6vw, 5rem);
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
.page,
|
.page,
|
||||||
.detail-page,
|
.detail-page,
|
||||||
.discovery-page,
|
.discovery-page,
|
||||||
.about-page,
|
.about-page,
|
||||||
.support-page,
|
.support-page,
|
||||||
.small-page {
|
.small-page,
|
||||||
|
.impressum-page,
|
||||||
|
.datenschutz-page {
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detail-page .navbar--light,
|
||||||
|
.discovery-page .navbar--light,
|
||||||
|
.about-page .navbar--light,
|
||||||
|
.support-page .navbar--light,
|
||||||
|
.small-page .navbar--light,
|
||||||
|
.impressum-page .navbar--light,
|
||||||
|
.datenschutz-page .navbar--light {
|
||||||
|
position: fixed;
|
||||||
|
top: clamp(0.75rem, 2.1vw, 1.4rem);
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 998;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-page .navbar--light .nav-pill,
|
||||||
|
.discovery-page .navbar--light .nav-pill,
|
||||||
|
.about-page .navbar--light .nav-pill,
|
||||||
|
.support-page .navbar--light .nav-pill,
|
||||||
|
.small-page .navbar--light .nav-pill,
|
||||||
|
.impressum-page .navbar--light .nav-pill,
|
||||||
|
.datenschutz-page .navbar--light .nav-pill {
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar--light .nav-pill,
|
.navbar--light .nav-pill,
|
||||||
.navbar--light .nav-link,
|
.navbar--light .nav-link,
|
||||||
|
.shell,
|
||||||
[class*="-page"],
|
[class*="-page"],
|
||||||
[class*="-shell"],
|
[class*="-shell"],
|
||||||
[class*="-card"],
|
[class*="-card"],
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import SupportChatbot from "./components/SupportChatbot";
|
|||||||
import ScrollToTop from "./components/ScrollToTop";
|
import ScrollToTop from "./components/ScrollToTop";
|
||||||
import ShopDrawer from "./components/ShopDrawer";
|
import ShopDrawer from "./components/ShopDrawer";
|
||||||
import CartToast from "./components/CartToast";
|
import CartToast from "./components/CartToast";
|
||||||
|
import { ProductTransitionProvider } from "./components/ProductTransition";
|
||||||
|
import useLenisSmoothScroll from "./hooks/useLenisSmoothScroll";
|
||||||
import useScrollTextReveal from "./hooks/useScrollTextReveal";
|
import useScrollTextReveal from "./hooks/useScrollTextReveal";
|
||||||
import { ThemeProvider } from "./theme/ThemeContext";
|
import { ThemeProvider } from "./theme/ThemeContext";
|
||||||
import "./style/textReveal.css";
|
import "./style/textReveal.css";
|
||||||
@@ -29,7 +31,9 @@ function App() {
|
|||||||
});
|
});
|
||||||
const shouldFlushFooter =
|
const shouldFlushFooter =
|
||||||
location.pathname === "/" || location.pathname.startsWith("/duft/");
|
location.pathname === "/" || location.pathname.startsWith("/duft/");
|
||||||
|
const showSupportChatbot = location.pathname === "/";
|
||||||
|
|
||||||
|
useLenisSmoothScroll(location.pathname);
|
||||||
useScrollTextReveal(routeContentRef, location.pathname);
|
useScrollTextReveal(routeContentRef, location.pathname);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -52,10 +56,10 @@ function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider value={{ theme, isLight, toggleTheme }}>
|
<ThemeProvider value={{ theme, isLight, toggleTheme }}>
|
||||||
<>
|
<ProductTransitionProvider>
|
||||||
<ScrollToTop />
|
<ScrollToTop />
|
||||||
|
|
||||||
<div ref={routeContentRef}>
|
<div ref={routeContentRef} data-route-content>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<LandingPage />} />
|
<Route path="/" element={<LandingPage />} />
|
||||||
<Route path="/duft/:perfumeSlug" element={<ProductDetailPage />} />
|
<Route path="/duft/:perfumeSlug" element={<ProductDetailPage />} />
|
||||||
@@ -71,8 +75,8 @@ function App() {
|
|||||||
<ShopDrawer />
|
<ShopDrawer />
|
||||||
<CartToast />
|
<CartToast />
|
||||||
<Footer flushTop={shouldFlushFooter} />
|
<Footer flushTop={shouldFlushFooter} />
|
||||||
<SupportChatbot />
|
{showSupportChatbot && <SupportChatbot />}
|
||||||
</>
|
</ProductTransitionProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
.product-transition {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 2500;
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-transition__wash {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: var(--theme-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-transition__image {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
display: block;
|
||||||
|
max-width: none;
|
||||||
|
object-fit: contain;
|
||||||
|
transform-origin: 0 0;
|
||||||
|
will-change: transform, opacity;
|
||||||
|
filter: drop-shadow(0 34px 82px rgba(0, 0, 0, 0.42));
|
||||||
|
}
|
||||||
|
|
||||||
|
body.product-transition-active {
|
||||||
|
cursor: progress;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.product-transition {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,336 @@
|
|||||||
|
import {
|
||||||
|
useCallback,
|
||||||
|
useLayoutEffect,
|
||||||
|
useMemo,
|
||||||
|
useRef,
|
||||||
|
useState,
|
||||||
|
} from "react";
|
||||||
|
import { useNavigate } from "react-router";
|
||||||
|
import { gsap } from "gsap";
|
||||||
|
import { ProductTransitionContext } from "../transitions/ProductTransitionContext";
|
||||||
|
import "./ProductTransition.css";
|
||||||
|
|
||||||
|
const supportsProductTransition = () => {
|
||||||
|
if (typeof window === "undefined") return false;
|
||||||
|
|
||||||
|
return !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||||
|
};
|
||||||
|
|
||||||
|
const rectToObject = (rect) => ({
|
||||||
|
top: rect.top,
|
||||||
|
left: rect.left,
|
||||||
|
width: rect.width,
|
||||||
|
height: rect.height,
|
||||||
|
});
|
||||||
|
|
||||||
|
const isPlainNavigationClick = (event) =>
|
||||||
|
event.button === 0 &&
|
||||||
|
!event.metaKey &&
|
||||||
|
!event.altKey &&
|
||||||
|
!event.ctrlKey &&
|
||||||
|
!event.shiftKey;
|
||||||
|
|
||||||
|
const getStageRect = (sourceRect) => {
|
||||||
|
const viewportWidth = window.innerWidth;
|
||||||
|
const viewportHeight = window.innerHeight;
|
||||||
|
const sourceRatio = sourceRect.height / sourceRect.width || 1;
|
||||||
|
const stageWidth = Math.min(
|
||||||
|
Math.max(sourceRect.width * 1.16, 260),
|
||||||
|
viewportWidth * 0.56,
|
||||||
|
620
|
||||||
|
);
|
||||||
|
const stageHeight = Math.min(stageWidth * sourceRatio, viewportHeight * 0.72);
|
||||||
|
const normalizedWidth = stageHeight / sourceRatio;
|
||||||
|
|
||||||
|
return {
|
||||||
|
left: (viewportWidth - normalizedWidth) / 2,
|
||||||
|
top: (viewportHeight - stageHeight) / 2,
|
||||||
|
width: normalizedWidth,
|
||||||
|
height: stageHeight,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
const getTransformForRect = (rect, sourceRect) => {
|
||||||
|
const scale = Math.min(
|
||||||
|
rect.width / sourceRect.width,
|
||||||
|
rect.height / sourceRect.height
|
||||||
|
);
|
||||||
|
const width = sourceRect.width * scale;
|
||||||
|
const height = sourceRect.height * scale;
|
||||||
|
|
||||||
|
return {
|
||||||
|
x: rect.left + (rect.width - width) / 2,
|
||||||
|
y: rect.top + (rect.height - height) / 2,
|
||||||
|
scaleX: scale,
|
||||||
|
scaleY: scale,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export function ProductTransitionProvider({ children }) {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const overlayRef = useRef(null);
|
||||||
|
const imageRef = useRef(null);
|
||||||
|
const washRef = useRef(null);
|
||||||
|
const timelineRef = useRef(null);
|
||||||
|
const [transition, setTransition] = useState(null);
|
||||||
|
|
||||||
|
const clearTransition = useCallback(() => {
|
||||||
|
timelineRef.current?.kill();
|
||||||
|
timelineRef.current = null;
|
||||||
|
document.body.classList.remove("product-transition-active");
|
||||||
|
setTransition(null);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const startProductTransition = useCallback(
|
||||||
|
(event, perfume) => {
|
||||||
|
if (!perfume?.slug || !isPlainNavigationClick(event)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!supportsProductTransition()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const card = event.currentTarget;
|
||||||
|
const image = card.querySelector("[data-product-transition-source]");
|
||||||
|
|
||||||
|
if (!image) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sourceRect = image.getBoundingClientRect();
|
||||||
|
|
||||||
|
if (sourceRect.width <= 0 || sourceRect.height <= 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
timelineRef.current?.kill();
|
||||||
|
document.body.classList.add("product-transition-active");
|
||||||
|
|
||||||
|
setTransition({
|
||||||
|
id: `${perfume.slug}-${Date.now()}`,
|
||||||
|
slug: perfume.slug,
|
||||||
|
to: `/duft/${perfume.slug}`,
|
||||||
|
image: image.currentSrc || image.src || perfume.image,
|
||||||
|
alt: perfume.name,
|
||||||
|
sourceRect: rectToObject(sourceRect),
|
||||||
|
phase: "leaving",
|
||||||
|
});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
useLayoutEffect(() => {
|
||||||
|
if (transition?.phase !== "leaving") {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
const overlay = overlayRef.current;
|
||||||
|
const image = imageRef.current;
|
||||||
|
const wash = washRef.current;
|
||||||
|
|
||||||
|
if (!overlay || !image || !wash) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
const routeContent = document.querySelector("[data-route-content]");
|
||||||
|
const sourceRect = transition.sourceRect;
|
||||||
|
const stageRect = getStageRect(sourceRect);
|
||||||
|
let completed = false;
|
||||||
|
|
||||||
|
gsap.set(overlay, { autoAlpha: 1, pointerEvents: "auto" });
|
||||||
|
gsap.set(wash, { autoAlpha: 0 });
|
||||||
|
gsap.set(image, {
|
||||||
|
x: sourceRect.left,
|
||||||
|
y: sourceRect.top,
|
||||||
|
width: sourceRect.width,
|
||||||
|
height: sourceRect.height,
|
||||||
|
scaleX: 1,
|
||||||
|
scaleY: 1,
|
||||||
|
autoAlpha: 1,
|
||||||
|
transformOrigin: "0 0",
|
||||||
|
force3D: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
timelineRef.current = gsap.timeline({
|
||||||
|
defaults: { ease: "power4.inOut" },
|
||||||
|
onComplete: () => {
|
||||||
|
completed = true;
|
||||||
|
|
||||||
|
navigate(transition.to, {
|
||||||
|
state: {
|
||||||
|
productTransition: true,
|
||||||
|
transitionId: transition.id,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
setTransition((current) =>
|
||||||
|
current?.id === transition.id
|
||||||
|
? { ...current, phase: "entering" }
|
||||||
|
: current
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
timelineRef.current
|
||||||
|
.to(wash, { autoAlpha: 1, duration: 0.42, ease: "power2.out" }, 0)
|
||||||
|
.to(
|
||||||
|
routeContent,
|
||||||
|
{
|
||||||
|
autoAlpha: 0,
|
||||||
|
filter: "none",
|
||||||
|
scale: 1,
|
||||||
|
duration: 0.62,
|
||||||
|
ease: "power3.out",
|
||||||
|
},
|
||||||
|
0
|
||||||
|
)
|
||||||
|
.to(
|
||||||
|
image,
|
||||||
|
{
|
||||||
|
...getTransformForRect(stageRect, sourceRect),
|
||||||
|
duration: 0.78,
|
||||||
|
},
|
||||||
|
0.03
|
||||||
|
);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
if (!completed) {
|
||||||
|
timelineRef.current?.kill();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, [navigate, transition]);
|
||||||
|
|
||||||
|
useLayoutEffect(() => {
|
||||||
|
if (transition?.phase !== "entering") {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
const overlay = overlayRef.current;
|
||||||
|
const image = imageRef.current;
|
||||||
|
const wash = washRef.current;
|
||||||
|
|
||||||
|
if (!overlay || !image || !wash) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
let frame = 0;
|
||||||
|
let cancelled = false;
|
||||||
|
let completed = false;
|
||||||
|
const sourceRect = transition.sourceRect;
|
||||||
|
|
||||||
|
const runEnterAnimation = () => {
|
||||||
|
if (cancelled) return;
|
||||||
|
|
||||||
|
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
||||||
|
|
||||||
|
const target = document.querySelector(
|
||||||
|
`[data-product-transition-target="${transition.slug}"]`
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!target && frame < 16) {
|
||||||
|
frame += 1;
|
||||||
|
window.requestAnimationFrame(runEnterAnimation);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const routeContent = document.querySelector("[data-route-content]");
|
||||||
|
gsap.set(routeContent, {
|
||||||
|
autoAlpha: 1,
|
||||||
|
filter: "none",
|
||||||
|
scale: 1,
|
||||||
|
clearProps: "opacity,visibility,filter,transform",
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!target) {
|
||||||
|
gsap.to(overlay, {
|
||||||
|
autoAlpha: 0,
|
||||||
|
duration: 0.3,
|
||||||
|
ease: "power2.out",
|
||||||
|
onComplete: clearTransition,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const targetRect = rectToObject(target.getBoundingClientRect());
|
||||||
|
const revealItems = gsap.utils.toArray("[data-product-transition-reveal]");
|
||||||
|
|
||||||
|
gsap.set(target, { autoAlpha: 0 });
|
||||||
|
gsap.set(revealItems, { y: 28, autoAlpha: 0, force3D: true });
|
||||||
|
|
||||||
|
timelineRef.current?.kill();
|
||||||
|
timelineRef.current = gsap.timeline({
|
||||||
|
defaults: { ease: "power4.out" },
|
||||||
|
onComplete: () => {
|
||||||
|
completed = true;
|
||||||
|
clearTransition();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
timelineRef.current
|
||||||
|
.to(image, {
|
||||||
|
...getTransformForRect(targetRect, sourceRect),
|
||||||
|
duration: 0.72,
|
||||||
|
})
|
||||||
|
.set(target, { autoAlpha: 1 }, ">-0.08")
|
||||||
|
.to(image, { autoAlpha: 0, duration: 0.16, ease: "power2.out" }, "<")
|
||||||
|
.to(wash, { autoAlpha: 0, duration: 0.5, ease: "power2.out" }, "<")
|
||||||
|
.to(
|
||||||
|
revealItems,
|
||||||
|
{
|
||||||
|
y: 0,
|
||||||
|
autoAlpha: 1,
|
||||||
|
duration: 0.82,
|
||||||
|
stagger: 0.07,
|
||||||
|
ease: "power4.out",
|
||||||
|
clearProps: "transform",
|
||||||
|
},
|
||||||
|
">-0.05"
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.requestAnimationFrame(runEnterAnimation);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
cancelled = true;
|
||||||
|
if (!completed) {
|
||||||
|
timelineRef.current?.kill();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, [clearTransition, transition]);
|
||||||
|
|
||||||
|
const value = useMemo(
|
||||||
|
() => ({
|
||||||
|
activeSlug: transition?.slug || null,
|
||||||
|
phase: transition?.phase || "idle",
|
||||||
|
startProductTransition,
|
||||||
|
}),
|
||||||
|
[startProductTransition, transition]
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ProductTransitionContext.Provider value={value}>
|
||||||
|
{children}
|
||||||
|
|
||||||
|
{transition && (
|
||||||
|
<div
|
||||||
|
className={`product-transition product-transition--${transition.phase}`}
|
||||||
|
ref={overlayRef}
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<div className="product-transition__wash" ref={washRef} />
|
||||||
|
<img
|
||||||
|
className="product-transition__image"
|
||||||
|
src={transition.image}
|
||||||
|
alt={transition.alt}
|
||||||
|
ref={imageRef}
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</ProductTransitionContext.Provider>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -3,23 +3,33 @@ import { useShop } from "../shop/useShop";
|
|||||||
import { useTheme } from "../theme/useTheme";
|
import { useTheme } from "../theme/useTheme";
|
||||||
import "../style/navbar.css";
|
import "../style/navbar.css";
|
||||||
|
|
||||||
function SharedNavbar({ variant = "light", active = "" }) {
|
function SharedNavbar({ variant = "hero", active = "", brandMode = "logo" }) {
|
||||||
const { cart, openCart, openProfile, user } = useShop();
|
const { cart, openCart, openProfile, user } = useShop();
|
||||||
const { isLight, toggleTheme } = useTheme();
|
const { isLight, toggleTheme } = useTheme();
|
||||||
const cartLabel =
|
const cartLabel =
|
||||||
cart.total_quantity > 0 ? `Cart ${cart.total_quantity}` : "Cart";
|
cart.total_quantity > 0 ? `Cart ${cart.total_quantity}` : "Cart";
|
||||||
const logoSrc =
|
const logoSrc =
|
||||||
variant === "hero" ? "/atmos-logo-light.svg" : "/atmos-logo-dark.svg";
|
variant === "hero" ? "/atmos-logo-light.svg" : "/atmos-logo-dark.svg";
|
||||||
|
const brandIsBack = brandMode === "back";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className={`navbar navbar--${variant}`} aria-label="Hauptnavigation">
|
<nav className={`navbar navbar--${variant}`} aria-label="Hauptnavigation">
|
||||||
<div className="nav-pill">
|
<div className="nav-pill">
|
||||||
<Link
|
<Link
|
||||||
to="/"
|
to="/"
|
||||||
className={`nav-link nav-link--brand ${active === "atmos" ? "active" : ""}`}
|
className={`nav-link nav-link--brand ${brandIsBack ? "nav-link--back" : ""} ${
|
||||||
aria-label="Atmos Startseite"
|
active === "atmos" ? "active" : ""
|
||||||
|
}`}
|
||||||
|
aria-label={brandIsBack ? "Zur Startseite" : "Atmos Startseite"}
|
||||||
>
|
>
|
||||||
<img src={logoSrc} alt="" className="nav-brand-logo" />
|
{brandIsBack ? (
|
||||||
|
<>
|
||||||
|
<span className="nav-back-icon" aria-hidden="true" />
|
||||||
|
<span>Zurück</span>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<img src={logoSrc} alt="" className="nav-brand-logo" />
|
||||||
|
)}
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to="/discovery-set"
|
to="/discovery-set"
|
||||||
|
|||||||
@@ -535,7 +535,7 @@
|
|||||||
.cart-controls button,
|
.cart-controls button,
|
||||||
.cart-toast button,
|
.cart-toast button,
|
||||||
.subscription-row button {
|
.subscription-row button {
|
||||||
border-radius: 999px;
|
border-radius: var(--radius-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-primary,
|
.drawer-primary,
|
||||||
|
|||||||
@@ -460,7 +460,11 @@ function ShopDrawer() {
|
|||||||
className={`drawer-backdrop ${panelOpen ? "open" : ""}`}
|
className={`drawer-backdrop ${panelOpen ? "open" : ""}`}
|
||||||
onClick={closePanel}
|
onClick={closePanel}
|
||||||
/>
|
/>
|
||||||
<aside className={`shop-drawer ${panelOpen ? "open" : ""}`} aria-hidden={!panelOpen}>
|
<aside
|
||||||
|
className={`shop-drawer ${panelOpen ? "open" : ""}`}
|
||||||
|
aria-hidden={!panelOpen}
|
||||||
|
data-lenis-prevent
|
||||||
|
>
|
||||||
<div className="drawer-top">
|
<div className="drawer-top">
|
||||||
<span>{!user ? "ACCOUNT" : panelType === "cart" ? "CART" : "PROFILE"}</span>
|
<span>{!user ? "ACCOUNT" : panelType === "cart" ? "CART" : "PROFILE"}</span>
|
||||||
<button type="button" onClick={closePanel} aria-label="Close panel">
|
<button type="button" onClick={closePanel} aria-label="Close panel">
|
||||||
|
|||||||
@@ -278,12 +278,53 @@
|
|||||||
/* --- Design System Refinement Start --- */
|
/* --- Design System Refinement Start --- */
|
||||||
|
|
||||||
.chatbot-trigger {
|
.chatbot-trigger {
|
||||||
min-height: 48px;
|
--chatbot-size: 48px;
|
||||||
right: var(--page-x);
|
right: max(
|
||||||
bottom: var(--page-x);
|
0.75rem,
|
||||||
|
calc((100vw - var(--container-wide)) * 0.25 - (var(--chatbot-size) * 0.5)),
|
||||||
|
env(safe-area-inset-right)
|
||||||
|
);
|
||||||
|
bottom: max(0.9rem, env(safe-area-inset-bottom));
|
||||||
|
width: var(--chatbot-size);
|
||||||
|
height: var(--chatbot-size);
|
||||||
|
min-height: var(--chatbot-size);
|
||||||
|
min-width: var(--chatbot-size);
|
||||||
|
padding: 0;
|
||||||
|
display: inline-grid;
|
||||||
|
place-items: center;
|
||||||
|
font-size: 0;
|
||||||
box-shadow: var(--theme-shadow-soft);
|
box-shadow: var(--theme-shadow-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chatbot-trigger.is-open {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chatbot-trigger-icon,
|
||||||
|
.chatbot-close-icon {
|
||||||
|
display: block;
|
||||||
|
width: 1.32rem;
|
||||||
|
height: 1.32rem;
|
||||||
|
background: currentColor;
|
||||||
|
-webkit-mask-position: center;
|
||||||
|
mask-position: center;
|
||||||
|
-webkit-mask-repeat: no-repeat;
|
||||||
|
mask-repeat: no-repeat;
|
||||||
|
-webkit-mask-size: contain;
|
||||||
|
mask-size: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chatbot-trigger-icon {
|
||||||
|
-webkit-mask-image: url("/icon-chat.svg");
|
||||||
|
mask-image: url("/icon-chat.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.chatbot-trigger.is-open .chatbot-trigger-icon,
|
||||||
|
.chatbot-close-icon {
|
||||||
|
-webkit-mask-image: url("/icon-x.svg");
|
||||||
|
mask-image: url("/icon-x.svg");
|
||||||
|
}
|
||||||
|
|
||||||
.chatbot-trigger:hover,
|
.chatbot-trigger:hover,
|
||||||
.chatbot-trigger:focus-visible {
|
.chatbot-trigger:focus-visible {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
@@ -317,7 +358,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chatbot-send {
|
.chatbot-send {
|
||||||
border-radius: 999px;
|
border-radius: var(--radius-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatbot-chip,
|
.chatbot-chip,
|
||||||
@@ -338,8 +379,8 @@
|
|||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.chatbot-trigger {
|
.chatbot-trigger {
|
||||||
right: var(--page-x);
|
right: max(0.75rem, env(safe-area-inset-right));
|
||||||
bottom: var(--page-x);
|
bottom: max(0.75rem, env(safe-area-inset-bottom));
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatbot-window {
|
.chatbot-window {
|
||||||
|
|||||||
@@ -216,11 +216,16 @@ function SupportChatbot() {
|
|||||||
onClick={() => setIsOpen((prev) => !prev)}
|
onClick={() => setIsOpen((prev) => !prev)}
|
||||||
aria-label={isOpen ? "Chat schliessen" : "Support Chat öffnen"}
|
aria-label={isOpen ? "Chat schliessen" : "Support Chat öffnen"}
|
||||||
>
|
>
|
||||||
{isOpen ? "×" : "Support"}
|
<span className="chatbot-trigger-icon" aria-hidden="true" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{isOpen && (
|
{isOpen && (
|
||||||
<div className="chatbot-window" role="dialog" aria-label="Support Chat">
|
<div
|
||||||
|
className="chatbot-window"
|
||||||
|
role="dialog"
|
||||||
|
aria-label="Support Chat"
|
||||||
|
data-lenis-prevent
|
||||||
|
>
|
||||||
<div className="chatbot-header">
|
<div className="chatbot-header">
|
||||||
<div className="chatbot-header-copy">
|
<div className="chatbot-header-copy">
|
||||||
<span className="chatbot-kicker">atmos SUPPORT</span>
|
<span className="chatbot-kicker">atmos SUPPORT</span>
|
||||||
@@ -232,7 +237,7 @@ function SupportChatbot() {
|
|||||||
onClick={() => setIsOpen(false)}
|
onClick={() => setIsOpen(false)}
|
||||||
aria-label="Chat schliessen"
|
aria-label="Chat schliessen"
|
||||||
>
|
>
|
||||||
×
|
<span className="chatbot-close-icon" aria-hidden="true" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -341,4 +346,4 @@ function SupportChatbot() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SupportChatbot;
|
export default SupportChatbot;
|
||||||
@@ -6,45 +6,60 @@ function HeroSection({
|
|||||||
heroImageRef,
|
heroImageRef,
|
||||||
setHeadlinePrimaryRef,
|
setHeadlinePrimaryRef,
|
||||||
setHeadlineSecondaryRef,
|
setHeadlineSecondaryRef,
|
||||||
|
setWordmarkRef,
|
||||||
setDescriptionRef,
|
setDescriptionRef,
|
||||||
setActionsRef,
|
setActionsRef,
|
||||||
|
setScrollRef,
|
||||||
overlayRef,
|
overlayRef,
|
||||||
overlayTextRef,
|
overlayTextRef,
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<header className="hero" id="home">
|
<section className="hero" id="home" aria-labelledby="hero-heading">
|
||||||
<div className="hero-media" ref={heroImageWrapRef}>
|
<div className="hero-material" ref={heroImageWrapRef} aria-hidden="true">
|
||||||
<img
|
<div className="hero-material__texture" ref={heroImageRef} />
|
||||||
src="/atmos-hero-image.png"
|
|
||||||
alt="Atmos perfume bottle in a material-led campaign scene"
|
|
||||||
className="hero-media__image"
|
|
||||||
ref={heroImageRef}
|
|
||||||
loading="eager"
|
|
||||||
decoding="async"
|
|
||||||
fetchPriority="high"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="hero-wordmark" aria-hidden="true">
|
||||||
|
<div className="hero-wordmark__mask">
|
||||||
|
<img
|
||||||
|
src="/atmos-hero-wordmark.svg"
|
||||||
|
alt=""
|
||||||
|
className="hero-wordmark__image"
|
||||||
|
ref={setWordmarkRef}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<figure className="hero-product">
|
||||||
|
<div className="hero-product__inner" ref={setDescriptionRef}>
|
||||||
|
<img
|
||||||
|
src="/blasse-seide-hero-product.webp"
|
||||||
|
alt="Blasse Seide Parfumflakon auf einer dunklen Produktkarte"
|
||||||
|
className="hero-product__image"
|
||||||
|
loading="eager"
|
||||||
|
decoding="async"
|
||||||
|
fetchPriority="high"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</figure>
|
||||||
|
|
||||||
<div className="hero-content">
|
<div className="hero-content">
|
||||||
<h1 className="hero-title">
|
<h1 className="hero-copy" id="hero-heading">
|
||||||
<span className="hero-title-line">
|
<span className="hero-copy-line">
|
||||||
<span className="reveal-line" ref={setHeadlinePrimaryRef}>
|
<span className="reveal-line" ref={setHeadlinePrimaryRef}>
|
||||||
{"D\u00DCFTE ALS"}
|
{"Konzeptionelle D\u00FCfte"}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span className="hero-title-line">
|
<span className="hero-copy-line">
|
||||||
<span className="reveal-line" ref={setHeadlineSecondaryRef}>
|
<span className="reveal-line" ref={setHeadlineSecondaryRef}>
|
||||||
AUSDRUCK
|
{"zwischen Materialit\u00E4t,"}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
<span className="hero-copy-line">
|
||||||
|
<span className="reveal-line">Raum und Charakter.</span>
|
||||||
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p className="hero-text" ref={setDescriptionRef}>
|
|
||||||
{
|
|
||||||
"Konzeptionelle D\u00FCfte zwischen Materialit\u00E4t, Raum und Charakter."
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div className="hero-actions" ref={setActionsRef}>
|
<div className="hero-actions" ref={setActionsRef}>
|
||||||
<a href="#dufte" className="btn btn-primary">
|
<a href="#dufte" className="btn btn-primary">
|
||||||
{"Aktuelle D\u00FCfte"}
|
{"Aktuelle D\u00FCfte"}
|
||||||
@@ -55,12 +70,17 @@ function HeroSection({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="hero-scroll" aria-hidden="true" ref={setScrollRef}>
|
||||||
|
<span className="hero-scroll__line" />
|
||||||
|
<span className="hero-scroll__label">SCROLL RUNTER</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<IntroOverlay
|
<IntroOverlay
|
||||||
overlayRef={overlayRef}
|
overlayRef={overlayRef}
|
||||||
overlayTextRef={overlayTextRef}
|
overlayTextRef={overlayTextRef}
|
||||||
logoSrc="/atmos-logo-dark.svg"
|
logoSrc="/atmos-logo-dark.svg"
|
||||||
/>
|
/>
|
||||||
</header>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
import { useEffect, useRef } from "react";
|
||||||
|
import Lenis from "lenis";
|
||||||
|
import { gsap } from "gsap";
|
||||||
|
import { ScrollTrigger } from "gsap/ScrollTrigger";
|
||||||
|
|
||||||
|
let scrollTriggerRegistered = false;
|
||||||
|
|
||||||
|
const registerScrollTrigger = () => {
|
||||||
|
if (!scrollTriggerRegistered) {
|
||||||
|
gsap.registerPlugin(ScrollTrigger);
|
||||||
|
scrollTriggerRegistered = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function useLenisSmoothScroll(dependencyKey = "") {
|
||||||
|
const lenisRef = useRef(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (typeof window === "undefined") {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
const prefersReducedMotion = window.matchMedia(
|
||||||
|
"(prefers-reduced-motion: reduce)"
|
||||||
|
).matches;
|
||||||
|
|
||||||
|
if (prefersReducedMotion) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
registerScrollTrigger();
|
||||||
|
|
||||||
|
const lenis = new Lenis({
|
||||||
|
anchors: {
|
||||||
|
duration: 1.05,
|
||||||
|
easing: (time) => 1 - Math.pow(1 - time, 4),
|
||||||
|
},
|
||||||
|
duration: 1.1,
|
||||||
|
easing: (time) => Math.min(1, 1.001 - Math.pow(2, -10 * time)),
|
||||||
|
lerp: 0.09,
|
||||||
|
smoothWheel: true,
|
||||||
|
syncTouch: false,
|
||||||
|
wheelMultiplier: 0.9,
|
||||||
|
});
|
||||||
|
lenisRef.current = lenis;
|
||||||
|
|
||||||
|
const updateScrollTrigger = () => ScrollTrigger.update();
|
||||||
|
const raf = (time) => {
|
||||||
|
lenis.raf(time * 1000);
|
||||||
|
};
|
||||||
|
|
||||||
|
lenis.on("scroll", updateScrollTrigger);
|
||||||
|
gsap.ticker.add(raf);
|
||||||
|
gsap.ticker.lagSmoothing(0);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
lenis.off("scroll", updateScrollTrigger);
|
||||||
|
gsap.ticker.remove(raf);
|
||||||
|
lenis.destroy();
|
||||||
|
lenisRef.current = null;
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (typeof window === "undefined") {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
const frame = window.requestAnimationFrame(() => {
|
||||||
|
lenisRef.current?.scrollTo(0, { immediate: true, force: true });
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
ScrollTrigger.refresh();
|
||||||
|
});
|
||||||
|
|
||||||
|
return () => window.cancelAnimationFrame(frame);
|
||||||
|
}, [dependencyKey]);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default useLenisSmoothScroll;
|
||||||
@@ -11,13 +11,13 @@ const registerGsap = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const createRevealLines = (element) => {
|
const createRevealWords = (element) => {
|
||||||
if (!element) {
|
if (!element) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.dataset.revealPrepared === "true") {
|
if (element.dataset.revealPrepared === "true") {
|
||||||
return Array.from(element.querySelectorAll(".reveal-line"));
|
return Array.from(element.querySelectorAll(".reveal-word"));
|
||||||
}
|
}
|
||||||
|
|
||||||
const originalHtml = element.innerHTML;
|
const originalHtml = element.innerHTML;
|
||||||
@@ -33,16 +33,24 @@ const createRevealLines = (element) => {
|
|||||||
element.dataset.revealPrepared = "true";
|
element.dataset.revealPrepared = "true";
|
||||||
element.dataset.revealOriginalHtml = originalHtml;
|
element.dataset.revealOriginalHtml = originalHtml;
|
||||||
element.innerHTML = segments
|
element.innerHTML = segments
|
||||||
.map(
|
.map((segment) => {
|
||||||
(segment) =>
|
const words = segment
|
||||||
`<span class="reveal-line-mask"><span class="reveal-line">${segment}</span></span>`
|
.split(/\s+/)
|
||||||
)
|
.filter(Boolean)
|
||||||
|
.map(
|
||||||
|
(word) =>
|
||||||
|
`<span class="reveal-word-mask"><span class="reveal-word">${word}</span></span>`
|
||||||
|
)
|
||||||
|
.join(" ");
|
||||||
|
|
||||||
|
return `<span class="reveal-line-mask reveal-word-line">${words}</span>`;
|
||||||
|
})
|
||||||
.join("");
|
.join("");
|
||||||
|
|
||||||
return Array.from(element.querySelectorAll(".reveal-line"));
|
return Array.from(element.querySelectorAll(".reveal-word"));
|
||||||
};
|
};
|
||||||
|
|
||||||
const restoreRevealLines = (element) => {
|
const restoreRevealWords = (element) => {
|
||||||
if (!element || element.dataset.revealPrepared !== "true") {
|
if (!element || element.dataset.revealPrepared !== "true") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -108,15 +116,15 @@ function useScrollTextReveal(scopeRef, dependencyKey = "") {
|
|||||||
const position = index === 0 ? 0 : "<0.16";
|
const position = index === 0 ? 0 : "<0.16";
|
||||||
|
|
||||||
if (item.dataset.reveal === "lines") {
|
if (item.dataset.reveal === "lines") {
|
||||||
const lines = createRevealLines(item);
|
const words = createRevealWords(item);
|
||||||
|
|
||||||
if (lines.length === 0) {
|
if (words.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
preparedElements.push(item);
|
preparedElements.push(item);
|
||||||
gsap.set(item, { autoAlpha: 1 });
|
gsap.set(item, { autoAlpha: 1 });
|
||||||
gsap.set(lines, {
|
gsap.set(words, {
|
||||||
yPercent: 115,
|
yPercent: 115,
|
||||||
rotate: 2.2,
|
rotate: 2.2,
|
||||||
transformOrigin: "0% 100%",
|
transformOrigin: "0% 100%",
|
||||||
@@ -124,12 +132,12 @@ function useScrollTextReveal(scopeRef, dependencyKey = "") {
|
|||||||
});
|
});
|
||||||
|
|
||||||
timeline.to(
|
timeline.to(
|
||||||
lines,
|
words,
|
||||||
{
|
{
|
||||||
yPercent: 0,
|
yPercent: 0,
|
||||||
rotate: 0,
|
rotate: 0,
|
||||||
duration: 1.18,
|
duration: 1.08,
|
||||||
stagger: 0.1,
|
stagger: 0.065,
|
||||||
ease: "power4.out",
|
ease: "power4.out",
|
||||||
clearProps: "transform",
|
clearProps: "transform",
|
||||||
},
|
},
|
||||||
@@ -160,7 +168,7 @@ function useScrollTextReveal(scopeRef, dependencyKey = "") {
|
|||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
ctx.revert();
|
ctx.revert();
|
||||||
preparedElements.forEach((element) => restoreRevealLines(element));
|
preparedElements.forEach((element) => restoreRevealWords(element));
|
||||||
};
|
};
|
||||||
}, [scopeRef, dependencyKey]);
|
}, [scopeRef, dependencyKey]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import ReactDOM from "react-dom/client";
|
|||||||
import { BrowserRouter } from "react-router";
|
import { BrowserRouter } from "react-router";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
import { ShopProvider } from "./shop/ShopContext";
|
import { ShopProvider } from "./shop/ShopContext";
|
||||||
|
import "lenis/dist/lenis.css";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import "./App.css";
|
import "./App.css";
|
||||||
|
|
||||||
|
|||||||
@@ -1,543 +1,121 @@
|
|||||||
.about-page {
|
.about-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
padding: 0 0 var(--section-y-sm);
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
padding: 26px 38px 38px;
|
|
||||||
background:
|
background:
|
||||||
linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1)),
|
radial-gradient(circle at 86% 8%, rgba(var(--theme-accent-rgb) / 0.13), transparent 28rem),
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
|
linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
|
||||||
}
|
|
||||||
|
|
||||||
.about-shell {
|
|
||||||
background: var(--theme-surface);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 38px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-kicker,
|
.about-kicker,
|
||||||
.about-label,
|
.about-label,
|
||||||
.about-panel-label,
|
.about-panel-label,
|
||||||
.about-origin-box span,
|
.about-origin-box span,
|
||||||
.about-panel-meta span {
|
.about-panel-meta span,
|
||||||
display: block;
|
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.22em;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-hero {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
|
|
||||||
gap: 28px;
|
|
||||||
align-items: end;
|
|
||||||
padding-bottom: 36px;
|
|
||||||
border-bottom: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-hero-copy h1 {
|
|
||||||
margin: 14px 0 18px;
|
|
||||||
font-size: 68px;
|
|
||||||
line-height: 0.92;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-intro {
|
|
||||||
max-width: 720px;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 18px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-hero-panel {
|
|
||||||
padding: 24px;
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.08),
|
|
||||||
rgba(255, 106, 0, 0.03)
|
|
||||||
);
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.18);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-hero-panel p {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.6;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-panel-meta {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
gap: 16px;
|
|
||||||
margin-top: 24px;
|
|
||||||
padding-top: 20px;
|
|
||||||
border-top: 1px solid rgba(255, 106, 0, 0.14);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-panel-meta p,
|
|
||||||
.about-origin-box p {
|
|
||||||
margin: 8px 0 0;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.55;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-section {
|
|
||||||
padding-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-section--split {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
|
|
||||||
gap: 28px;
|
|
||||||
align-items: start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-section-heading h2,
|
|
||||||
.about-origin-copy h2,
|
|
||||||
.about-bottom-copy h2 {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 42px;
|
|
||||||
line-height: 0.98;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-section-copy {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-section-copy p,
|
|
||||||
.about-origin-copy p,
|
|
||||||
.about-bottom-copy p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-quote-block {
|
|
||||||
margin-top: 38px;
|
|
||||||
padding: 32px 36px;
|
|
||||||
background: #1f1f1f;
|
|
||||||
border-left: 3px solid #ff6a00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-quote-block p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 28px;
|
|
||||||
line-height: 1.3;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: #fff;
|
|
||||||
max-width: 900px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-grid-section {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
gap: 18px;
|
|
||||||
margin-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-card {
|
|
||||||
padding: 24px;
|
|
||||||
background: var(--theme-bg);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
min-height: 260px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-card h3 {
|
|
||||||
margin: 14px 0 12px;
|
|
||||||
font-size: 24px;
|
|
||||||
line-height: 1.05;
|
|
||||||
font-weight: 400;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-card p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-origin-section {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
|
|
||||||
gap: 28px;
|
|
||||||
margin-top: 38px;
|
|
||||||
padding-top: 38px;
|
|
||||||
border-top: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-origin-box {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 18px;
|
|
||||||
background: var(--theme-bg);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-origin-box > div {
|
|
||||||
padding-bottom: 16px;
|
|
||||||
border-bottom: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-origin-box > div:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-bottom-cta {
|
|
||||||
margin-top: 38px;
|
|
||||||
padding: 38px;
|
|
||||||
background: #ff6a00;
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1.2fr) auto;
|
|
||||||
gap: 24px;
|
|
||||||
align-items: end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-bottom-copy .about-label,
|
|
||||||
.about-bottom-copy h2,
|
|
||||||
.about-bottom-copy p {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-bottom-copy .about-label {
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-bottom-copy p {
|
|
||||||
margin-top: 16px;
|
|
||||||
max-width: 700px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-bottom-actions {
|
|
||||||
display: flex;
|
|
||||||
gap: 12px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 12px 18px;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 999px;
|
|
||||||
transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-btn:hover {
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-btn--primary {
|
|
||||||
background: var(--theme-paper);
|
|
||||||
color: #ff6a00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-btn--secondary {
|
|
||||||
background: rgba(255, 255, 255, 0.14);
|
|
||||||
color: #fff;
|
|
||||||
backdrop-filter: blur(8px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-proof-strip {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(4, 1fr);
|
|
||||||
gap: 14px;
|
|
||||||
margin-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-proof-item {
|
|
||||||
padding: 18px;
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
background: var(--theme-surface-soft);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-proof-item p {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.55;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-process-section {
|
|
||||||
margin-top: 38px;
|
|
||||||
padding-top: 38px;
|
|
||||||
border-top: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-credentials-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 18px;
|
|
||||||
margin-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-credential-card {
|
|
||||||
padding: 24px;
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.06),
|
|
||||||
rgba(255, 106, 0, 0.02)
|
|
||||||
);
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.16);
|
|
||||||
min-height: 220px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-credential-card h3 {
|
|
||||||
margin: 14px 0 12px;
|
|
||||||
font-size: 24px;
|
|
||||||
line-height: 1.08;
|
|
||||||
font-weight: 400;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-credential-card p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-section {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
|
|
||||||
gap: 28px;
|
|
||||||
margin-top: 38px;
|
|
||||||
padding: 28px;
|
|
||||||
background: var(--theme-bg);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-copy h2 {
|
|
||||||
margin: 10px 0 16px;
|
|
||||||
font-size: 40px;
|
|
||||||
line-height: 0.98;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-copy p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-points {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-points > div {
|
|
||||||
padding-bottom: 14px;
|
|
||||||
border-bottom: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-points > div:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-points span {
|
.about-method-points span {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.22em;
|
|
||||||
color: var(--theme-text-muted);
|
color: var(--theme-text-muted);
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-points p {
|
|
||||||
margin: 8px 0 0;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.55;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-trust-note {
|
|
||||||
margin-top: 38px;
|
|
||||||
padding: 22px;
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.18);
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.08),
|
|
||||||
rgba(255, 106, 0, 0.03)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-trust-note p {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
|
||||||
.about-hero,
|
|
||||||
.about-section--split,
|
|
||||||
.about-origin-section,
|
|
||||||
.about-bottom-cta,
|
|
||||||
.about-method-section {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-hero-copy h1 {
|
|
||||||
font-size: 52px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-grid-section,
|
|
||||||
.about-proof-strip,
|
|
||||||
.about-credentials-grid {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-copy h2 {
|
|
||||||
font-size: 32px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
|
||||||
.about-page {
|
|
||||||
padding: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-shell {
|
|
||||||
padding: 24px 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-hero-copy h1 {
|
|
||||||
font-size: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-section-heading h2,
|
|
||||||
.about-origin-copy h2,
|
|
||||||
.about-bottom-copy h2,
|
|
||||||
.about-method-copy h2 {
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-intro,
|
|
||||||
.about-section-copy p,
|
|
||||||
.about-origin-copy p,
|
|
||||||
.about-bottom-copy p,
|
|
||||||
.about-method-copy p,
|
|
||||||
.about-credential-card p,
|
|
||||||
.about-proof-item p,
|
|
||||||
.about-trust-note p {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-quote-block {
|
|
||||||
padding: 24px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-quote-block p {
|
|
||||||
font-size: 22px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-method-section,
|
|
||||||
.about-bottom-cta {
|
|
||||||
padding: 26px 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Design System Refinement Start --- */
|
|
||||||
|
|
||||||
.about-page {
|
|
||||||
padding: clamp(1rem, 3vw, 2.4rem) var(--page-x) clamp(2rem, 5vw, 4rem);
|
|
||||||
background:
|
|
||||||
radial-gradient(circle at 88% 9%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
|
||||||
linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
|
|
||||||
var(--theme-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: clamp(1.25rem, 3vw, 2.8rem);
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
box-shadow: var(--theme-shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-kicker,
|
|
||||||
.about-label,
|
|
||||||
.about-panel-label,
|
|
||||||
.about-origin-box span,
|
|
||||||
.about-panel-meta span {
|
|
||||||
font-size: var(--text-xs);
|
font-size: var(--text-xs);
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-hero {
|
.about-hero {
|
||||||
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.72fr);
|
grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.72fr);
|
||||||
gap: var(--gap-lg);
|
gap: var(--gap-lg);
|
||||||
padding-bottom: var(--section-y-xs);
|
align-items: end;
|
||||||
|
padding: clamp(2rem, 5vw, 5rem) 0 var(--section-y-sm);
|
||||||
|
border-bottom: 1px solid var(--theme-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-hero-copy {
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-hero-copy h1 {
|
.about-hero-copy h1 {
|
||||||
|
max-width: 11.4ch;
|
||||||
margin: clamp(0.85rem, 2vw, 1.2rem) 0 clamp(1rem, 2vw, 1.35rem);
|
margin: clamp(0.85rem, 2vw, 1.2rem) 0 clamp(1rem, 2vw, 1.35rem);
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: clamp(3rem, 7.4vw, 8.8rem);
|
font-size: clamp(3rem, 7.4vw, 8.8rem);
|
||||||
line-height: 0.9;
|
line-height: 0.9;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-intro {
|
.about-intro {
|
||||||
max-width: var(--text-measure);
|
max-width: var(--text-measure);
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-lg);
|
font-size: var(--text-lg);
|
||||||
}
|
line-height: 1.65;
|
||||||
|
|
||||||
.about-hero-panel,
|
|
||||||
.about-card,
|
|
||||||
.about-origin-box,
|
|
||||||
.about-bottom-cta,
|
|
||||||
.about-proof-item,
|
|
||||||
.about-credential-card,
|
|
||||||
.about-method-section,
|
|
||||||
.about-trust-note,
|
|
||||||
.about-quote-block {
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-hero-panel {
|
.about-hero-panel {
|
||||||
padding: clamp(1.25rem, 3vw, 2rem);
|
padding: clamp(1.25rem, 3vw, 2rem);
|
||||||
|
border: 1px solid rgba(var(--theme-accent-rgb) / 0.2);
|
||||||
|
background:
|
||||||
|
linear-gradient(135deg, rgba(var(--theme-accent-rgb) / 0.1), transparent 62%),
|
||||||
|
var(--theme-surface-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-hero-panel p {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.62;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-panel-meta {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--gap-sm);
|
||||||
|
margin-top: clamp(1.2rem, 2.6vw, 2rem);
|
||||||
|
padding-top: var(--gap-sm);
|
||||||
|
border-top: 1px solid rgba(var(--theme-accent-rgb) / 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-panel-meta p,
|
||||||
|
.about-origin-box p,
|
||||||
|
.about-method-points p {
|
||||||
|
margin: 0.45rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
line-height: 1.55;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-section {
|
.about-section {
|
||||||
padding-top: var(--section-y-xs);
|
padding-top: var(--section-y-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-section--split,
|
.about-section--split,
|
||||||
.about-origin-section,
|
.about-origin-section,
|
||||||
.about-method-section {
|
.about-method-section {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
|
||||||
gap: var(--gap-lg);
|
gap: var(--gap-lg);
|
||||||
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-section-heading h2,
|
.about-section-heading h2,
|
||||||
.about-origin-copy h2,
|
.about-origin-copy h2,
|
||||||
.about-bottom-copy h2,
|
.about-bottom-copy h2,
|
||||||
.about-method-copy h2 {
|
.about-method-copy h2 {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: clamp(2.15rem, 5.2vw, 6rem);
|
font-size: clamp(2.15rem, 5.2vw, 6rem);
|
||||||
line-height: 0.94;
|
line-height: 0.94;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-section-copy,
|
.about-section-copy,
|
||||||
.about-method-points {
|
.about-method-points {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -549,31 +127,54 @@
|
|||||||
.about-card p,
|
.about-card p,
|
||||||
.about-proof-item p,
|
.about-proof-item p,
|
||||||
.about-trust-note p {
|
.about-trust-note p {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-section-copy p + p,
|
||||||
|
.about-origin-copy p + p {
|
||||||
|
margin-top: var(--gap-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-proof-strip,
|
.about-proof-strip,
|
||||||
.about-grid-section,
|
.about-grid-section,
|
||||||
.about-credentials-grid {
|
.about-credentials-grid {
|
||||||
|
display: grid;
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
margin-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-proof-strip {
|
.about-proof-strip {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-grid-section {
|
.about-grid-section {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-credentials-grid {
|
.about-credentials-grid {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-card,
|
||||||
|
.about-proof-item,
|
||||||
|
.about-credential-card,
|
||||||
|
.about-origin-box,
|
||||||
|
.about-method-section,
|
||||||
|
.about-trust-note {
|
||||||
|
border: 1px solid var(--theme-border);
|
||||||
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
|
||||||
|
var(--theme-surface-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-card,
|
.about-card,
|
||||||
.about-proof-item,
|
.about-proof-item,
|
||||||
.about-credential-card {
|
.about-credential-card {
|
||||||
|
min-height: 100%;
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
transition:
|
transition:
|
||||||
transform var(--duration-med) var(--ease-out),
|
transform var(--duration-med) var(--ease-out),
|
||||||
border-color var(--duration-med) var(--ease-out),
|
border-color var(--duration-med) var(--ease-out),
|
||||||
@@ -590,79 +191,184 @@
|
|||||||
|
|
||||||
.about-card h3,
|
.about-card h3,
|
||||||
.about-credential-card h3 {
|
.about-credential-card h3 {
|
||||||
|
margin: 0.9rem 0 0.75rem;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: var(--text-xl);
|
font-size: var(--text-xl);
|
||||||
|
line-height: 1.08;
|
||||||
|
font-weight: 400;
|
||||||
|
letter-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-proof-item {
|
||||||
|
min-height: 9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-proof-item p {
|
||||||
|
margin-top: 0.7rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-quote-block {
|
.about-quote-block {
|
||||||
margin-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
padding: clamp(1.4rem, 4vw, 3rem);
|
padding: clamp(1.4rem, 4vw, 3rem);
|
||||||
|
overflow: hidden;
|
||||||
|
border-left: 3px solid var(--theme-accent);
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb) / 0.18), transparent 18rem),
|
radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb) / 0.18), transparent 18rem),
|
||||||
#171717;
|
#171717;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-quote-block p {
|
.about-quote-block p {
|
||||||
|
max-width: 58rem;
|
||||||
|
margin: 0;
|
||||||
|
color: #fff;
|
||||||
font-size: clamp(1.7rem, 4vw, 4.2rem);
|
font-size: clamp(1.7rem, 4vw, 4.2rem);
|
||||||
line-height: 1.08;
|
line-height: 1.08;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-origin-section,
|
|
||||||
.about-process-section,
|
.about-process-section,
|
||||||
.about-faq-section {
|
.about-origin-section {
|
||||||
margin-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
padding-top: var(--section-y-xs);
|
padding-top: var(--section-y-sm);
|
||||||
|
border-top: 1px solid var(--theme-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-method-section {
|
||||||
|
margin-top: var(--section-y-sm);
|
||||||
|
padding: clamp(1.25rem, 3vw, 2.4rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-method-points > div,
|
||||||
|
.about-origin-box > div {
|
||||||
|
padding-top: 1rem;
|
||||||
|
border-top: 1px solid var(--theme-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-origin-box {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--gap-sm);
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-trust-note {
|
||||||
|
margin-top: var(--section-y-sm);
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
|
border-color: rgba(var(--theme-accent-rgb) / 0.24);
|
||||||
|
background:
|
||||||
|
linear-gradient(135deg, rgba(var(--theme-accent-rgb) / 0.11), transparent 60%),
|
||||||
|
var(--theme-surface-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-trust-note p {
|
||||||
|
max-width: 72rem;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
color: var(--theme-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-bottom-cta {
|
.about-bottom-cta {
|
||||||
margin-top: var(--section-y-xs);
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
|
gap: var(--gap-lg);
|
||||||
|
align-items: end;
|
||||||
|
margin-top: var(--section-y-sm);
|
||||||
padding: clamp(1.5rem, 4vw, 3.5rem);
|
padding: clamp(1.5rem, 4vw, 3.5rem);
|
||||||
|
overflow: hidden;
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.22), transparent 20rem),
|
radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.22), transparent 20rem),
|
||||||
var(--theme-accent);
|
var(--theme-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-bottom-copy .about-label,
|
||||||
|
.about-bottom-copy h2,
|
||||||
|
.about-bottom-copy p {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-bottom-copy p {
|
||||||
|
max-width: 48rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-bottom-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--gap-xs);
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
.about-btn {
|
.about-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
|
padding: 0 1.1rem;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
color: inherit;
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
text-decoration: none;
|
||||||
|
transition:
|
||||||
|
transform var(--duration-med) var(--ease-out),
|
||||||
|
box-shadow var(--duration-med) var(--ease-out),
|
||||||
|
background-color var(--duration-med) var(--ease-out);
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-btn:hover,
|
.about-btn:hover,
|
||||||
.about-btn:focus-visible {
|
.about-btn:focus-visible {
|
||||||
|
transform: translateY(-2px);
|
||||||
box-shadow: var(--theme-shadow-soft);
|
box-shadow: var(--theme-shadow-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
.about-btn--primary {
|
||||||
|
background: #fff;
|
||||||
|
color: var(--theme-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-btn--secondary {
|
||||||
|
border-color: rgba(255, 255, 255, 0.22);
|
||||||
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
color: #fff;
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1180px) {
|
||||||
.about-hero,
|
.about-hero,
|
||||||
.about-section--split,
|
.about-section--split,
|
||||||
.about-origin-section,
|
.about-origin-section,
|
||||||
.about-bottom-cta,
|
.about-method-section,
|
||||||
.about-method-section {
|
.about-bottom-cta {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-proof-strip,
|
||||||
|
.about-grid-section,
|
||||||
|
.about-credentials-grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 760px) {
|
||||||
.about-page {
|
.about-hero {
|
||||||
padding-inline: var(--page-x);
|
padding-top: clamp(1.4rem, 5vw, 2rem);
|
||||||
}
|
|
||||||
|
|
||||||
.about-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
padding-inline: clamp(0.9rem, 4vw, 1.1rem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-hero-copy h1 {
|
.about-hero-copy h1 {
|
||||||
font-size: clamp(2.55rem, 13vw, 4.4rem);
|
font-size: clamp(2.55rem, 13vw, 4.4rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-proof-strip,
|
||||||
|
.about-grid-section,
|
||||||
|
.about-credentials-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
.about-bottom-actions {
|
.about-bottom-actions {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
justify-content: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-btn {
|
.about-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Design System Refinement End --- */
|
|
||||||
|
|
||||||
@@ -5,9 +5,9 @@ import "./AboutPage.css";
|
|||||||
function AboutPage() {
|
function AboutPage() {
|
||||||
return (
|
return (
|
||||||
<div className="about-page">
|
<div className="about-page">
|
||||||
<SharedNavbar variant="light" />
|
<SharedNavbar variant="hero" />
|
||||||
|
|
||||||
<main className="about-shell">
|
<main className="shell">
|
||||||
<section className="about-hero" data-reveal-group>
|
<section className="about-hero" data-reveal-group>
|
||||||
<div className="about-hero-copy">
|
<div className="about-hero-copy">
|
||||||
<span className="about-kicker" data-reveal="fade">
|
<span className="about-kicker" data-reveal="fade">
|
||||||
|
|||||||
@@ -1,210 +1,108 @@
|
|||||||
.datenschutz-page {
|
.datenschutz-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
padding: 0 0 var(--section-y-sm);
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
padding: 26px 38px 38px;
|
|
||||||
background:
|
background:
|
||||||
linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1)),
|
radial-gradient(circle at 86% 8%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
|
linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-shell {
|
|
||||||
background: var(--theme-surface);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 38px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-kicker,
|
.datenschutz-kicker,
|
||||||
.datenschutz-label {
|
.datenschutz-label {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.22em;
|
|
||||||
color: var(--theme-text-muted);
|
color: var(--theme-text-muted);
|
||||||
|
font-size: var(--text-xs);
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-hero {
|
.datenschutz-hero {
|
||||||
padding-bottom: 32px;
|
padding: clamp(2rem, 5vw, 5rem) 0 var(--section-y-sm);
|
||||||
border-bottom: 1px solid var(--theme-border);
|
border-bottom: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-hero h1 {
|
.datenschutz-hero h1 {
|
||||||
margin: 14px 0 16px;
|
margin: clamp(0.85rem, 2vw, 1.2rem) 0 clamp(1rem, 2vw, 1.35rem);
|
||||||
font-size: 64px;
|
|
||||||
line-height: 0.92;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-intro {
|
|
||||||
max-width: 820px;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 17px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-section {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
|
|
||||||
gap: 28px;
|
|
||||||
align-items: start;
|
|
||||||
margin-top: 38px;
|
|
||||||
padding-top: 38px;
|
|
||||||
border-top: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-section-heading h2 {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 38px;
|
|
||||||
line-height: 0.98;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-section-copy p {
|
|
||||||
margin: 0 0 16px;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.75;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-list {
|
|
||||||
margin: 0;
|
|
||||||
padding-left: 18px;
|
|
||||||
display: grid;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-list li {
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-note-box {
|
|
||||||
padding: 22px;
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.18);
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.08),
|
|
||||||
rgba(255, 106, 0, 0.03)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-note-box p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
|
||||||
.datenschutz-section {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-hero h1 {
|
|
||||||
font-size: 48px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
|
||||||
.datenschutz-page {
|
|
||||||
padding: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-shell {
|
|
||||||
padding: 24px 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-hero h1 {
|
|
||||||
font-size: 36px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-section-heading h2 {
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-intro,
|
|
||||||
.datenschutz-section-copy p,
|
|
||||||
.datenschutz-list li {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Design System Refinement Start --- */
|
|
||||||
|
|
||||||
.datenschutz-page {
|
|
||||||
padding: clamp(1rem, 3vw, 2.4rem) var(--page-x) clamp(2rem, 5vw, 4rem);
|
|
||||||
background:
|
|
||||||
radial-gradient(circle at 88% 9%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
|
||||||
linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
|
|
||||||
var(--theme-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-shell {
|
|
||||||
width: var(--container-narrow);
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: clamp(1.25rem, 3vw, 2.8rem);
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
box-shadow: var(--theme-shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-kicker,
|
|
||||||
.datenschutz-label {
|
|
||||||
font-size: var(--text-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-hero {
|
|
||||||
padding-bottom: var(--section-y-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-hero h1 {
|
|
||||||
font-size: clamp(3rem, 8vw, 7.2rem);
|
font-size: clamp(3rem, 8vw, 7.2rem);
|
||||||
line-height: 0.9;
|
line-height: 0.9;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-intro {
|
.datenschutz-intro {
|
||||||
max-width: var(--text-measure);
|
max-width: var(--text-measure);
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-lg);
|
font-size: var(--text-lg);
|
||||||
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-section {
|
.datenschutz-section {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
|
||||||
gap: var(--gap-lg);
|
gap: var(--gap-lg);
|
||||||
margin-top: var(--section-y-xs);
|
align-items: start;
|
||||||
padding-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
|
padding-top: var(--section-y-sm);
|
||||||
|
border-top: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-section-heading h2 {
|
.datenschutz-section-heading h2 {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: clamp(2rem, 4.2vw, 4.5rem);
|
font-size: clamp(2rem, 4.2vw, 4.5rem);
|
||||||
line-height: 0.96;
|
line-height: 0.96;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-section-copy p,
|
.datenschutz-section-copy p {
|
||||||
.datenschutz-list li,
|
margin: 0 0 1rem;
|
||||||
.datenschutz-note-box p {
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.datenschutz-list {
|
||||||
|
display: grid;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.datenschutz-list li {
|
||||||
|
color: var(--theme-text-muted);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.datenschutz-note-box {
|
.datenschutz-note-box {
|
||||||
border-radius: var(--radius-lg);
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
|
border: 1px solid rgba(var(--theme-accent-rgb) / 0.24);
|
||||||
|
background:
|
||||||
|
linear-gradient(135deg, rgba(var(--theme-accent-rgb) / 0.11), transparent 60%),
|
||||||
|
var(--theme-surface-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.datenschutz-note-box p {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.datenschutz-section {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.datenschutz-page {
|
.datenschutz-hero {
|
||||||
padding-inline: var(--page-x);
|
padding-top: clamp(1.4rem, 5vw, 2rem);
|
||||||
}
|
|
||||||
|
|
||||||
.datenschutz-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
padding-inline: clamp(0.9rem, 4vw, 1.1rem);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Design System Refinement End --- */
|
|
||||||
|
|
||||||
@@ -4,9 +4,9 @@ import "./DatenschutzPage.css";
|
|||||||
function DatenschutzPage() {
|
function DatenschutzPage() {
|
||||||
return (
|
return (
|
||||||
<div className="datenschutz-page">
|
<div className="datenschutz-page">
|
||||||
<SharedNavbar variant="light" />
|
<SharedNavbar variant="hero" />
|
||||||
|
|
||||||
<main className="datenschutz-shell">
|
<main className="shell">
|
||||||
<section className="datenschutz-hero" data-reveal-group>
|
<section className="datenschutz-hero" data-reveal-group>
|
||||||
<span className="datenschutz-kicker" data-reveal="fade">RECHTLICHE ANGABEN</span>
|
<span className="datenschutz-kicker" data-reveal="fade">RECHTLICHE ANGABEN</span>
|
||||||
<h1 data-reveal="lines">DATENSCHUTZ</h1>
|
<h1 data-reveal="lines">DATENSCHUTZ</h1>
|
||||||
|
|||||||
@@ -1,241 +1,285 @@
|
|||||||
import { useNavigate } from "react-router";
|
|
||||||
import perfumes from "../data/perfumes";
|
import perfumes from "../data/perfumes";
|
||||||
import SharedNavbar from "../components/SharedNavbar";
|
import SharedNavbar from "../components/SharedNavbar";
|
||||||
import { useShop } from "../shop/useShop";
|
import { useShop } from "../shop/useShop";
|
||||||
import "./DiscoverySetPage.css";
|
import "./DiscoverySetPage.css";
|
||||||
|
|
||||||
const moodImages = [
|
const DISCOVERY_SET_IMAGE = "/atmos-discovery-set-thumbnail.png";
|
||||||
"/DISCOVERYSET.png",
|
|
||||||
"/DISCOVERYSET.png",
|
const discoveryPanelFacts = [
|
||||||
"/DISCOVERYSET.png",
|
{ label: "Umfang", value: "6 × 2ml" },
|
||||||
"/DISCOVERYSET.png",
|
{ label: "Gutschrift", value: "CHF 48 werden beim späteren Full-Size-Kauf berücksichtigt." },
|
||||||
"/DISCOVERYSET.png",
|
|
||||||
"/DISCOVERYSET.png",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const discoveryBenefits = [
|
||||||
|
{
|
||||||
|
title: "6 × 2ml Samples aller Signature-Düfte",
|
||||||
|
text: "Kalter Beton, Schwarzes Benzin, Verbranntes Chrom, Blasse Seide, Weisse Asche und Nasser Marmor.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "CHF 48 Gutschein automatisch im Set",
|
||||||
|
text: "Nur das erste Discovery Set erstellt den einmaligen Rabatt. Er wird bei einem späteren Full-Size-Kauf automatisch angerechnet.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Jedes Sample = ca. 20 Anwendungen",
|
||||||
|
text: "Genug, um jeden Duft mehrere Tage im Alltag und in unterschiedlichen Situationen zu testen.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Hochwertige Mini-Flacons",
|
||||||
|
text: "Sorgfältig zusammengestellt, reduziert gestaltet und als Teil des atmos Konzepts gedacht.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const discoverySteps = [
|
||||||
|
{
|
||||||
|
number: "01",
|
||||||
|
title: "Bestellen",
|
||||||
|
text: "Discovery Set für CHF 48 bestellen. Nur dein erstes Set erzeugt automatisch einen einmaligen Rabatt.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
number: "02",
|
||||||
|
title: "Testen",
|
||||||
|
text: "Jeden Duft mindestens einige Tage tragen. Im Alltag, zu verschiedenen Anlässen und auf der eigenen Haut.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
number: "03",
|
||||||
|
title: "Entscheiden",
|
||||||
|
text: "Full-Size bestellen. CHF 48 werden automatisch angerechnet, sofern der Rabatt noch nicht genutzt wurde.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const discoveryComparison = [
|
||||||
|
{
|
||||||
|
icon: "×",
|
||||||
|
title: "Traditioneller Weg",
|
||||||
|
text: "CHF 180+ für eine Full Size ausgeben, ohne zu wissen, ob sie wirklich passt. Risiko: Fehlkauf, Überforderung oder ein Duft, der im Regal bleibt.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "✓",
|
||||||
|
title: "Discovery Set Weg",
|
||||||
|
text: "CHF 48 investieren, alle Düfte testen, bewusst entscheiden. Die erste Investition wird einmalig angerechnet – der Einstieg bleibt kontrolliert, nachvollziehbar und fair.",
|
||||||
|
highlight: true,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
function DiscoveryOrderPanel({ onBuy }) {
|
||||||
|
return (
|
||||||
|
<aside className="discovery-order-panel">
|
||||||
|
<div className="discovery-price-row">
|
||||||
|
<span>Preis</span>
|
||||||
|
<strong>CHF 48.–</strong>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-panel-facts">
|
||||||
|
{discoveryPanelFacts.map((item) => (
|
||||||
|
<div key={item.label}>
|
||||||
|
<span>{item.label}</span>
|
||||||
|
<p>{item.value}</p>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-panel-actions">
|
||||||
|
<button type="button" className="discovery-primary-btn" onClick={onBuy}>
|
||||||
|
Kaufen
|
||||||
|
</button>
|
||||||
|
<p>Nur das erste Set erstellt einen einmaligen CHF 48 Full-Size-Rabatt.</p>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function DiscoveryHero({ onBuy }) {
|
||||||
|
return (
|
||||||
|
<section className="discovery-hero">
|
||||||
|
<div className="discovery-hero-stage">
|
||||||
|
<div className="discovery-hero-copy">
|
||||||
|
<span className="discovery-kicker">Discovery Set</span>
|
||||||
|
<h1>Der Einstieg</h1>
|
||||||
|
|
||||||
|
<p className="discovery-intro">
|
||||||
|
6 Düfte × 2ml. Jeden Duft eine Woche tragen. Verstehen, was
|
||||||
|
wirklich funktioniert. Ohne Risiko. Der sichere Einstieg in die
|
||||||
|
Welt der Nischendüfte, bevor du dich für eine Full Size entscheidest.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<figure className="discovery-hero-visual">
|
||||||
|
<img
|
||||||
|
src={DISCOVERY_SET_IMAGE}
|
||||||
|
alt="Atmos Discovery Set"
|
||||||
|
loading="eager"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<DiscoveryOrderPanel onBuy={onBuy} />
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function DiscoveryStorySection() {
|
||||||
|
return (
|
||||||
|
<section className="discovery-story-grid" data-reveal-group>
|
||||||
|
<div className="discovery-story-copy">
|
||||||
|
<span className="discovery-label" data-reveal="fade">
|
||||||
|
Warum Discovery Set
|
||||||
|
</span>
|
||||||
|
<h2 data-reveal="lines">Der klügere Einstieg.</h2>
|
||||||
|
<p data-reveal="fade">
|
||||||
|
Nischen-Parfums sind keine Impulskäufe. Sie brauchen Zeit, um zu
|
||||||
|
verstehen, wie sie auf deiner Haut funktionieren, wie sie sich im
|
||||||
|
Alltag entwickeln und ob sie wirklich zu dir passen.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-benefit-panel" data-reveal="fade">
|
||||||
|
<div className="discovery-benefit-panel-head">
|
||||||
|
<span>Testlogik</span>
|
||||||
|
<strong>6 × 2ml</strong>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{discoveryBenefits.map((benefit) => (
|
||||||
|
<article className="discovery-benefit" key={benefit.title}>
|
||||||
|
<div>
|
||||||
|
<strong>{benefit.title}</strong>
|
||||||
|
<p>{benefit.text}</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function DiscoveryProcessSection() {
|
||||||
|
return (
|
||||||
|
<section className="discovery-process-section" data-reveal-group>
|
||||||
|
<div className="discovery-section-intro">
|
||||||
|
<span className="discovery-label" data-reveal="fade">
|
||||||
|
Ablauf
|
||||||
|
</span>
|
||||||
|
<h2 data-reveal="lines">So funktioniert's</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-steps-grid">
|
||||||
|
{discoverySteps.map((step) => (
|
||||||
|
<article className="discovery-step-card" key={step.number} data-reveal="fade">
|
||||||
|
<span className="discovery-step-number">{step.number}</span>
|
||||||
|
<h3>{step.title}</h3>
|
||||||
|
<p>{step.text}</p>
|
||||||
|
</article>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function DiscoveryIncludedSection() {
|
||||||
|
return (
|
||||||
|
<section className="discovery-included" data-reveal-group>
|
||||||
|
<div className="discovery-section-heading">
|
||||||
|
<span className="discovery-label" data-reveal="fade">
|
||||||
|
Im Set enthalten
|
||||||
|
</span>
|
||||||
|
<h2 data-reveal="lines">Alle 6 Signature-Düfte zum Testen.</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-products-grid">
|
||||||
|
{perfumes.map((perfume) => (
|
||||||
|
<article className="discovery-product-card" key={perfume.id} data-reveal="fade">
|
||||||
|
<span className="discovery-product-index">{perfume.id}</span>
|
||||||
|
|
||||||
|
<div className="discovery-product-image">
|
||||||
|
<img
|
||||||
|
src={perfume.image}
|
||||||
|
alt={perfume.name}
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-product-copy">
|
||||||
|
<h3>{perfume.name}</h3>
|
||||||
|
<p>{perfume.text}</p>
|
||||||
|
|
||||||
|
<div className="discovery-product-tags">
|
||||||
|
{perfume.materialTags.slice(0, 3).map((tag) => (
|
||||||
|
<span key={tag}>{tag}</span>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function DiscoveryComparisonSection() {
|
||||||
|
return (
|
||||||
|
<section className="discovery-comparison-section" data-reveal-group>
|
||||||
|
<div className="discovery-comparison-grid">
|
||||||
|
{discoveryComparison.map((item) => (
|
||||||
|
<article
|
||||||
|
className={`discovery-comparison-card${
|
||||||
|
item.highlight ? " discovery-comparison-card--highlight" : ""
|
||||||
|
}`}
|
||||||
|
key={item.title}
|
||||||
|
data-reveal="fade"
|
||||||
|
>
|
||||||
|
<div className="discovery-comparison-head">
|
||||||
|
<span className="discovery-comparison-icon" aria-hidden="true">
|
||||||
|
{item.icon}
|
||||||
|
</span>
|
||||||
|
<h3>{item.title}</h3>
|
||||||
|
</div>
|
||||||
|
<p>{item.text}</p>
|
||||||
|
</article>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function DiscoveryFinalCta({ onBuy }) {
|
||||||
|
return (
|
||||||
|
<section className="discovery-final-cta" data-reveal-group>
|
||||||
|
<div>
|
||||||
|
<span className="discovery-label" data-reveal="fade">
|
||||||
|
Discovery Set
|
||||||
|
</span>
|
||||||
|
<h2 data-reveal="lines">Der sichere Einstieg.</h2>
|
||||||
|
<p data-reveal="fade">
|
||||||
|
Kostenloser Versand · 2–3 Werktage · Einmalige Anrechnung bei Full-Size
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="discovery-final-actions" data-reveal="fade">
|
||||||
|
<button type="button" className="discovery-primary-btn" onClick={onBuy}>
|
||||||
|
Kaufen
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function DiscoverySetPage() {
|
function DiscoverySetPage() {
|
||||||
const navigate = useNavigate();
|
|
||||||
const { addToCart } = useShop();
|
const { addToCart } = useShop();
|
||||||
const buyDiscoverySet = () =>
|
const buyDiscoverySet = () =>
|
||||||
addToCart("discovery-set", 1, "Discovery Set added.").catch(() => {});
|
addToCart("discovery-set", 1, "Discovery Set added.").catch(() => {});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="discovery-page">
|
<div className="discovery-page">
|
||||||
<SharedNavbar variant="light" active="testen" />
|
<SharedNavbar variant="hero" active="testen" />
|
||||||
|
|
||||||
<main className="discovery-shell">
|
<main className="shell">
|
||||||
<div className="discovery-topbar">
|
<DiscoveryHero onBuy={buyDiscoverySet} />
|
||||||
<button className="discovery-back-link" type="button" onClick={() => navigate("/")}>
|
<DiscoveryStorySection />
|
||||||
<span className="discovery-back-arrow">←</span>
|
<DiscoveryIncludedSection />
|
||||||
<span>Zurück zur Startseite</span>
|
<DiscoveryProcessSection />
|
||||||
</button>
|
<DiscoveryComparisonSection />
|
||||||
</div>
|
<DiscoveryFinalCta onBuy={buyDiscoverySet} />
|
||||||
|
|
||||||
<section className="discovery-hero" data-reveal-group>
|
|
||||||
<div className="discovery-hero-copy">
|
|
||||||
<span className="discovery-kicker" data-reveal="fade">
|
|
||||||
DISCOVERY SET
|
|
||||||
</span>
|
|
||||||
<h1 data-reveal="lines">
|
|
||||||
DER SICHERSTE EINSTIEG
|
|
||||||
<br />
|
|
||||||
IN DIE WELT DER NISCHEN-
|
|
||||||
<br />
|
|
||||||
DÜFTE
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<p className="discovery-intro" data-reveal="fade">
|
|
||||||
6 Düfte × 2ml. Jeden Duft eine Woche tragen. Verstehen, was
|
|
||||||
wirklich funktioniert. Ohne Risiko.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div className="discovery-benefits" data-reveal="fade">
|
|
||||||
<div className="discovery-benefit">
|
|
||||||
<span className="discovery-benefit-icon">✓</span>
|
|
||||||
<div>
|
|
||||||
<strong>6 × 2ml Samples aller Signature-Düfte</strong>
|
|
||||||
<p>
|
|
||||||
Kalter Beton, Schwarzes Benzin, Verbranntes Chrom, Blasse
|
|
||||||
Seide, Weisse Asche und Nasser Marmor.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-benefit">
|
|
||||||
<span className="discovery-benefit-icon">✓</span>
|
|
||||||
<div>
|
|
||||||
<strong>CHF 48 Gutschein automatisch im Set</strong>
|
|
||||||
<p>
|
|
||||||
Nur das erste Discovery Set erstellt den einmaligen Rabatt.
|
|
||||||
Er wird bei einem späteren Full-Size-Kauf automatisch angerechnet.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-benefit">
|
|
||||||
<span className="discovery-benefit-icon">✓</span>
|
|
||||||
<div>
|
|
||||||
<strong>Jedes Sample = ca. 20 Anwendungen</strong>
|
|
||||||
<p>
|
|
||||||
Genug, um jeden Duft mehrere Tage im Alltag und in
|
|
||||||
unterschiedlichen Situationen zu testen.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-benefit">
|
|
||||||
<span className="discovery-benefit-icon">✓</span>
|
|
||||||
<div>
|
|
||||||
<strong>Hochwertige Mini-Flacons</strong>
|
|
||||||
<p>
|
|
||||||
Sorgfältig zusammengestellt, reduziert gestaltet und als
|
|
||||||
Teil des atmos Konzepts gedacht.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-hero-actions" data-reveal="fade">
|
|
||||||
<button type="button" className="discovery-primary-btn" onClick={buyDiscoverySet}>
|
|
||||||
DISCOVERY SET BESTELLEN – CHF 48.–
|
|
||||||
</button>
|
|
||||||
<p>Nur das erste Set erstellt einen einmaligen CHF 48 Full-Size-Rabatt</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-mood-grid">
|
|
||||||
{moodImages.map((image, index) => (
|
|
||||||
<div className="discovery-mood-tile" key={index}>
|
|
||||||
<img
|
|
||||||
src={image}
|
|
||||||
alt={`Discovery Mood ${index + 1}`}
|
|
||||||
loading={index === 0 ? "eager" : "lazy"}
|
|
||||||
decoding="async"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="discovery-included" data-reveal-group>
|
|
||||||
<div className="discovery-section-heading">
|
|
||||||
<span className="discovery-label" data-reveal="fade">
|
|
||||||
IM SET ENTHALTEN
|
|
||||||
</span>
|
|
||||||
<h2 data-reveal="lines">ALLE 6 SIGNATURE-DÜFTE ZUM TESTEN.</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-products-grid">
|
|
||||||
{perfumes.map((perfume) => (
|
|
||||||
<article className="discovery-product-card" key={perfume.id}>
|
|
||||||
<div className="discovery-product-image">
|
|
||||||
<img
|
|
||||||
src={perfume.image}
|
|
||||||
alt={perfume.name}
|
|
||||||
loading="lazy"
|
|
||||||
decoding="async"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-product-copy">
|
|
||||||
<h3>{perfume.name}</h3>
|
|
||||||
<p>{perfume.text}</p>
|
|
||||||
|
|
||||||
<div className="discovery-product-tags">
|
|
||||||
{perfume.materialTags.slice(0, 3).map((tag) => (
|
|
||||||
<span key={tag}>{tag}</span>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="discovery-steps-section">
|
|
||||||
<div className="discovery-steps-shell" data-reveal-group>
|
|
||||||
<h2 data-reveal="lines">So funktioniert's</h2>
|
|
||||||
|
|
||||||
<div className="discovery-steps-grid">
|
|
||||||
<article className="discovery-step-card" data-reveal="fade">
|
|
||||||
<div className="discovery-step-number">1</div>
|
|
||||||
<h3>Bestellen</h3>
|
|
||||||
<p>
|
|
||||||
Discovery Set für CHF 48 bestellen. Nur dein erstes Set erzeugt
|
|
||||||
automatisch einen einmaligen Rabatt.
|
|
||||||
</p>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<article className="discovery-step-card" data-reveal="fade">
|
|
||||||
<div className="discovery-step-number">2</div>
|
|
||||||
<h3>Testen</h3>
|
|
||||||
<p>
|
|
||||||
Jeden Duft mindestens einige Tage tragen. Im Alltag, zu
|
|
||||||
verschiedenen Anlässen und auf der eigenen Haut.
|
|
||||||
</p>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<article className="discovery-step-card" data-reveal="fade">
|
|
||||||
<div className="discovery-step-number">3</div>
|
|
||||||
<h3>Entscheiden</h3>
|
|
||||||
<p>
|
|
||||||
Full-Size bestellen. CHF 48 werden automatisch angerechnet,
|
|
||||||
sofern der Rabatt noch nicht genutzt wurde.
|
|
||||||
</p>
|
|
||||||
</article>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="discovery-comparison-section" data-reveal-group>
|
|
||||||
<div className="discovery-section-heading discovery-section-heading--center">
|
|
||||||
<span className="discovery-label" data-reveal="fade">
|
|
||||||
WARUM DISCOVERY SET
|
|
||||||
</span>
|
|
||||||
<h2 data-reveal="lines">DER KLÜGERE EINSTIEG IN NISCHENDÜFTE.</h2>
|
|
||||||
<p data-reveal="fade">
|
|
||||||
Nischen-Parfums sind keine Impulskäufe. Sie brauchen Zeit, um zu
|
|
||||||
verstehen, wie sie auf deiner Haut funktionieren, wie sie sich im
|
|
||||||
Alltag entwickeln und ob sie wirklich zu dir passen.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-comparison-grid">
|
|
||||||
<div className="discovery-comparison-card" data-reveal="fade">
|
|
||||||
<div className="discovery-comparison-head">
|
|
||||||
<span className="discovery-comparison-icon">×</span>
|
|
||||||
<h3>Traditioneller Weg</h3>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
CHF 180+ für eine Full Size ausgeben, ohne zu wissen, ob sie
|
|
||||||
wirklich passt. Risiko: Fehlkauf, Überforderung oder ein Duft,
|
|
||||||
der im Regal bleibt.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
|
||||||
className="discovery-comparison-card discovery-comparison-card--highlight"
|
|
||||||
data-reveal="fade"
|
|
||||||
>
|
|
||||||
<div className="discovery-comparison-head">
|
|
||||||
<span className="discovery-comparison-icon">✓</span>
|
|
||||||
<h3>Discovery Set Weg</h3>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
CHF 48 investieren, alle Düfte testen, bewusst entscheiden. Die
|
|
||||||
erste Investition wird einmalig angerechnet – der Einstieg bleibt
|
|
||||||
kontrolliert, nachvollziehbar und fair.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="discovery-bottom-cta" data-reveal="fade">
|
|
||||||
<button type="button" className="discovery-primary-btn" onClick={buyDiscoverySet}>
|
|
||||||
DISCOVERY SET BESTELLEN – CHF 48.–
|
|
||||||
</button>
|
|
||||||
<p>Kostenloser Versand · 2–3 Werktage · Einmalige Anrechnung bei Full-Size</p>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,206 +1,62 @@
|
|||||||
.impressum-page {
|
.impressum-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
padding: 0 0 var(--section-y-sm);
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
padding: 26px 38px 38px;
|
|
||||||
background:
|
background:
|
||||||
linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1)),
|
radial-gradient(circle at 86% 8%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
|
linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-shell {
|
|
||||||
background: var(--theme-surface);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 38px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-kicker,
|
.impressum-kicker,
|
||||||
.impressum-label {
|
.impressum-label {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.22em;
|
|
||||||
color: var(--theme-text-muted);
|
color: var(--theme-text-muted);
|
||||||
|
font-size: var(--text-xs);
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-hero {
|
.impressum-hero {
|
||||||
padding-bottom: 32px;
|
padding: clamp(2rem, 5vw, 5rem) 0 var(--section-y-sm);
|
||||||
border-bottom: 1px solid var(--theme-border);
|
border-bottom: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-hero h1 {
|
.impressum-hero h1 {
|
||||||
margin: 14px 0 16px;
|
margin: clamp(0.85rem, 2vw, 1.2rem) 0 clamp(1rem, 2vw, 1.35rem);
|
||||||
font-size: 64px;
|
|
||||||
line-height: 0.92;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-intro {
|
|
||||||
max-width: 760px;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 17px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 18px;
|
|
||||||
margin-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-card {
|
|
||||||
padding: 24px;
|
|
||||||
background: var(--theme-bg);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
min-height: 210px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-card h2 {
|
|
||||||
margin: 14px 0 12px;
|
|
||||||
font-size: 26px;
|
|
||||||
line-height: 1.05;
|
|
||||||
font-weight: 400;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-card p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-section {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
|
|
||||||
gap: 28px;
|
|
||||||
align-items: start;
|
|
||||||
margin-top: 38px;
|
|
||||||
padding-top: 38px;
|
|
||||||
border-top: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-section-heading h2 {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 38px;
|
|
||||||
line-height: 0.98;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-section-copy p {
|
|
||||||
margin: 0 0 16px;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.75;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-note-box {
|
|
||||||
padding: 22px;
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.18);
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.08),
|
|
||||||
rgba(255, 106, 0, 0.03)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-note-box p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
|
||||||
.impressum-grid,
|
|
||||||
.impressum-section {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-hero h1 {
|
|
||||||
font-size: 48px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
|
||||||
.impressum-page {
|
|
||||||
padding: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-shell {
|
|
||||||
padding: 24px 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-hero h1 {
|
|
||||||
font-size: 36px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-section-heading h2 {
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-intro,
|
|
||||||
.impressum-card p,
|
|
||||||
.impressum-section-copy p {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Design System Refinement Start --- */
|
|
||||||
|
|
||||||
.impressum-page {
|
|
||||||
padding: clamp(1rem, 3vw, 2.4rem) var(--page-x) clamp(2rem, 5vw, 4rem);
|
|
||||||
background:
|
|
||||||
radial-gradient(circle at 88% 9%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
|
||||||
linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
|
|
||||||
var(--theme-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-shell {
|
|
||||||
width: var(--container-narrow);
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: clamp(1.25rem, 3vw, 2.8rem);
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
box-shadow: var(--theme-shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-kicker,
|
|
||||||
.impressum-label {
|
|
||||||
font-size: var(--text-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-hero {
|
|
||||||
padding-bottom: var(--section-y-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-hero h1 {
|
|
||||||
font-size: clamp(3rem, 8vw, 7.2rem);
|
font-size: clamp(3rem, 8vw, 7.2rem);
|
||||||
line-height: 0.9;
|
line-height: 0.9;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-intro {
|
.impressum-intro {
|
||||||
max-width: var(--text-measure);
|
max-width: var(--text-measure);
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-lg);
|
font-size: var(--text-lg);
|
||||||
|
line-height: 1.65;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-grid {
|
.impressum-grid {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
margin-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-card,
|
.impressum-card,
|
||||||
.impressum-note-box {
|
.impressum-note-box {
|
||||||
border-radius: var(--radius-lg);
|
border: 1px solid var(--theme-border);
|
||||||
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
|
||||||
|
var(--theme-surface-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-card {
|
.impressum-card {
|
||||||
|
min-height: 210px;
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
transition:
|
transition:
|
||||||
transform var(--duration-med) var(--ease-out),
|
transform var(--duration-med) var(--ease-out),
|
||||||
border-color var(--duration-med) var(--ease-out),
|
border-color var(--duration-med) var(--ease-out),
|
||||||
@@ -213,42 +69,74 @@
|
|||||||
box-shadow: var(--theme-shadow-soft);
|
box-shadow: var(--theme-shadow-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-card h2,
|
.impressum-card h2 {
|
||||||
.impressum-section-heading h2 {
|
margin: 0.9rem 0 0.75rem;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-xl);
|
||||||
|
line-height: 1.08;
|
||||||
|
font-weight: 400;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-card h2 {
|
.impressum-card p {
|
||||||
font-size: var(--text-xl);
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-section {
|
.impressum-section {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
|
||||||
gap: var(--gap-lg);
|
gap: var(--gap-lg);
|
||||||
margin-top: var(--section-y-xs);
|
align-items: start;
|
||||||
padding-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
|
padding-top: var(--section-y-sm);
|
||||||
|
border-top: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-section-heading h2 {
|
.impressum-section-heading h2 {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: clamp(2rem, 4.2vw, 4.5rem);
|
font-size: clamp(2rem, 4.2vw, 4.5rem);
|
||||||
line-height: 0.96;
|
line-height: 0.96;
|
||||||
|
font-weight: 300;
|
||||||
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impressum-card p,
|
.impressum-section-copy p {
|
||||||
.impressum-section-copy p,
|
margin: 0 0 1rem;
|
||||||
.impressum-note-box p {
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.impressum-note-box {
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
|
border-color: rgba(var(--theme-accent-rgb) / 0.24);
|
||||||
|
background:
|
||||||
|
linear-gradient(135deg, rgba(var(--theme-accent-rgb) / 0.11), transparent 60%),
|
||||||
|
var(--theme-surface-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.impressum-note-box p {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.impressum-grid,
|
||||||
|
.impressum-section {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.impressum-page {
|
.impressum-hero {
|
||||||
padding-inline: var(--page-x);
|
padding-top: clamp(1.4rem, 5vw, 2rem);
|
||||||
}
|
|
||||||
|
|
||||||
.impressum-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
padding-inline: clamp(0.9rem, 4vw, 1.1rem);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Design System Refinement End --- */
|
|
||||||
|
|
||||||
@@ -4,9 +4,9 @@ import "./ImpressumPage.css";
|
|||||||
function ImpressumPage() {
|
function ImpressumPage() {
|
||||||
return (
|
return (
|
||||||
<div className="impressum-page">
|
<div className="impressum-page">
|
||||||
<SharedNavbar variant="light" />
|
<SharedNavbar variant="hero" />
|
||||||
|
|
||||||
<main className="impressum-shell">
|
<main className="shell">
|
||||||
<section className="impressum-hero" data-reveal-group>
|
<section className="impressum-hero" data-reveal-group>
|
||||||
<span className="impressum-kicker" data-reveal="fade">
|
<span className="impressum-kicker" data-reveal="fade">
|
||||||
RECHTLICHE ANGABEN
|
RECHTLICHE ANGABEN
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
.page {
|
.page {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background:
|
|
||||||
radial-gradient(circle at 82% 12%, rgba(var(--theme-accent-rgb) / 0.13), transparent 28rem),
|
|
||||||
linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
|
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,112 +24,139 @@
|
|||||||
.hero {
|
.hero {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: clamp(680px, 100svh, 980px);
|
min-height: 720px;
|
||||||
|
min-height: max(720px, 100vh);
|
||||||
|
min-height: max(720px, 100dvh);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: grid;
|
|
||||||
align-items: center;
|
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
background: #111;
|
background: var(--theme-bg);
|
||||||
|
transition: background-color var(--duration-med) var(--ease-out);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero::before {
|
.hero::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: 2;
|
z-index: 1;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero::before {
|
.hero-material {
|
||||||
background:
|
position: absolute;
|
||||||
radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.1), transparent 24rem),
|
inset: 0;
|
||||||
linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.08) 100%),
|
z-index: 0;
|
||||||
linear-gradient(0deg, rgba(0, 0, 0, 0.44), transparent 46%);
|
overflow: hidden;
|
||||||
|
background: var(--theme-bg);
|
||||||
|
will-change: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-media {
|
.hero-material__texture {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
background: var(--theme-bg);
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-media__image {
|
.hero-wordmark {
|
||||||
|
position: absolute;
|
||||||
|
top: clamp(3.4rem, 6vh, 5.5rem);
|
||||||
|
left: var(--page-x);
|
||||||
|
right: var(--page-x);
|
||||||
|
z-index: 2;
|
||||||
|
pointer-events: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-wordmark__mask {
|
||||||
|
overflow: hidden;
|
||||||
|
padding-top: 0.08rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-wordmark__image {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
opacity: 0.96;
|
||||||
|
will-change: transform, opacity, filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.theme-light .hero-wordmark__image {
|
||||||
|
filter: invert(1);
|
||||||
|
opacity: 0.86;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-product {
|
||||||
|
position: absolute;
|
||||||
|
top: clamp(22rem, 58vh, 44rem);
|
||||||
|
left: 50%;
|
||||||
|
z-index: 5;
|
||||||
|
width: clamp(19rem, 29vw, 38rem);
|
||||||
|
aspect-ratio: 1078 / 1284;
|
||||||
|
margin: 0;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-product__inner {
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: block;
|
|
||||||
object-fit: cover;
|
|
||||||
object-position: 60% center;
|
|
||||||
will-change: transform;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero .navbar--hero {
|
|
||||||
position: fixed;
|
|
||||||
top: clamp(0.75rem, 2.1vw, 1.4rem);
|
|
||||||
right: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: 998;
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-content {
|
|
||||||
position: relative;
|
|
||||||
z-index: 6;
|
|
||||||
width: var(--container-wide);
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: clamp(7rem, 14vh, 11rem) 0 clamp(3rem, 8vh, 6rem);
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(12, minmax(0, 1fr));
|
place-items: center;
|
||||||
gap: var(--gap-md);
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-title {
|
|
||||||
grid-column: 1 / span 7;
|
|
||||||
max-width: 10.8ch;
|
|
||||||
margin: 0;
|
|
||||||
font-size: clamp(3.2rem, 8.4vw, 8.8rem);
|
|
||||||
line-height: 0.9;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: #fff;
|
|
||||||
text-wrap: balance;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-title-line {
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
padding-right: 0.12em;
|
|
||||||
padding-bottom: 0.08em;
|
|
||||||
margin-right: -0.12em;
|
|
||||||
margin-bottom: -0.08em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-title-line .reveal-line {
|
|
||||||
will-change: transform;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-title-line + .hero-title-line {
|
|
||||||
margin-top: 0.02em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-text {
|
|
||||||
grid-column: 1 / span 5;
|
|
||||||
max-width: 31rem;
|
|
||||||
margin: 0;
|
|
||||||
font-size: var(--text-base);
|
|
||||||
line-height: 1.62;
|
|
||||||
color: rgba(255, 255, 255, 0.84);
|
|
||||||
will-change: transform, opacity;
|
will-change: transform, opacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero-product__image {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content {
|
||||||
|
position: absolute;
|
||||||
|
left: var(--page-x);
|
||||||
|
bottom: clamp(7.5rem, 19vh, 17rem);
|
||||||
|
z-index: 6;
|
||||||
|
width: min(25rem, calc(50vw - var(--page-x) - 8rem));
|
||||||
|
color: var(--theme-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-copy {
|
||||||
|
max-width: 25rem;
|
||||||
|
margin: 0;
|
||||||
|
font-size: clamp(1.65rem, 2.25vw, 2.25rem);
|
||||||
|
line-height: 1.08;
|
||||||
|
font-weight: 300;
|
||||||
|
letter-spacing: 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-copy-line {
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
padding-right: 0.08em;
|
||||||
|
padding-bottom: 0.03em;
|
||||||
|
margin-right: -0.08em;
|
||||||
|
margin-bottom: -0.03em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-copy-line .reveal-line {
|
||||||
|
display: inline-block;
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
|
||||||
.hero-actions {
|
.hero-actions {
|
||||||
grid-column: 1 / span 5;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: var(--gap-xs);
|
gap: clamp(0.75rem, 1.2vw, 1rem);
|
||||||
margin-top: clamp(0.2rem, 1vw, 0.7rem);
|
margin-top: clamp(1.25rem, 3.2vh, 1.75rem);
|
||||||
will-change: transform, opacity;
|
will-change: transform, opacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +164,7 @@
|
|||||||
.discovery-btn {
|
.discovery-btn {
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 999px;
|
border-radius: var(--radius-lg);
|
||||||
padding: 0 clamp(1rem, 2vw, 1.35rem);
|
padding: 0 clamp(1rem, 2vw, 1.35rem);
|
||||||
font-size: var(--text-sm);
|
font-size: var(--text-sm);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -173,10 +197,34 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-secondary {
|
.btn-secondary {
|
||||||
background: rgba(255, 255, 255, 0.13);
|
background: color-mix(in srgb, var(--theme-surface) 72%, transparent);
|
||||||
color: #fff;
|
color: var(--theme-text);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.24);
|
border: 1px solid var(--theme-border-strong);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-scroll {
|
||||||
|
position: absolute;
|
||||||
|
right: var(--page-x);
|
||||||
|
bottom: clamp(7.5rem, 19vh, 17rem);
|
||||||
|
z-index: 6;
|
||||||
|
width: min(28vw, 420px);
|
||||||
|
padding-top: 0.55rem;
|
||||||
|
border-top: 1px solid var(--theme-border-strong);
|
||||||
|
color: var(--theme-text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-scroll__line {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-scroll__label {
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
font-size: var(--text-xs);
|
||||||
|
line-height: 1.4;
|
||||||
|
letter-spacing: 0.16em;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro-overlay {
|
.intro-overlay {
|
||||||
@@ -223,6 +271,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.section-heading {
|
.section-heading {
|
||||||
|
position: relative;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(12, minmax(0, 1fr));
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
||||||
gap: var(--gap-md);
|
gap: var(--gap-md);
|
||||||
@@ -232,9 +281,11 @@
|
|||||||
|
|
||||||
.section-heading::after {
|
.section-heading::after {
|
||||||
content: "01 / Kollektion";
|
content: "01 / Kollektion";
|
||||||
grid-column: 9 / span 3;
|
position: absolute;
|
||||||
align-self: start;
|
top: 0;
|
||||||
padding-top: 0.3rem;
|
right: 0;
|
||||||
|
width: min(32vw, 420px);
|
||||||
|
padding-top: 0.55rem;
|
||||||
border-top: 1px solid var(--theme-border);
|
border-top: 1px solid var(--theme-border);
|
||||||
color: var(--theme-text-muted);
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-xs);
|
font-size: var(--text-xs);
|
||||||
@@ -447,9 +498,22 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
color: var(--theme-accent);
|
color: var(--theme-accent);
|
||||||
font-size: clamp(1.5rem, 2.5vw, 2rem);
|
font-size: 0;
|
||||||
line-height: 1;
|
line-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
width: clamp(1.35rem, 2.2vw, 1.75rem);
|
||||||
|
height: clamp(1.35rem, 2.2vw, 1.75rem);
|
||||||
|
background: currentColor;
|
||||||
|
transform: rotate(180deg);
|
||||||
|
-webkit-mask: url("/icon-arrow-left.svg") center / contain no-repeat;
|
||||||
|
mask: url("/icon-arrow-left.svg") center / contain no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-id,
|
.product-id,
|
||||||
@@ -563,21 +627,25 @@
|
|||||||
|
|
||||||
/* RESPONSIVE */
|
/* RESPONSIVE */
|
||||||
@media (max-width: 1180px) {
|
@media (max-width: 1180px) {
|
||||||
|
.hero-copy {
|
||||||
|
font-size: clamp(1.45rem, 2.35vw, 1.9rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-product {
|
||||||
|
width: clamp(21rem, 45vw, 34rem);
|
||||||
|
}
|
||||||
|
|
||||||
.hero-content {
|
.hero-content {
|
||||||
grid-template-columns: repeat(8, minmax(0, 1fr));
|
width: min(23rem, calc(50vw - var(--page-x) - 5rem));
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-scroll {
|
||||||
grid-column: 1 / span 6;
|
width: clamp(9rem, 16vw, 12rem);
|
||||||
}
|
|
||||||
|
|
||||||
.hero-text,
|
|
||||||
.hero-actions {
|
|
||||||
grid-column: 1 / span 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-heading {
|
.section-heading {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
padding-top: clamp(2.4rem, 6vw, 3.4rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-heading h2,
|
.section-heading h2,
|
||||||
@@ -604,51 +672,67 @@
|
|||||||
|
|
||||||
@media (max-width: 760px) {
|
@media (max-width: 760px) {
|
||||||
.hero {
|
.hero {
|
||||||
min-height: clamp(620px, 91svh, 760px);
|
min-height: 720px;
|
||||||
|
min-height: max(720px, 100vh);
|
||||||
|
min-height: max(720px, 100dvh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero::before {
|
.hero-material__texture {
|
||||||
background:
|
inset: 0;
|
||||||
linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28)),
|
|
||||||
linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 48%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-media__image {
|
.hero-wordmark {
|
||||||
object-position: 64% center;
|
top: clamp(5.8rem, 14svh, 7.5rem);
|
||||||
|
left: var(--page-x);
|
||||||
|
right: var(--page-x);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-product {
|
||||||
|
top: clamp(20.75rem, 49svh, 25.5rem);
|
||||||
|
left: 44%;
|
||||||
|
width: min(72vw, 19rem);
|
||||||
|
transform: translate(-50%, -58%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-content {
|
.hero-content {
|
||||||
display: flex;
|
left: clamp(1rem, 5vw, 1.5rem);
|
||||||
flex-direction: column;
|
right: clamp(1rem, 5vw, 1.5rem);
|
||||||
align-items: flex-start;
|
bottom: clamp(2rem, 7svh, 4rem);
|
||||||
justify-content: flex-end;
|
transform: none;
|
||||||
gap: var(--gap-sm);
|
width: auto;
|
||||||
padding-top: clamp(6.5rem, 18svh, 8.5rem);
|
max-width: 27rem;
|
||||||
padding-bottom: clamp(2.4rem, 8svh, 4rem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-copy {
|
||||||
max-width: 9.6ch;
|
font-size: clamp(1.55rem, 7vw, 2rem);
|
||||||
font-size: clamp(3rem, 17.5vw, 5.1rem);
|
line-height: 1.08;
|
||||||
}
|
|
||||||
|
|
||||||
.hero-text {
|
|
||||||
max-width: 25rem;
|
|
||||||
font-size: var(--text-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-actions {
|
.hero-actions {
|
||||||
width: min(100%, 22rem);
|
gap: 0.65rem;
|
||||||
|
margin-top: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-actions .btn {
|
.hero-actions .btn {
|
||||||
width: 100%;
|
min-height: 44px;
|
||||||
|
padding-inline: 0.95rem;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-scroll {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-grid {
|
.product-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-heading::after {
|
||||||
|
right: auto;
|
||||||
|
left: 0;
|
||||||
|
width: min(100%, 24rem);
|
||||||
|
}
|
||||||
|
|
||||||
.product-card {
|
.product-card {
|
||||||
min-height: clamp(340px, 118vw, 520px);
|
min-height: clamp(340px, 118vw, 520px);
|
||||||
}
|
}
|
||||||
@@ -670,8 +754,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 430px) {
|
@media (max-width: 430px) {
|
||||||
.hero-title {
|
.hero {
|
||||||
max-width: 9.2ch;
|
min-height: 700px;
|
||||||
|
min-height: max(700px, 100vh);
|
||||||
|
min-height: max(700px, 100dvh);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-product {
|
||||||
|
top: clamp(20.25rem, 48svh, 24.5rem);
|
||||||
|
left: 43%;
|
||||||
|
width: min(74vw, 18.25rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-copy {
|
||||||
|
font-size: clamp(1.42rem, 7vw, 1.72rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-heading h2,
|
.section-heading h2,
|
||||||
@@ -700,11 +796,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.hero-media,
|
.hero-material,
|
||||||
.hero-title-line,
|
.hero-material__texture,
|
||||||
.hero-text,
|
.hero-copy-line,
|
||||||
|
.hero-wordmark__image,
|
||||||
|
.hero-product,
|
||||||
|
.hero-product__inner,
|
||||||
|
.hero-product__image,
|
||||||
.hero-actions,
|
.hero-actions,
|
||||||
.hero-brand,
|
|
||||||
.intro-overlay,
|
.intro-overlay,
|
||||||
.product-card,
|
.product-card,
|
||||||
.product-image,
|
.product-image,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { gsap } from "gsap";
|
|||||||
import { ScrollTrigger } from "gsap/ScrollTrigger";
|
import { ScrollTrigger } from "gsap/ScrollTrigger";
|
||||||
import HeroSection from "../components/landing/HeroSection";
|
import HeroSection from "../components/landing/HeroSection";
|
||||||
import SharedNavbar from "../components/SharedNavbar";
|
import SharedNavbar from "../components/SharedNavbar";
|
||||||
|
import { useProductTransition } from "../transitions/ProductTransitionContext";
|
||||||
import perfumes from "../data/perfumes";
|
import perfumes from "../data/perfumes";
|
||||||
import "../pages/LandingPage.css";
|
import "../pages/LandingPage.css";
|
||||||
import "../style/navbar.css";
|
import "../style/navbar.css";
|
||||||
@@ -24,10 +25,12 @@ function LandingPage() {
|
|||||||
const overlayTextRef = useRef(null);
|
const overlayTextRef = useRef(null);
|
||||||
const heroImageWrapRef = useRef(null);
|
const heroImageWrapRef = useRef(null);
|
||||||
const heroImageRef = useRef(null);
|
const heroImageRef = useRef(null);
|
||||||
|
const heroWordmarkRef = useRef(null);
|
||||||
const discoveryImageRef = useRef(null);
|
const discoveryImageRef = useRef(null);
|
||||||
const headlineLineRefs = useRef([]);
|
const headlineLineRefs = useRef([]);
|
||||||
const heroMetaRefs = useRef([]);
|
const heroMetaRefs = useRef([]);
|
||||||
const cardRefs = useRef([]);
|
const cardRefs = useRef([]);
|
||||||
|
const { startProductTransition } = useProductTransition();
|
||||||
|
|
||||||
const [introSettings] = useState(() => {
|
const [introSettings] = useState(() => {
|
||||||
if (typeof window === "undefined") {
|
if (typeof window === "undefined") {
|
||||||
@@ -54,6 +57,10 @@ function LandingPage() {
|
|||||||
headlineLineRefs.current[1] = element;
|
headlineLineRefs.current[1] = element;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const setWordmarkRef = useCallback((element) => {
|
||||||
|
heroWordmarkRef.current = element;
|
||||||
|
}, []);
|
||||||
|
|
||||||
const setDescriptionRef = useCallback((element) => {
|
const setDescriptionRef = useCallback((element) => {
|
||||||
heroMetaRefs.current[0] = element;
|
heroMetaRefs.current[0] = element;
|
||||||
}, []);
|
}, []);
|
||||||
@@ -62,23 +69,31 @@ function LandingPage() {
|
|||||||
heroMetaRefs.current[1] = element;
|
heroMetaRefs.current[1] = element;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const setScrollRef = useCallback((element) => {
|
||||||
|
heroMetaRefs.current[2] = element;
|
||||||
|
}, []);
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
const overlay = overlayRef.current;
|
const overlay = overlayRef.current;
|
||||||
const overlayText = overlayTextRef.current;
|
const overlayText = overlayTextRef.current;
|
||||||
const heroImageWrap = heroImageWrapRef.current;
|
const heroImageWrap = heroImageWrapRef.current;
|
||||||
|
const heroWordmark = heroWordmarkRef.current;
|
||||||
const headlineLines = headlineLineRefs.current.filter(Boolean);
|
const headlineLines = headlineLineRefs.current.filter(Boolean);
|
||||||
const heroMeta = heroMetaRefs.current.filter(Boolean);
|
const heroProduct = heroMetaRefs.current[0];
|
||||||
|
const heroMeta = heroMetaRefs.current.slice(1).filter(Boolean);
|
||||||
|
|
||||||
if (!overlay || !overlayText || !heroImageWrap || headlineLines.length === 0) {
|
if (
|
||||||
|
!overlay ||
|
||||||
|
!overlayText ||
|
||||||
|
!heroImageWrap ||
|
||||||
|
!heroWordmark ||
|
||||||
|
!heroProduct ||
|
||||||
|
headlineLines.length === 0
|
||||||
|
) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ctx = gsap.context(() => {
|
const ctx = gsap.context(() => {
|
||||||
gsap.set(heroImageWrap, {
|
|
||||||
scale: 1.22,
|
|
||||||
transformOrigin: "center center",
|
|
||||||
});
|
|
||||||
|
|
||||||
gsap.set(headlineLines, {
|
gsap.set(headlineLines, {
|
||||||
yPercent: 115,
|
yPercent: 115,
|
||||||
rotate: 2.2,
|
rotate: 2.2,
|
||||||
@@ -86,13 +101,69 @@ function LandingPage() {
|
|||||||
force3D: true,
|
force3D: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gsap.set(heroWordmark, {
|
||||||
|
yPercent: 118,
|
||||||
|
autoAlpha: 0,
|
||||||
|
force3D: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
gsap.set(heroProduct, {
|
||||||
|
scale: 0.82,
|
||||||
|
y: 54,
|
||||||
|
autoAlpha: 0,
|
||||||
|
transformOrigin: "50% 50%",
|
||||||
|
force3D: true,
|
||||||
|
});
|
||||||
|
|
||||||
gsap.set(heroMeta, {
|
gsap.set(heroMeta, {
|
||||||
y: 36,
|
y: 30,
|
||||||
autoAlpha: 0,
|
autoAlpha: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!shouldPlayIntro) {
|
const revealHero = () =>
|
||||||
gsap.set(heroImageWrap, { scale: 1 });
|
gsap
|
||||||
|
.timeline({ defaults: { ease: "power4.out" } })
|
||||||
|
.to(heroWordmark, {
|
||||||
|
yPercent: 0,
|
||||||
|
autoAlpha: 1,
|
||||||
|
duration: 1.18,
|
||||||
|
ease: "expo.out",
|
||||||
|
})
|
||||||
|
.to(
|
||||||
|
heroProduct,
|
||||||
|
{
|
||||||
|
scale: 1,
|
||||||
|
y: 0,
|
||||||
|
autoAlpha: 1,
|
||||||
|
duration: 1.42,
|
||||||
|
ease: "expo.out",
|
||||||
|
},
|
||||||
|
"<0.16"
|
||||||
|
)
|
||||||
|
.to(
|
||||||
|
headlineLines,
|
||||||
|
{
|
||||||
|
yPercent: 0,
|
||||||
|
rotate: 0,
|
||||||
|
duration: 1.08,
|
||||||
|
stagger: 0.08,
|
||||||
|
},
|
||||||
|
"<0.34"
|
||||||
|
)
|
||||||
|
.to(
|
||||||
|
heroMeta,
|
||||||
|
{
|
||||||
|
y: 0,
|
||||||
|
autoAlpha: 1,
|
||||||
|
duration: 0.86,
|
||||||
|
stagger: 0.1,
|
||||||
|
},
|
||||||
|
"<0.18"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
||||||
|
gsap.set(heroWordmark, { yPercent: 0, autoAlpha: 1 });
|
||||||
|
gsap.set(heroProduct, { scale: 1, y: 0, autoAlpha: 1 });
|
||||||
gsap.set(headlineLines, { yPercent: 0, rotate: 0 });
|
gsap.set(headlineLines, { yPercent: 0, rotate: 0 });
|
||||||
gsap.set(heroMeta, { y: 0, autoAlpha: 1 });
|
gsap.set(heroMeta, { y: 0, autoAlpha: 1 });
|
||||||
gsap.set(overlay, {
|
gsap.set(overlay, {
|
||||||
@@ -103,6 +174,16 @@ function LandingPage() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!shouldPlayIntro) {
|
||||||
|
gsap.set(overlay, {
|
||||||
|
yPercent: -100,
|
||||||
|
autoAlpha: 0,
|
||||||
|
display: "none",
|
||||||
|
});
|
||||||
|
revealHero();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
gsap.set(overlay, { yPercent: 0, autoAlpha: 1, display: "block" });
|
gsap.set(overlay, { yPercent: 0, autoAlpha: 1, display: "block" });
|
||||||
gsap.set(overlayText, { xPercent: 28, yPercent: 140, autoAlpha: 0 });
|
gsap.set(overlayText, { xPercent: 28, yPercent: 140, autoAlpha: 0 });
|
||||||
|
|
||||||
@@ -131,37 +212,7 @@ function LandingPage() {
|
|||||||
},
|
},
|
||||||
">"
|
">"
|
||||||
)
|
)
|
||||||
.to(
|
.add(revealHero(), "<0.1")
|
||||||
heroImageWrap,
|
|
||||||
{
|
|
||||||
scale: 1,
|
|
||||||
duration: 1.6,
|
|
||||||
ease: "power2.out",
|
|
||||||
},
|
|
||||||
"<0.03"
|
|
||||||
)
|
|
||||||
.to(
|
|
||||||
headlineLines,
|
|
||||||
{
|
|
||||||
yPercent: 0,
|
|
||||||
rotate: 0,
|
|
||||||
duration: 1.18,
|
|
||||||
stagger: 0.1,
|
|
||||||
ease: "power4.out",
|
|
||||||
},
|
|
||||||
"<0.27"
|
|
||||||
)
|
|
||||||
.to(
|
|
||||||
heroMeta,
|
|
||||||
{
|
|
||||||
y: 0,
|
|
||||||
autoAlpha: 1,
|
|
||||||
duration: 1.02,
|
|
||||||
stagger: 0.12,
|
|
||||||
ease: "power4.out",
|
|
||||||
},
|
|
||||||
"<0.16"
|
|
||||||
)
|
|
||||||
.set(overlay, { display: "none" });
|
.set(overlay, { display: "none" });
|
||||||
}, pageRef);
|
}, pageRef);
|
||||||
|
|
||||||
@@ -383,8 +434,10 @@ function LandingPage() {
|
|||||||
heroImageRef={heroImageRef}
|
heroImageRef={heroImageRef}
|
||||||
setHeadlinePrimaryRef={setHeadlinePrimaryRef}
|
setHeadlinePrimaryRef={setHeadlinePrimaryRef}
|
||||||
setHeadlineSecondaryRef={setHeadlineSecondaryRef}
|
setHeadlineSecondaryRef={setHeadlineSecondaryRef}
|
||||||
|
setWordmarkRef={setWordmarkRef}
|
||||||
setDescriptionRef={setDescriptionRef}
|
setDescriptionRef={setDescriptionRef}
|
||||||
setActionsRef={setActionsRef}
|
setActionsRef={setActionsRef}
|
||||||
|
setScrollRef={setScrollRef}
|
||||||
overlayRef={overlayRef}
|
overlayRef={overlayRef}
|
||||||
overlayTextRef={overlayTextRef}
|
overlayTextRef={overlayTextRef}
|
||||||
/>
|
/>
|
||||||
@@ -405,6 +458,7 @@ function LandingPage() {
|
|||||||
to={`/duft/${item.slug}`}
|
to={`/duft/${item.slug}`}
|
||||||
className="product-card"
|
className="product-card"
|
||||||
key={item.id}
|
key={item.id}
|
||||||
|
onClick={(event) => startProductTransition(event, item)}
|
||||||
ref={(element) => {
|
ref={(element) => {
|
||||||
cardRefs.current[index] = element;
|
cardRefs.current[index] = element;
|
||||||
}}
|
}}
|
||||||
@@ -439,6 +493,7 @@ function LandingPage() {
|
|||||||
src={item.image}
|
src={item.image}
|
||||||
alt={item.name}
|
alt={item.name}
|
||||||
className="product-image"
|
className="product-image"
|
||||||
|
data-product-transition-source
|
||||||
loading={index < 3 ? "eager" : "lazy"}
|
loading={index < 3 ? "eager" : "lazy"}
|
||||||
decoding="async"
|
decoding="async"
|
||||||
/>
|
/>
|
||||||
@@ -446,7 +501,7 @@ function LandingPage() {
|
|||||||
|
|
||||||
<div className="product-bottom">
|
<div className="product-bottom">
|
||||||
<p>{item.text}</p>
|
<p>{item.text}</p>
|
||||||
<span className="arrow">→</span>
|
<span className="arrow" aria-hidden="true" />
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,193 +1,90 @@
|
|||||||
.small-page {
|
.small-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: 26px 38px 38px;
|
padding: 0 0 var(--section-y-sm);
|
||||||
background: var(--theme-bg);
|
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
}
|
|
||||||
|
|
||||||
.small-shell {
|
|
||||||
background: var(--theme-surface);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-hero {
|
|
||||||
max-width: 780px;
|
|
||||||
padding-bottom: 34px;
|
|
||||||
border-bottom: 1px solid var(--theme-border);
|
|
||||||
margin-bottom: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-kicker {
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.22em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-hero h1,
|
|
||||||
.small-panel h2 {
|
|
||||||
margin: 0 0 14px;
|
|
||||||
letter-spacing: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-hero h1 {
|
|
||||||
font-size: clamp(42px, 8vw, 92px);
|
|
||||||
line-height: 0.92;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-hero p,
|
|
||||||
.small-panel p,
|
|
||||||
.release-card p {
|
|
||||||
margin: 0;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
line-height: 1.55;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-panel,
|
|
||||||
.release-card,
|
|
||||||
.small-error {
|
|
||||||
background: var(--theme-surface-soft);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 22px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-panel button,
|
|
||||||
.release-card button {
|
|
||||||
min-height: 44px;
|
|
||||||
margin-top: 18px;
|
|
||||||
border: 1px solid #1f1f1f;
|
|
||||||
border-radius: 0;
|
|
||||||
background: #1f1f1f;
|
|
||||||
color: #fff;
|
|
||||||
padding: 0 18px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-requirements {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
||||||
gap: 12px;
|
|
||||||
margin-top: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-requirement {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: 12px;
|
|
||||||
padding: 14px;
|
|
||||||
background: var(--theme-surface-soft);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-requirement span,
|
|
||||||
.release-card span {
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.18em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-requirement strong.met {
|
|
||||||
color: #ff6a00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.release-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
||||||
gap: 16px;
|
|
||||||
margin-top: 22px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.release-card h3 {
|
|
||||||
margin: 10px 0 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-error {
|
|
||||||
margin: 16px 0 0;
|
|
||||||
border-color: #ff6a00;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
|
||||||
.small-page {
|
|
||||||
padding: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-shell {
|
|
||||||
padding: 24px 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-requirements,
|
|
||||||
.release-grid {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Design System Refinement Start --- */
|
|
||||||
|
|
||||||
.small-page {
|
|
||||||
padding: clamp(1rem, 3vw, 2.4rem) var(--page-x) clamp(2rem, 5vw, 4rem);
|
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 84% 7%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
radial-gradient(circle at 84% 8%, rgba(var(--theme-accent-rgb) / 0.13), transparent 28rem),
|
||||||
var(--theme-bg);
|
linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
|
||||||
}
|
|
||||||
|
|
||||||
.small-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: clamp(1.25rem, 3vw, 2.8rem);
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
box-shadow: var(--theme-shadow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-hero {
|
.small-hero {
|
||||||
max-width: min(100%, 58rem);
|
max-width: 64rem;
|
||||||
padding-bottom: var(--section-y-xs);
|
padding: clamp(2rem, 5vw, 5rem) 0 var(--section-y-sm);
|
||||||
margin-bottom: var(--gap-lg);
|
border-bottom: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-kicker,
|
.small-kicker,
|
||||||
.small-requirement span,
|
.small-requirement span,
|
||||||
.release-card span {
|
.release-card span {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-xs);
|
font-size: var(--text-xs);
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-hero h1,
|
.small-hero h1,
|
||||||
.small-panel h2 {
|
.small-panel h2 {
|
||||||
|
margin: 0 0 clamp(0.85rem, 2vw, 1.2rem);
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-hero h1 {
|
.small-hero h1 {
|
||||||
font-size: clamp(3rem, 9vw, 9rem);
|
font-size: clamp(3rem, 8.6vw, 9rem);
|
||||||
line-height: 0.88;
|
line-height: 0.88;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.small-panel h2 {
|
||||||
|
font-size: clamp(2.2rem, 5vw, 5.4rem);
|
||||||
|
line-height: 0.94;
|
||||||
|
}
|
||||||
|
|
||||||
.small-hero p,
|
.small-hero p,
|
||||||
.small-panel p,
|
.small-panel p,
|
||||||
.release-card p {
|
.release-card p {
|
||||||
max-width: var(--text-measure);
|
max-width: var(--text-measure);
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.65;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-panel,
|
.small-panel,
|
||||||
.release-card,
|
.release-card,
|
||||||
.small-error,
|
.small-error {
|
||||||
.small-requirement {
|
border: 1px solid var(--theme-border);
|
||||||
border-radius: var(--radius-lg);
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
|
||||||
|
var(--theme-surface-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-panel,
|
.small-panel {
|
||||||
.release-card {
|
max-width: 68rem;
|
||||||
padding: clamp(1.2rem, 3vw, 2rem);
|
margin-top: var(--section-y-sm);
|
||||||
|
padding: clamp(1.25rem, 3vw, 2.2rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-panel button,
|
.small-panel button,
|
||||||
.release-card button {
|
.release-card button {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
border-radius: 999px;
|
margin-top: 1.2rem;
|
||||||
|
padding: 0 1.1rem;
|
||||||
|
border: 1px solid #111;
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
background: #111;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
transition:
|
transition:
|
||||||
transform var(--duration-med) var(--ease-out),
|
transform var(--duration-med) var(--ease-out),
|
||||||
box-shadow var(--duration-med) var(--ease-out),
|
box-shadow var(--duration-med) var(--ease-out),
|
||||||
@@ -203,21 +100,60 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.small-requirements {
|
.small-requirements {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
|
margin-top: clamp(1.4rem, 3vw, 2.4rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-requirement {
|
.small-requirement {
|
||||||
min-height: 4.5rem;
|
min-height: 7rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: var(--gap-xs);
|
||||||
|
padding: clamp(1rem, 2vw, 1.4rem);
|
||||||
|
border: 1px solid var(--theme-border);
|
||||||
|
background: var(--theme-paper);
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-requirement span {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-requirement strong {
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-requirement strong.met {
|
||||||
|
color: var(--theme-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-error {
|
||||||
|
max-width: 68rem;
|
||||||
|
margin: var(--gap-sm) 0 0;
|
||||||
|
padding: clamp(1rem, 2vw, 1.4rem);
|
||||||
|
border-color: rgba(var(--theme-accent-rgb) / 0.45);
|
||||||
|
color: var(--theme-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.release-grid {
|
.release-grid {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
margin-top: var(--gap-lg);
|
margin-top: var(--section-y-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.release-card {
|
.release-card {
|
||||||
|
min-height: 280px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: var(--gap-sm);
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
transition:
|
transition:
|
||||||
transform var(--duration-med) var(--ease-out),
|
transform var(--duration-med) var(--ease-out),
|
||||||
border-color var(--duration-med) var(--ease-out),
|
border-color var(--duration-med) var(--ease-out),
|
||||||
@@ -230,23 +166,42 @@
|
|||||||
box-shadow: var(--theme-shadow-soft);
|
box-shadow: var(--theme-shadow-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.release-card span {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.release-card h3 {
|
.release-card h3 {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: var(--text-xl);
|
font-size: var(--text-xl);
|
||||||
line-height: 1.08;
|
line-height: 1.08;
|
||||||
|
font-weight: 400;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
@media (max-width: 1180px) {
|
||||||
.small-page {
|
.small-requirements,
|
||||||
padding-inline: var(--page-x);
|
.release-grid {
|
||||||
}
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
|
||||||
.small-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
padding-inline: clamp(0.9rem, 4vw, 1.1rem);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Design System Refinement End --- */
|
@media (max-width: 760px) {
|
||||||
|
.small-hero {
|
||||||
|
padding-top: clamp(1.4rem, 5vw, 2rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-hero h1 {
|
||||||
|
font-size: clamp(2.55rem, 13vw, 4.4rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-requirements,
|
||||||
|
.release-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-panel button,
|
||||||
|
.release-card button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -60,9 +60,9 @@ function SmallBatchPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="small-page">
|
<div className="small-page">
|
||||||
<SharedNavbar variant="light" />
|
<SharedNavbar variant="hero" />
|
||||||
|
|
||||||
<main className="small-shell">
|
<main className="shell">
|
||||||
<section className="small-hero" data-reveal-group>
|
<section className="small-hero" data-reveal-group>
|
||||||
<span className="small-kicker" data-reveal="fade">
|
<span className="small-kicker" data-reveal="fade">
|
||||||
SMALL BATCH / ARCHIVE / PROTOTYPE
|
SMALL BATCH / ARCHIVE / PROTOTYPE
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
.support-page {
|
.support-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
padding: 0 0 var(--section-y-sm);
|
||||||
color: var(--theme-text);
|
color: var(--theme-text);
|
||||||
padding: 26px 38px 38px;
|
|
||||||
background:
|
background:
|
||||||
linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1)),
|
radial-gradient(circle at 86% 8%, rgba(var(--theme-accent-rgb) / 0.13), transparent 28rem),
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
|
linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
|
||||||
}
|
|
||||||
|
|
||||||
.support-shell {
|
|
||||||
background: var(--theme-surface);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
padding: 38px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-kicker,
|
.support-kicker,
|
||||||
@@ -18,435 +12,119 @@
|
|||||||
.support-panel-label,
|
.support-panel-label,
|
||||||
.support-panel-meta span {
|
.support-panel-meta span {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 10px;
|
|
||||||
letter-spacing: 0.22em;
|
|
||||||
color: var(--theme-text-muted);
|
color: var(--theme-text-muted);
|
||||||
|
font-size: var(--text-xs);
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-hero {
|
.support-hero {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
|
grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.72fr);
|
||||||
gap: 28px;
|
gap: var(--gap-lg);
|
||||||
align-items: end;
|
align-items: end;
|
||||||
padding-bottom: 36px;
|
padding: clamp(2rem, 5vw, 5rem) 0 var(--section-y-sm);
|
||||||
border-bottom: 1px solid var(--theme-border);
|
border-bottom: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-hero-copy h1 {
|
.support-hero-copy {
|
||||||
margin: 14px 0 18px;
|
min-width: 0;
|
||||||
font-size: 68px;
|
|
||||||
line-height: 0.92;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-intro {
|
|
||||||
max-width: 720px;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 18px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-hero-panel {
|
|
||||||
padding: 24px;
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(255, 106, 0, 0.08),
|
|
||||||
rgba(255, 106, 0, 0.03)
|
|
||||||
);
|
|
||||||
border: 1px solid rgba(255, 106, 0, 0.18);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-hero-panel p {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.6;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-panel-meta {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
gap: 16px;
|
|
||||||
margin-top: 24px;
|
|
||||||
padding-top: 20px;
|
|
||||||
border-top: 1px solid rgba(255, 106, 0, 0.14);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-panel-meta p {
|
|
||||||
margin: 8px 0 0;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.55;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-quick-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
gap: 18px;
|
|
||||||
margin-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-quick-card {
|
|
||||||
padding: 24px;
|
|
||||||
background: var(--theme-bg);
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
min-height: 240px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-quick-card h3 {
|
|
||||||
margin: 14px 0 12px;
|
|
||||||
font-size: 24px;
|
|
||||||
line-height: 1.08;
|
|
||||||
font-weight: 400;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-quick-card p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-section {
|
|
||||||
padding-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-section--split {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
|
|
||||||
gap: 28px;
|
|
||||||
align-items: start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-section-heading h2,
|
|
||||||
.support-bottom-copy h2 {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
font-size: 42px;
|
|
||||||
line-height: 0.98;
|
|
||||||
font-weight: 300;
|
|
||||||
letter-spacing: 0;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-section-copy {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-section-copy p,
|
|
||||||
.support-bottom-copy p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-info-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
|
|
||||||
gap: 18px;
|
|
||||||
margin-top: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-info-box {
|
|
||||||
padding: 24px;
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
background: var(--theme-surface-soft);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-info-box h3 {
|
|
||||||
margin: 14px 0 12px;
|
|
||||||
font-size: 28px;
|
|
||||||
line-height: 1.02;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-info-box p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-info-box--dark {
|
|
||||||
background: #1f1f1f;
|
|
||||||
border-color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-info-box--dark .support-label,
|
|
||||||
.support-info-box--dark p {
|
|
||||||
color: rgba(255, 255, 255, 0.78);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-list {
|
|
||||||
margin: 14px 0 0;
|
|
||||||
padding-left: 18px;
|
|
||||||
display: grid;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-list li {
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.6;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-mail-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
margin-top: 18px;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 12px 18px;
|
|
||||||
border-radius: 999px;
|
|
||||||
background: #ff6a00;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 14px;
|
|
||||||
transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-mail-btn:hover {
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-faq-section {
|
|
||||||
margin-top: 38px;
|
|
||||||
padding-top: 38px;
|
|
||||||
border-top: 1px solid var(--theme-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-faq-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 18px;
|
|
||||||
margin-top: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-faq-card {
|
|
||||||
padding: 24px;
|
|
||||||
border: 1px solid var(--theme-border);
|
|
||||||
background: var(--theme-bg);
|
|
||||||
min-height: 210px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-faq-card h3 {
|
|
||||||
margin: 0 0 12px;
|
|
||||||
font-size: 22px;
|
|
||||||
line-height: 1.08;
|
|
||||||
font-weight: 400;
|
|
||||||
color: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-faq-card p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--theme-text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-bottom-cta {
|
|
||||||
margin-top: 38px;
|
|
||||||
padding: 38px;
|
|
||||||
background: #ff6a00;
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1.2fr) auto;
|
|
||||||
gap: 24px;
|
|
||||||
align-items: end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-bottom-copy .support-label,
|
|
||||||
.support-bottom-copy h2,
|
|
||||||
.support-bottom-copy p {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-bottom-copy .support-label {
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-bottom-copy p {
|
|
||||||
margin-top: 16px;
|
|
||||||
max-width: 700px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-bottom-actions {
|
|
||||||
display: flex;
|
|
||||||
gap: 12px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 12px 18px;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 999px;
|
|
||||||
transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-btn:hover {
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-btn--primary {
|
|
||||||
background: var(--theme-paper);
|
|
||||||
color: #ff6a00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-btn--secondary {
|
|
||||||
background: rgba(255, 255, 255, 0.14);
|
|
||||||
color: #fff;
|
|
||||||
backdrop-filter: blur(8px);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
|
||||||
.support-hero,
|
|
||||||
.support-section--split,
|
|
||||||
.support-info-grid,
|
|
||||||
.support-bottom-cta {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-hero-copy h1 {
|
|
||||||
font-size: 52px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-quick-grid,
|
|
||||||
.support-faq-grid {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
|
||||||
.support-page {
|
|
||||||
padding: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-shell {
|
|
||||||
padding: 24px 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-hero-copy h1 {
|
|
||||||
font-size: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-section-heading h2,
|
|
||||||
.support-bottom-copy h2 {
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-intro,
|
|
||||||
.support-section-copy p,
|
|
||||||
.support-bottom-copy p,
|
|
||||||
.support-quick-card p,
|
|
||||||
.support-faq-card p {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-bottom-cta {
|
|
||||||
padding: 26px 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Design System Refinement Start --- */
|
|
||||||
|
|
||||||
.support-page {
|
|
||||||
padding: clamp(1rem, 3vw, 2.4rem) var(--page-x) clamp(2rem, 5vw, 4rem);
|
|
||||||
background:
|
|
||||||
radial-gradient(circle at 88% 9%, rgba(var(--theme-accent-rgb) / 0.12), transparent 28rem),
|
|
||||||
linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
|
|
||||||
var(--theme-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: clamp(1.25rem, 3vw, 2.8rem);
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
box-shadow: var(--theme-shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-kicker,
|
|
||||||
.support-label,
|
|
||||||
.support-panel-label,
|
|
||||||
.support-panel-meta span {
|
|
||||||
font-size: var(--text-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.support-hero {
|
|
||||||
grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.72fr);
|
|
||||||
gap: var(--gap-lg);
|
|
||||||
padding-bottom: var(--section-y-xs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-hero-copy h1 {
|
.support-hero-copy h1 {
|
||||||
|
max-width: 10.8ch;
|
||||||
margin: clamp(0.85rem, 2vw, 1.2rem) 0 clamp(1rem, 2vw, 1.35rem);
|
margin: clamp(0.85rem, 2vw, 1.2rem) 0 clamp(1rem, 2vw, 1.35rem);
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: clamp(3rem, 7.4vw, 8.8rem);
|
font-size: clamp(3rem, 7.4vw, 8.8rem);
|
||||||
line-height: 0.9;
|
line-height: 0.9;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-intro {
|
.support-intro {
|
||||||
max-width: var(--text-measure);
|
max-width: var(--text-measure);
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-lg);
|
font-size: var(--text-lg);
|
||||||
}
|
line-height: 1.65;
|
||||||
|
|
||||||
.support-hero-panel,
|
|
||||||
.support-quick-card,
|
|
||||||
.support-info-box,
|
|
||||||
.support-faq-card,
|
|
||||||
.support-bottom-cta {
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-hero-panel {
|
.support-hero-panel {
|
||||||
padding: clamp(1.25rem, 3vw, 2rem);
|
padding: clamp(1.25rem, 3vw, 2rem);
|
||||||
|
border: 1px solid rgba(var(--theme-accent-rgb) / 0.2);
|
||||||
|
background:
|
||||||
|
linear-gradient(135deg, rgba(var(--theme-accent-rgb) / 0.1), transparent 62%),
|
||||||
|
var(--theme-surface-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-hero-panel p {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.62;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-panel-meta {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--gap-sm);
|
||||||
|
margin-top: clamp(1.2rem, 2.6vw, 2rem);
|
||||||
|
padding-top: var(--gap-sm);
|
||||||
|
border-top: 1px solid rgba(var(--theme-accent-rgb) / 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-panel-meta p {
|
||||||
|
margin: 0.45rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
line-height: 1.55;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-quick-grid,
|
.support-quick-grid,
|
||||||
.support-info-grid,
|
.support-info-grid,
|
||||||
.support-faq-grid {
|
.support-faq-grid {
|
||||||
|
display: grid;
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
margin-top: var(--section-y-xs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-quick-grid {
|
.support-quick-grid {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
margin-top: var(--section-y-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-faq-grid {
|
.support-section,
|
||||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
|
.support-faq-section {
|
||||||
}
|
padding-top: var(--section-y-sm);
|
||||||
|
|
||||||
.support-section {
|
|
||||||
padding-top: var(--section-y-xs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-section--split,
|
.support-section--split,
|
||||||
.support-info-grid,
|
.support-info-grid {
|
||||||
.support-bottom-cta {
|
display: grid;
|
||||||
|
grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
|
||||||
gap: var(--gap-lg);
|
gap: var(--gap-lg);
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-info-grid {
|
||||||
|
margin-top: var(--section-y-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-section-heading h2,
|
.support-section-heading h2,
|
||||||
.support-bottom-copy h2 {
|
.support-bottom-copy h2 {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: clamp(2.15rem, 5.2vw, 6rem);
|
font-size: clamp(2.15rem, 5.2vw, 6rem);
|
||||||
line-height: 0.94;
|
line-height: 0.94;
|
||||||
|
font-weight: 300;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-section-copy {
|
.support-section-copy {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
gap: var(--gap-sm);
|
gap: var(--gap-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -456,12 +134,21 @@
|
|||||||
.support-faq-card p,
|
.support-faq-card p,
|
||||||
.support-info-box p,
|
.support-info-box p,
|
||||||
.support-list li {
|
.support-list li {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--theme-text-muted);
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-base);
|
||||||
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-quick-card,
|
.support-quick-card,
|
||||||
.support-faq-card,
|
.support-faq-card,
|
||||||
.support-info-box {
|
.support-info-box {
|
||||||
|
min-height: 100%;
|
||||||
|
padding: clamp(1.1rem, 2.4vw, 1.8rem);
|
||||||
|
border: 1px solid var(--theme-border);
|
||||||
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
|
||||||
|
var(--theme-surface-soft);
|
||||||
transition:
|
transition:
|
||||||
transform var(--duration-med) var(--ease-out),
|
transform var(--duration-med) var(--ease-out),
|
||||||
border-color var(--duration-med) var(--ease-out),
|
border-color var(--duration-med) var(--ease-out),
|
||||||
@@ -479,72 +166,170 @@
|
|||||||
.support-quick-card h3,
|
.support-quick-card h3,
|
||||||
.support-faq-card h3,
|
.support-faq-card h3,
|
||||||
.support-info-box h3 {
|
.support-info-box h3 {
|
||||||
|
margin: 0.9rem 0 0.75rem;
|
||||||
|
color: var(--theme-text);
|
||||||
font-size: var(--text-xl);
|
font-size: var(--text-xl);
|
||||||
|
line-height: 1.08;
|
||||||
|
font-weight: 400;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-info-box--dark {
|
.support-info-box--dark {
|
||||||
|
border-color: rgba(255, 255, 255, 0.16);
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb) / 0.18), transparent 18rem),
|
radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb) / 0.18), transparent 18rem),
|
||||||
#171717;
|
#171717;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.support-info-box--dark .support-label,
|
||||||
|
.support-info-box--dark p {
|
||||||
|
color: rgba(255, 255, 255, 0.78);
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-info-box--dark h3 {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-list {
|
||||||
|
display: grid;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin: 1rem 0 0;
|
||||||
|
padding-left: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-mail-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 48px;
|
||||||
|
margin-top: 1.15rem;
|
||||||
|
padding: 0 1.1rem;
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
background: var(--theme-accent);
|
||||||
|
color: #fff;
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
text-decoration: none;
|
||||||
|
transition:
|
||||||
|
transform var(--duration-med) var(--ease-out),
|
||||||
|
box-shadow var(--duration-med) var(--ease-out);
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-mail-btn:hover,
|
||||||
|
.support-mail-btn:focus-visible {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: var(--theme-shadow-soft);
|
||||||
|
}
|
||||||
|
|
||||||
.support-faq-section {
|
.support-faq-section {
|
||||||
margin-top: var(--section-y-xs);
|
margin-top: var(--section-y-sm);
|
||||||
padding-top: var(--section-y-xs);
|
border-top: 1px solid var(--theme-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-faq-grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
margin-top: clamp(1.6rem, 4vw, 3rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-bottom-cta {
|
.support-bottom-cta {
|
||||||
margin-top: var(--section-y-xs);
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
|
gap: var(--gap-lg);
|
||||||
|
align-items: end;
|
||||||
|
margin-top: var(--section-y-sm);
|
||||||
padding: clamp(1.5rem, 4vw, 3.5rem);
|
padding: clamp(1.5rem, 4vw, 3.5rem);
|
||||||
|
overflow: hidden;
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.22), transparent 20rem),
|
radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.22), transparent 20rem),
|
||||||
var(--theme-accent);
|
var(--theme-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-btn,
|
.support-bottom-copy .support-label,
|
||||||
.support-mail-btn {
|
.support-bottom-copy h2,
|
||||||
|
.support-bottom-copy p {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-bottom-copy p {
|
||||||
|
max-width: 48rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-bottom-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--gap-xs);
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
|
padding: 0 1.1rem;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
color: inherit;
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
text-decoration: none;
|
||||||
|
transition:
|
||||||
|
transform var(--duration-med) var(--ease-out),
|
||||||
|
box-shadow var(--duration-med) var(--ease-out),
|
||||||
|
background-color var(--duration-med) var(--ease-out);
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-btn:hover,
|
.support-btn:hover,
|
||||||
.support-btn:focus-visible,
|
.support-btn:focus-visible {
|
||||||
.support-mail-btn:hover,
|
transform: translateY(-2px);
|
||||||
.support-mail-btn:focus-visible {
|
|
||||||
box-shadow: var(--theme-shadow-soft);
|
box-shadow: var(--theme-shadow-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
.support-btn--primary {
|
||||||
|
background: #fff;
|
||||||
|
color: var(--theme-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-btn--secondary {
|
||||||
|
border-color: rgba(255, 255, 255, 0.22);
|
||||||
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
color: #fff;
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1180px) {
|
||||||
.support-hero,
|
.support-hero,
|
||||||
.support-section--split,
|
.support-section--split,
|
||||||
.support-info-grid,
|
.support-info-grid,
|
||||||
.support-bottom-cta {
|
.support-bottom-cta {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.support-quick-grid,
|
||||||
|
.support-faq-grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 760px) {
|
||||||
.support-page {
|
.support-hero {
|
||||||
padding-inline: var(--page-x);
|
padding-top: clamp(1.4rem, 5vw, 2rem);
|
||||||
}
|
|
||||||
|
|
||||||
.support-shell {
|
|
||||||
width: var(--container-wide);
|
|
||||||
padding-inline: clamp(0.9rem, 4vw, 1.1rem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-hero-copy h1 {
|
.support-hero-copy h1 {
|
||||||
font-size: clamp(2.55rem, 13vw, 4.4rem);
|
font-size: clamp(2.55rem, 13vw, 4.4rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.support-quick-grid,
|
||||||
|
.support-faq-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
.support-bottom-actions {
|
.support-bottom-actions {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
justify-content: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-btn {
|
.support-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Design System Refinement End --- */
|
|
||||||
|
|
||||||
@@ -5,9 +5,9 @@ import "./SupportPage.css";
|
|||||||
function SupportPage() {
|
function SupportPage() {
|
||||||
return (
|
return (
|
||||||
<div className="support-page">
|
<div className="support-page">
|
||||||
<SharedNavbar variant="light" />
|
<SharedNavbar variant="hero" />
|
||||||
|
|
||||||
<main className="support-shell">
|
<main className="shell">
|
||||||
<section className="support-hero" data-reveal-group>
|
<section className="support-hero" data-reveal-group>
|
||||||
<div className="support-hero-copy">
|
<div className="support-hero-copy">
|
||||||
<span className="support-kicker" data-reveal="fade">
|
<span className="support-kicker" data-reveal="fade">
|
||||||
|
|||||||
@@ -47,35 +47,24 @@
|
|||||||
transform var(--duration-med) var(--ease-out);
|
transform var(--duration-med) var(--ease-out);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link::after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
right: 0.8rem;
|
|
||||||
bottom: 0.45rem;
|
|
||||||
left: 0.8rem;
|
|
||||||
height: 1px;
|
|
||||||
background: currentColor;
|
|
||||||
opacity: 0;
|
|
||||||
transform: scaleX(0.35);
|
|
||||||
transform-origin: center;
|
|
||||||
transition:
|
|
||||||
opacity var(--duration-med) var(--ease-out),
|
|
||||||
transform var(--duration-med) var(--ease-out);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-link:hover::after,
|
|
||||||
.nav-link.active::after {
|
|
||||||
opacity: 0.5;
|
|
||||||
transform: scaleX(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-link--brand {
|
.nav-link--brand {
|
||||||
padding-inline: clamp(0.75rem, 1.4vw, 1rem);
|
padding-inline: clamp(0.75rem, 1.4vw, 1rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link--brand::after,
|
.nav-link--back {
|
||||||
.nav-theme-switch::after {
|
gap: 0.5rem;
|
||||||
display: none;
|
min-width: 0;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-back-icon {
|
||||||
|
display: inline-block;
|
||||||
|
width: 0.95rem;
|
||||||
|
height: 0.95rem;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
background: currentColor;
|
||||||
|
-webkit-mask: url("/icon-arrow-left.svg") center / contain no-repeat;
|
||||||
|
mask: url("/icon-arrow-left.svg") center / contain no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-brand-logo {
|
.nav-brand-logo {
|
||||||
@@ -229,6 +218,11 @@
|
|||||||
.nav-theme-switch {
|
.nav-theme-switch {
|
||||||
padding-inline: 0.45rem;
|
padding-inline: 0.45rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar--hero .nav-pill {
|
||||||
|
width: fit-content;
|
||||||
|
max-width: calc(100vw - 1.5rem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 390px) {
|
@media (max-width: 390px) {
|
||||||
|
|||||||
@@ -5,12 +5,30 @@
|
|||||||
margin-bottom: -0.08em;
|
margin-bottom: -0.08em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reveal-word-line {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal-word-mask {
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
|
vertical-align: top;
|
||||||
|
padding-bottom: 0.08em;
|
||||||
|
margin-bottom: -0.08em;
|
||||||
|
}
|
||||||
|
|
||||||
.reveal-line {
|
.reveal-line {
|
||||||
display: block;
|
display: block;
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reveal-word {
|
||||||
|
display: inline-block;
|
||||||
|
will-change: transform;
|
||||||
|
backface-visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
[data-reveal="fade"] {
|
[data-reveal="fade"] {
|
||||||
will-change: transform, opacity;
|
will-change: transform, opacity;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { createContext, useContext } from "react";
|
||||||
|
|
||||||
|
export const ProductTransitionContext = createContext({
|
||||||
|
activeSlug: null,
|
||||||
|
phase: "idle",
|
||||||
|
startProductTransition: () => false,
|
||||||
|
});
|
||||||
|
|
||||||
|
export const useProductTransition = () => useContext(ProductTransitionContext);
|
||||||