Merge version_24_1782165969832 into main #26

Merged
bender merged 1 commits from version_24_1782165969832 into main 2026-06-22 22:07:59 +00:00
2 changed files with 73 additions and 1 deletions

View File

@@ -15,11 +15,13 @@ import ContactSection from './HomePage/sections/Contact';
import TermsOfServiceSection from './HomePage/sections/TermsOfService';
import TrustedBySection from './HomePage/sections/TrustedBy';export default function HomePage(): React.JSX.Element {
import TrustedBySection from './HomePage/sections/TrustedBy';
import LeadCaptureSection from './HomePage/sections/LeadCapture';export default function HomePage(): React.JSX.Element {
return (
<>
<HeroSection />
<TrustedBySection />
<LeadCaptureSection />
<AboutSection />

View File

@@ -0,0 +1,70 @@
import React, { useState } from "react";
import Button from "@/components/ui/Button";
import Input from "@/components/ui/Input";
import TextAnimation from "@/components/ui/TextAnimation";
import ScrollReveal from "@/components/ui/ScrollReveal";
import Tag from "@/components/ui/Tag";
export default function LeadCaptureSection() {
const [email, setEmail] = useState("");
const [submitted, setSubmitted] = useState(false);
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (email) {
setSubmitted(true);
}
};
return (
<section className="relative w-full py-24 bg-background" data-webild-section="lead-capture" id="lead-capture">
<div className="w-content-width mx-auto">
<ScrollReveal variant="fade">
<div className="card p-8 md:p-16 flex flex-col md:flex-row items-center justify-between gap-12 bg-primary-cta/5 border border-primary-cta/10">
<div className="flex-1 space-y-6">
<Tag text="Kostenloses Whitepaper" className="bg-primary-cta/10 text-primary-cta" />
<TextAnimation
text="IT-Sicherheit im Mittelstand: Der ultimative Leitfaden"
variant="slide-up"
tag="h2"
className="text-3xl md:text-4xl font-bold text-foreground"
gradientText={false}
/>
<p className="text-lg text-accent max-w-xl">
Erfahren Sie in unserem kostenlosen Whitepaper, wie Sie Ihr Unternehmen vor den häufigsten Cyberbedrohungen schützen können. Sichern Sie sich jetzt Ihr Exemplar!
</p>
</div>
<div className="w-full md:w-[400px] flex-shrink-0">
{!submitted ? (
<form
className="flex flex-col gap-4"
onSubmit={handleSubmit}
>
<Input
type="email"
placeholder="Ihre E-Mail-Adresse"
required
value={email}
onChange={(e) => setEmail(e.target.value)}
className="w-full bg-background"
/>
<Button text="Jetzt herunterladen" variant="primary" className="w-full justify-center" />
<p className="text-sm text-accent mt-2 text-center">
Ihre Daten sind bei uns sicher.
</p>
</form>
) : (
<div className="flex flex-col items-center justify-center p-6 bg-background rounded-lg border border-border text-center">
<h3 className="text-xl font-bold text-foreground mb-2">Vielen Dank!</h3>
<p className="text-accent">
Der Download-Link wurde an Ihre E-Mail-Adresse gesendet.
</p>
</div>
)}
</div>
</div>
</ScrollReveal>
</div>
</section>
);
}