feat: integrate typewriter effect in Hero headline
This commit is contained in:
parent
a33115e56d
commit
561b61f6b6
|
|
@ -1,4 +1,13 @@
|
||||||
|
// components/Hero.tsx
|
||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useMemo } from "react";
|
||||||
|
import { useTypewriter } from "@/hooks/useTypewriter";
|
||||||
|
|
||||||
export default function Hero() {
|
export default function Hero() {
|
||||||
|
const words = useMemo(() => ["Professionell.", "DSGVO-konform.", "Zuverlässig.", "Skalierbar."], []);
|
||||||
|
const typed = useTypewriter(words);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="relative min-h-screen flex items-center justify-center overflow-hidden">
|
<section className="relative min-h-screen flex items-center justify-center overflow-hidden">
|
||||||
{/* Background grid */}
|
{/* Background grid */}
|
||||||
|
|
@ -21,7 +30,10 @@ export default function Hero() {
|
||||||
{/* Headline */}
|
{/* Headline */}
|
||||||
<h1 className="text-5xl sm:text-6xl lg:text-7xl font-black text-white leading-tight mb-6 tracking-tight">
|
<h1 className="text-5xl sm:text-6xl lg:text-7xl font-black text-white leading-tight mb-6 tracking-tight">
|
||||||
Ihre IT-Infrastruktur.{" "}
|
Ihre IT-Infrastruktur.{" "}
|
||||||
<span className="text-gradient">Professionell.</span>
|
<span className="text-gradient">
|
||||||
|
{typed}
|
||||||
|
<span className="animate-pulse">|</span>
|
||||||
|
</span>
|
||||||
<br />
|
<br />
|
||||||
Skalierbar. Zuverlässig.
|
Skalierbar. Zuverlässig.
|
||||||
</h1>
|
</h1>
|
||||||
|
|
@ -47,16 +59,10 @@ export default function Hero() {
|
||||||
|
|
||||||
{/* CTAs */}
|
{/* CTAs */}
|
||||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
|
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
|
||||||
<a
|
<a href="#contact" className="btn-primary w-full sm:w-auto px-8 py-4 text-lg">
|
||||||
href="#contact"
|
|
||||||
className="btn-primary w-full sm:w-auto px-8 py-4 text-lg"
|
|
||||||
>
|
|
||||||
Projekt anfragen
|
Projekt anfragen
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a href="#services" className="btn-secondary w-full sm:w-auto px-8 py-4 text-lg">
|
||||||
href="#services"
|
|
||||||
className="btn-secondary w-full sm:w-auto px-8 py-4 text-lg"
|
|
||||||
>
|
|
||||||
Services ansehen
|
Services ansehen
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue