Merge version_3 into main #7
@@ -12,8 +12,14 @@ import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloating
|
||||
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
|
||||
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
|
||||
import { Heart, Pizza, Star } from "lucide-react";
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
export default function LandingPage() {
|
||||
const [showCookie, setShowCookie] = useState(false);
|
||||
useEffect(() => {
|
||||
const accepted = localStorage.getItem('cookies-accepted');
|
||||
if (!accepted) setShowCookie(true);
|
||||
}, []);
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="bounce-effect"
|
||||
@@ -28,6 +34,18 @@ export default function LandingPage() {
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
{showCookie && (
|
||||
<div className="fixed bottom-4 left-4 z-[9999] bg-card p-6 rounded-lg shadow-xl max-w-sm border border-accent">
|
||||
<h3 className="font-semibold mb-2">Datenschutz</h3>
|
||||
<p className="text-sm mb-4">Wir nutzen Cookies, um Ihr Erlebnis zu verbessern. Durch die Nutzung der Seite stimmen Sie dem zu.</p>
|
||||
<button
|
||||
onClick={() => { localStorage.setItem('cookies-accepted', 'true'); setShowCookie(false); }}
|
||||
className="bg-primary-cta text-white px-4 py-2 rounded"
|
||||
>
|
||||
Akzeptieren
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarLayoutFloatingInline
|
||||
navItems={[
|
||||
|
||||
Reference in New Issue
Block a user