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>
|
||||
|
||||
+14
-2
@@ -1,5 +1,5 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { Geist, Geist_Mono, Playfair_Display, Caveat } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { Navbar } from "./components/Navbar";
|
||||
|
||||
@@ -13,6 +13,18 @@ const geistMono = Geist_Mono({
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const playfair = Playfair_Display({
|
||||
variable: "--font-playfair",
|
||||
subsets: ["latin"],
|
||||
weight: ["700", "800"],
|
||||
});
|
||||
|
||||
const caveat = Caveat({
|
||||
variable: "--font-caveat",
|
||||
subsets: ["latin"],
|
||||
weight: ["700"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
@@ -26,7 +38,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
className={`${geistSans.variable} ${geistMono.variable} ${playfair.variable} ${caveat.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">
|
||||
<Navbar />
|
||||
|
||||
+4
-60
@@ -1,65 +1,9 @@
|
||||
import Image from "next/image";
|
||||
import { Hero } from "./components/Hero";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
|
||||
<main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/next.svg"
|
||||
alt="Next.js logo"
|
||||
width={100}
|
||||
height={20}
|
||||
priority
|
||||
/>
|
||||
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
|
||||
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
|
||||
To get started, edit the page.tsx file.
|
||||
</h1>
|
||||
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
||||
Looking for a starting point or more instructions? Head over to{" "}
|
||||
<a
|
||||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
||||
>
|
||||
Templates
|
||||
</a>{" "}
|
||||
or the{" "}
|
||||
<a
|
||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
||||
>
|
||||
Learning
|
||||
</a>{" "}
|
||||
center.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
|
||||
<a
|
||||
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
|
||||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/vercel.svg"
|
||||
alt="Vercel logomark"
|
||||
width={16}
|
||||
height={16}
|
||||
/>
|
||||
Deploy Now
|
||||
</a>
|
||||
<a
|
||||
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
|
||||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Documentation
|
||||
</a>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<main className="flex flex-col flex-1">
|
||||
<Hero />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user