chore(repo): sync wireframe structure and references

This commit is contained in:
david committed 2026-08-08 03:09:06 +02:00
1 parent 05d2d5777f
commit d953a79e95
453 files changed
+36639 -621

No files matched your search

@@ -0,0 +1,198 @@
"use client";
import Link from "next/link";
import { CHAMFER } from "@/lib/chamfer";
import Image from "next/image";
import { useRef, useEffect } from "react";
import { gsap } from "gsap";
import DemoButton from "@/components/ui/DemoButton";
export default function HeroSection() {
const sectionRef = useRef<HTMLElement>(null);
const badgeRef = useRef<HTMLSpanElement>(null);
const headlineRef = useRef<HTMLHeadingElement>(null);
const subtextRef = useRef<HTMLParagraphElement>(null);
const buttonsRef = useRef<HTMLDivElement>(null);
const screenshotRef = useRef<HTMLDivElement>(null);
const sealRef = useRef<HTMLAnchorElement>(null);
useEffect(() => {
const ctx = gsap.context(() => {
const tl = gsap.timeline({ defaults: { ease: "power3.out" } });
// Stagger entrance from left side
tl.fromTo(
badgeRef.current,
{ opacity: 0, y: 20 },
{ opacity: 1, y: 0, duration: 0.5 }
)
.fromTo(
headlineRef.current,
{ opacity: 0, y: 30 },
{ opacity: 1, y: 0, duration: 0.7 },
"-=0.3"
)
.fromTo(
subtextRef.current,
{ opacity: 0, y: 20 },
{ opacity: 1, y: 0, duration: 0.5 },
"-=0.4"
)
.fromTo(
buttonsRef.current,
{ opacity: 0, y: 20 },
{ opacity: 1, y: 0, duration: 0.5 },
"-=0.3"
)
.fromTo(
screenshotRef.current,
{ opacity: 0, scale: 0.95, y: 30 },
{ opacity: 1, scale: 1, y: 0, duration: 0.8, ease: "power2.out" },
"-=0.4"
)
.fromTo(
sealRef.current,
{ opacity: 0, scale: 0.8 },
{ opacity: 1, scale: 1, duration: 0.4 },
"-=0.3"
);
}, sectionRef);
return () => ctx.revert();
}, []);
return (
<section
ref={sectionRef}
className="section-full relative overflow-x-clip"
style={{ paddingTop: "var(--hero-top-padding)", paddingBottom: 48 }}
>
<style>{`
@media (min-width: 768px) {
.hero-bottom-pad { padding-bottom: 80px !important; }
}
`}</style>
<div
className="hero-ambient-bg pointer-events-none absolute inset-x-0 -top-28 bottom-0"
aria-hidden="true"
style={{
background: [
"radial-gradient(46% 62% at 5% 8%, rgba(241,183,41,0.34) 0%, rgba(241,183,41,0) 74%)",
"radial-gradient(46% 62% at 95% 24%, rgba(13,110,110,0.28) 0%, rgba(13,110,110,0) 76%)",
"linear-gradient(132deg, var(--accent-yellow-light) 0%, #FFF7E2 32%, var(--surface) 58%, #EDF8F8 76%, var(--accent-teal-light) 100%)",
"linear-gradient(180deg, rgba(255,255,255,0) 72%, var(--surface) 100%)",
].join(", "),
}}
/>
{/* Smooth fade to white at bottom */}
<div
className="absolute inset-x-0 bottom-0 z-[1] pointer-events-none"
style={{ height: 120, background: "linear-gradient(to bottom, transparent, var(--surface))" }}
/>
<div
className="relative z-10 flex flex-col lg:flex-row items-center justify-between gap-8 lg:gap-14 mx-auto"
style={{ maxWidth: "var(--content-width)" }}
>
{/* Left */}
<div className="flex flex-col gap-4 md:gap-6 w-full lg:w-auto lg:flex-1">
{/* Badge */}
<span
ref={badgeRef}
className="self-start text-[12px] font-semibold tracking-widest chamfer-badge px-2 py-0.5 opacity-0"
style={{ background: "var(--accent-yellow-light)", color: "var(--accent-yellow-dark)" }}
>
SHK-SOFTWARE
</span>
{/* Headline */}
<h1
ref={headlineRef}
className="text-[32px] sm:text-[40px] md:text-[56px] font-bold leading-[1.1] opacity-0"
style={{ color: "var(--text-primary)" }}
>
Ihr Betrieb läuft organisiert,{" "}
<span style={{ color: "var(--accent-yellow)" }}>automatisiert</span>{" "}
und effizient.
</h1>
{/* Subtext */}
<p
ref={subtextRef}
className="text-[16px] md:text-[18px] leading-relaxed max-w-xl opacity-0"
style={{ color: "var(--text-secondary)" }}
>
HiveGrid bündelt die wichtigsten Prozesse rund um Anfrage, Auftragsgewinnung und
Projektabwicklung. Weniger manuelle Abstimmung, weniger Zettel, mehr Zeit fürs
Handwerk.
</p>
{/* Buttons */}
<div ref={buttonsRef} className="flex flex-wrap items-stretch gap-3 pt-1 md:pt-2 opacity-0">
<DemoButton />
<Link
href="/kunden"
className="inline-flex items-center justify-center rounded-[var(--radius-button)] text-[16px] font-semibold hover:bg-[var(--bg-muted)] transition-colors"
style={{
color: "var(--text-primary)",
background: "var(--surface)",
padding: "14px 28px",
border: "1.5px solid var(--border-neutral)",
}}
>
Mehr erfahren
</Link>
</div>
</div>
{/* Right App Screenshot with heyData seal overlay */}
<div className="relative w-full lg:w-auto shrink-0" style={{ width: "min(100%, 600px)" }}>
<div
ref={screenshotRef}
className="overflow-hidden opacity-0"
style={{
clipPath: CHAMFER,
filter:
"drop-shadow(0 8px 32px rgba(0,0,0,0.08)) drop-shadow(0 2px 8px rgba(0,0,0,0.04))",
}}
>
<Image
src="/images/hero-screenshot.webp"
alt="HiveGrid Dashboard – Pipeline-Volumen, Umsatzübersicht und Vertriebsperformance auf einen Blick"
width={2980}
height={1402}
className="w-full h-auto block"
draggable={false}
priority
sizes="(max-width: 1024px) 100vw, 600px"
/>
</div>
{/* heyData DSGVO seal — overlapping bottom-right of screenshot */}
<a
ref={sealRef}
href="https://heydata.eu"
target="_blank"
rel="noopener noreferrer"
title="heyData GDPR seal"
className="absolute opacity-0 -bottom-8 -right-2 sm:-bottom-10 sm:-right-3 lg:-bottom-12 lg:-right-4"
style={{
zIndex: 10,
filter: "drop-shadow(0 6px 16px rgba(0,0,0,0.15))",
}}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
alt="heyData DSGVO-Siegel"
src="https://api.heydata.eu/privacy-seal/seal/2cdc4714-a706-4790-975c-7c95935905fe?lang=de&design=design1&sealType=GDPR"
className="w-[100px] h-[100px] sm:w-[120px] sm:h-[120px] lg:w-[140px] lg:h-[140px]"
style={{ border: 0 }}
/>
</a>
</div>
</div>
</section>
);
}