add global text reveal hook and scroll animations
This commit is contained in:
1 parent
9de9ce7f43
commit
d0c7916386
13 files changed
+431
-262
No files matched your search
@@ -247,11 +247,13 @@ function ProductDetailContent({ perfumeSlug }) {
|
||||
</div>
|
||||
|
||||
<div className="detail-info">
|
||||
<div className="detail-heading">
|
||||
<div className="detail-heading" data-reveal-group>
|
||||
<div className="detail-heading-copy">
|
||||
<span className="detail-kicker">Edition 04</span>
|
||||
<h1>{perfume.name}</h1>
|
||||
<p>{perfume.shortText}</p>
|
||||
<span className="detail-kicker" data-reveal="fade">
|
||||
Edition 04
|
||||
</span>
|
||||
<h1 data-reveal="fade">{perfume.name}</h1>
|
||||
<p data-reveal="fade">{perfume.shortText}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -282,8 +284,8 @@ function ProductDetailContent({ perfumeSlug }) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="discovery-note">
|
||||
<div className="discovery-note-text">
|
||||
<div className="discovery-note" data-reveal-group data-reveal-start="top 88%">
|
||||
<div className="discovery-note-text" data-reveal="fade">
|
||||
<strong>Discovery Set wird einmalig angerechnet</strong>
|
||||
<p>
|
||||
Nur das erste Discovery Set erzeugt CHF 48 Guthaben. Es wird
|
||||
@@ -297,7 +299,7 @@ function ProductDetailContent({ perfumeSlug }) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<Link to="/discovery-set" className="discovery-note-btn">
|
||||
<Link to="/discovery-set" className="discovery-note-btn" data-reveal="fade">
|
||||
Zum Set
|
||||
</Link>
|
||||
</div>
|
||||
@@ -468,15 +470,15 @@ function ProductDetailContent({ perfumeSlug }) {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="detail-bottom-cta">
|
||||
<h2>Lieber erst testen?</h2>
|
||||
<p>
|
||||
<section className="detail-bottom-cta" data-reveal-group>
|
||||
<h2 data-reveal="fade">Lieber erst testen?</h2>
|
||||
<p data-reveal="fade">
|
||||
Bestelle ein 2ml Sample für CHF 12 oder das komplette Discovery Set
|
||||
mit allen 6 Düften für CHF 48. Beide werden beim späteren Full-Size-Kauf
|
||||
vollständig angerechnet.
|
||||
</p>
|
||||
|
||||
<div className="detail-bottom-actions">
|
||||
<div className="detail-bottom-actions" data-reveal="fade">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() =>
|
||||
|
||||
@@ -6,12 +6,18 @@ function SharedNavbar({ variant = "light", active = "" }) {
|
||||
const { cart, openCart, openProfile, user } = useShop();
|
||||
const cartLabel =
|
||||
cart.total_quantity > 0 ? `Cart ${cart.total_quantity}` : "Cart";
|
||||
const logoSrc =
|
||||
variant === "hero" ? "/atmos-logo-light.svg" : "/atmos-logo-dark.svg";
|
||||
|
||||
return (
|
||||
<nav className={`navbar navbar--${variant}`} aria-label="Hauptnavigation">
|
||||
<div className="nav-pill">
|
||||
<Link to="/" className={`nav-link ${active === "atmos" ? "active" : ""}`}>
|
||||
atmos
|
||||
<Link
|
||||
to="/"
|
||||
className={`nav-link nav-link--brand ${active === "atmos" ? "active" : ""}`}
|
||||
aria-label="Atmos Startseite"
|
||||
>
|
||||
<img src={logoSrc} alt="" className="nav-brand-logo" />
|
||||
</Link>
|
||||
<Link
|
||||
to="/discovery-set"
|
||||
|
||||
@@ -4,6 +4,7 @@ import SharedNavbar from "../SharedNavbar";
|
||||
|
||||
function HeroSection({
|
||||
heroImageWrapRef,
|
||||
heroImageRef,
|
||||
setHeadlinePrimaryRef,
|
||||
setHeadlineSecondaryRef,
|
||||
setDescriptionRef,
|
||||
@@ -18,30 +19,25 @@ function HeroSection({
|
||||
src="/atmos-hero-image.png"
|
||||
alt="Atmos Hero"
|
||||
className="hero-media__image"
|
||||
ref={heroImageRef}
|
||||
loading="eager"
|
||||
fetchPriority="high"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Link to="/" className="hero-brand" aria-label="Atmos Startseite">
|
||||
<img
|
||||
src="/atmos-logo-light.svg"
|
||||
alt="atmos"
|
||||
className="hero-brand__logo"
|
||||
loading="eager"
|
||||
fetchPriority="high"
|
||||
/>
|
||||
</Link>
|
||||
|
||||
<SharedNavbar variant="hero" active="atmos" />
|
||||
|
||||
<div className="hero-content">
|
||||
<h1 className="hero-title">
|
||||
<span className="hero-title-line" ref={setHeadlinePrimaryRef}>
|
||||
{"D\u00DCFTE ALS"}
|
||||
<span className="hero-title-line">
|
||||
<span className="reveal-line" ref={setHeadlinePrimaryRef}>
|
||||
{"D\u00DCFTE ALS"}
|
||||
</span>
|
||||
</span>
|
||||
<span className="hero-title-line" ref={setHeadlineSecondaryRef}>
|
||||
AUSDRUCK
|
||||
<span className="hero-title-line">
|
||||
<span className="reveal-line" ref={setHeadlineSecondaryRef}>
|
||||
AUSDRUCK
|
||||
</span>
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
|
||||
Reference in new issue
Block a user