feat: add Hero section, fix logo with Caveat font + brush stroke SVG
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
|
||||
export function Hero() {
|
||||
return (
|
||||
<section className="bg-[#f5f0e8] flex items-stretch min-h-[36.4375rem]">
|
||||
{/* Left: text content */}
|
||||
<div className="flex-1 flex flex-col justify-center gap-6 px-[5rem] py-[3.625rem]">
|
||||
{/* Heading */}
|
||||
<h1
|
||||
className="text-[clamp(2.5rem,4.5vw,4.5rem)] font-extrabold leading-[1.08] tracking-tight text-[#1a1a1a]"
|
||||
style={{ fontFamily: "var(--font-playfair)" }}
|
||||
>
|
||||
Produktivität
|
||||
<br />
|
||||
darf sich leicht
|
||||
<br />
|
||||
anfühlen<span className="text-[#f5c518]">.</span>
|
||||
</h1>
|
||||
|
||||
{/* Subheading */}
|
||||
<p className="text-[1.125rem] font-medium text-[#1a1a1a] leading-[1.4] max-w-[22rem]">
|
||||
Für Menschen mit Familie,
|
||||
<br />
|
||||
Verantwortung und zu wenig Zeit
|
||||
</p>
|
||||
|
||||
{/* CTA button */}
|
||||
<Link
|
||||
href="/challenge"
|
||||
className="inline-flex items-center gap-3 self-start px-6 py-4 rounded-xl bg-[#f5c518] text-[1rem] font-bold text-[#1a1a1a] hover:brightness-95 transition-all"
|
||||
>
|
||||
Starte mit der 7-Tage-Challenge
|
||||
<span className="text-[#1a1a1a]">✓</span>
|
||||
</Link>
|
||||
|
||||
{/* Social proof */}
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="flex -space-x-2">
|
||||
{[
|
||||
{ bg: "#c8a882", label: "Person 1" },
|
||||
{ bg: "#a0785a", label: "Person 2" },
|
||||
{ bg: "#8b6b5a", label: "Person 3" },
|
||||
].map((a) => (
|
||||
<div
|
||||
key={a.label}
|
||||
className="w-9 h-9 rounded-full border-2 border-[#f5f0e8]"
|
||||
style={{ background: a.bg }}
|
||||
aria-label={a.label}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
<p className="text-[0.875rem] text-[#3a3a3a] leading-[1.3]">
|
||||
<span className="font-semibold">10.000+</span> Menschen vertrauen
|
||||
<br />
|
||||
einfach-produktiv
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Right: hero image */}
|
||||
<div className="relative w-[48%] shrink-0 overflow-hidden">
|
||||
<Image
|
||||
src="/hero.jpg"
|
||||
alt="Notizbuch mit Tagesplan und Kaffee"
|
||||
fill
|
||||
className="object-cover object-center"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -13,17 +13,28 @@ export function Navbar() {
|
||||
<div className="w-full flex items-center justify-between gap-8">
|
||||
|
||||
{/* Logo */}
|
||||
<Link href="/" className="flex flex-col gap-0.5 shrink-0">
|
||||
<span className="relative inline-block px-2 py-0.5">
|
||||
<Link href="/" className="flex flex-col gap-1 shrink-0">
|
||||
<span className="relative inline-block">
|
||||
{/* Brush stroke SVG background */}
|
||||
<svg
|
||||
className="absolute inset-0 w-full h-full"
|
||||
viewBox="0 0 180 36"
|
||||
preserveAspectRatio="none"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path
|
||||
d="M4,8 C20,2 60,0 100,3 C130,5 165,4 176,9 C180,14 178,22 172,27 C155,34 110,36 70,35 C35,34 5,32 2,26 C-1,20 2,12 4,8 Z"
|
||||
fill="#f5c518"
|
||||
/>
|
||||
</svg>
|
||||
<span
|
||||
className="absolute inset-0 rounded-sm -skew-x-2"
|
||||
style={{ background: "#f5c518", opacity: 0.85 }}
|
||||
/>
|
||||
<span className="relative font-bold text-[1.375rem] text-[#1a1a1a] leading-tight tracking-tight italic">
|
||||
className="relative text-[1.5rem] font-bold text-[#1a1a1a] leading-none px-3 py-1.5 block"
|
||||
style={{ fontFamily: "var(--font-caveat)" }}
|
||||
>
|
||||
einfach produktiv
|
||||
</span>
|
||||
</span>
|
||||
<span className="text-[0.5rem] uppercase tracking-[0.15em] text-[#6b6b6b] pl-2">
|
||||
<span className="text-[0.5rem] uppercase tracking-[0.12em] text-[#6b6b6b] pl-1">
|
||||
Weil du auch noch ein Leben hast
|
||||
</span>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user