adding page visit animation and hero changes
This commit is contained in:
1 parent
b6e57ba551
commit
0b5d248c4e
7 files changed
+490
-109
No files matched your search
@@ -0,0 +1,87 @@
|
||||
import { Link } from "react-router";
|
||||
import IntroOverlay from "./IntroOverlay";
|
||||
|
||||
function HeroSection({
|
||||
heroImageWrapRef,
|
||||
setHeadlinePrimaryRef,
|
||||
setHeadlineSecondaryRef,
|
||||
setDescriptionRef,
|
||||
setActionsRef,
|
||||
overlayRef,
|
||||
overlayTextRef,
|
||||
}) {
|
||||
return (
|
||||
<header className="hero" id="home">
|
||||
<div className="hero-media" ref={heroImageWrapRef}>
|
||||
<img
|
||||
src="/atmos-hero-image.png"
|
||||
alt="Atmos Hero"
|
||||
className="hero-media__image"
|
||||
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>
|
||||
|
||||
<nav className="navbar navbar--hero" aria-label="Hauptnavigation">
|
||||
<div className="nav-pill">
|
||||
<a href="#home" className="nav-link active">
|
||||
atmos
|
||||
</a>
|
||||
<a href="#dufte" className="nav-link">
|
||||
{"D\u00FCfte"}
|
||||
</a>
|
||||
<Link to="/discovery-set" className="nav-link">
|
||||
Testen
|
||||
</Link>
|
||||
<a href="#cart" className="nav-link">
|
||||
Cart
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div className="hero-content">
|
||||
<h1 className="hero-title">
|
||||
<span className="hero-title-line" ref={setHeadlinePrimaryRef}>
|
||||
{"D\u00DCFTE ALS"}
|
||||
</span>
|
||||
<span className="hero-title-line" ref={setHeadlineSecondaryRef}>
|
||||
AUSDRUCK
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
<p className="hero-text" ref={setDescriptionRef}>
|
||||
{
|
||||
"Konzeptionelle D\u00FCfte zwischen Materialit\u00E4t, Raum und Charakter."
|
||||
}
|
||||
</p>
|
||||
|
||||
<div className="hero-actions" ref={setActionsRef}>
|
||||
<a href="#dufte" className="btn btn-primary">
|
||||
{"Aktuelle D\u00FCfte"}
|
||||
</a>
|
||||
<Link to="/discovery-set" className="btn btn-secondary">
|
||||
Discovery Set
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<IntroOverlay
|
||||
overlayRef={overlayRef}
|
||||
overlayTextRef={overlayTextRef}
|
||||
logoSrc="/atmos-logo-dark.svg"
|
||||
/>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
export default HeroSection;
|
||||
@@ -0,0 +1,15 @@
|
||||
function IntroOverlay({ overlayRef, overlayTextRef, logoSrc }) {
|
||||
return (
|
||||
<div className="intro-overlay" ref={overlayRef} aria-hidden="true">
|
||||
<div className="intro-overlay__inner">
|
||||
<div className="intro-overlay__text-mask">
|
||||
<div className="intro-overlay__logo" ref={overlayTextRef}>
|
||||
<img src={logoSrc} alt="atmos" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default IntroOverlay;
|
||||
Reference in new issue
Block a user