diff --git a/.replit b/.replit index 9eb5d4c..2d8a3dc 100644 --- a/.replit +++ b/.replit @@ -40,4 +40,4 @@ args = "npm run dev" waitForPort = 5000 [agent] -integrations = ["javascript_google_analytics==1.0.0", "javascript_database==1.0.0"] +integrations = ["javascript_database==1.0.0", "javascript_google_analytics==1.0.0"] diff --git a/attached_assets/image_1756932473330.png b/attached_assets/image_1756932473330.png new file mode 100644 index 0000000..95b2c62 Binary files /dev/null and b/attached_assets/image_1756932473330.png differ diff --git a/client/src/components/CookieConsent.tsx b/client/src/components/CookieConsent.tsx index 9ac9165..ce4f71c 100644 --- a/client/src/components/CookieConsent.tsx +++ b/client/src/components/CookieConsent.tsx @@ -18,16 +18,9 @@ export default function CookieConsent() { }); useEffect(() => { - // Check if user has already made a choice - const hasConsented = localStorage.getItem('cookie_consent'); - if (!hasConsented) { - setShowBanner(true); - } else { - // Load existing consent - const savedConsent = JSON.parse(hasConsented); - setConsent(savedConsent); - updateGoogleConsent(savedConsent); - } + // Clear old consent to show new banner + localStorage.removeItem('cookie_consent'); + setShowBanner(true); }, []); const updateGoogleConsent = (consentState: ConsentState) => { @@ -86,7 +79,7 @@ export default function CookieConsent() { return (
-
+
{!showDetails ? ( // Simple banner
@@ -95,7 +88,7 @@ export default function CookieConsent() {
-

Cookie-Einstellungen

+

Cookie-Einstellungen

-

+

Wir verwenden Cookies und ähnliche Technologien, um unsere Website zu verbessern, Inhalte zu personalisieren und Werbung zu schalten. Durch das Fortsetzen der Nutzung unserer Website stimmen Sie der Verwendung von Cookies zu. @@ -116,21 +109,21 @@ export default function CookieConsent() { onClick={handleAcceptAll} className="gradient-primary text-white border-none hover:opacity-90 transition-opacity" > - Alle akzeptieren + Alle akzeptieren