diff --git a/app/(protected)/layout.tsx b/app/(protected)/layout.tsx index 7041ffa..94e81a6 100644 --- a/app/(protected)/layout.tsx +++ b/app/(protected)/layout.tsx @@ -38,7 +38,7 @@ export default async function DashboardLayout({ } return ( -
+
{children}
diff --git a/app/candidature/page.tsx b/app/candidature/page.tsx index aec1c73..eba3346 100644 --- a/app/candidature/page.tsx +++ b/app/candidature/page.tsx @@ -108,7 +108,7 @@ export default function CandidaturePage() { }; return ( -
+
{/* Header */}
diff --git a/app/cgv/page.tsx b/app/cgv/page.tsx index 305b07a..9a0d692 100644 --- a/app/cgv/page.tsx +++ b/app/cgv/page.tsx @@ -12,7 +12,7 @@ export const metadata: Metadata = { export default function CGV() { return ( -
+
diff --git a/app/confidentialite/page.tsx b/app/confidentialite/page.tsx index 344f37b..e979f37 100644 --- a/app/confidentialite/page.tsx +++ b/app/confidentialite/page.tsx @@ -12,7 +12,7 @@ export const metadata: Metadata = { export default function Confidentialite() { return ( -
+
diff --git a/app/layout.tsx b/app/layout.tsx index 5e4a733..683f5a4 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import CookieBanner from "@/components/CookieBanner"; import "./globals.css"; const BASE_URL = process.env.NEXT_PUBLIC_APP_URL || "https://hooklab.eu"; @@ -224,6 +225,7 @@ export default function RootLayout({ Aller au contenu principal {children} + ); diff --git a/app/login/page.tsx b/app/login/page.tsx index 391a73e..9f6cf4d 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -124,7 +124,7 @@ function LoginForm() { export default function LoginPage() { return ( -
+
{/* Logo */}
diff --git a/app/register/page.tsx b/app/register/page.tsx index d8c42d9..a0e95ae 100644 --- a/app/register/page.tsx +++ b/app/register/page.tsx @@ -64,7 +64,7 @@ export default function RegisterPage() { }; return ( -
+
{/* Logo */}
diff --git a/components/CookieBanner.tsx b/components/CookieBanner.tsx index c99d238..78cc460 100644 --- a/components/CookieBanner.tsx +++ b/components/CookieBanner.tsx @@ -9,7 +9,9 @@ export default function CookieBanner() { useEffect(() => { const consent = localStorage.getItem("hooklab_cookie_consent"); if (!consent) { - setVisible(true); + // Small delay so it doesn't flash on page load + const timer = setTimeout(() => setVisible(true), 800); + return () => clearTimeout(timer); } }, []); @@ -27,32 +29,46 @@ export default function CookieBanner() { return (
-
-

- Ce site utilise uniquement des cookies techniques nécessaires - au fonctionnement de la plateforme (authentification, session). Aucun cookie publicitaire - ou de traçage n’est utilisé.{" "} - - Politique de confidentialité - -

-
- - +
+
+ {/* Text */} +
+

+ Ce site utilise des cookies +

+

+ Nous utilisons uniquement des cookies techniques nécessaires + au bon fonctionnement du site (authentification, préférences de session). + Aucun cookie publicitaire ou de traçage n’est utilisé. + Conformément au RGPD, vous pouvez accepter ou refuser leur utilisation.{" "} + + En savoir plus + +

+
+ + {/* Buttons */} +
+ + +
diff --git a/components/admin/AdminShell.tsx b/components/admin/AdminShell.tsx index 91aba46..a8e3945 100644 --- a/components/admin/AdminShell.tsx +++ b/components/admin/AdminShell.tsx @@ -63,7 +63,7 @@ export default function AdminShell({ children, adminName, adminEmail }: AdminShe }; return ( -
+
{/* Sidebar */}