From 314d71369912148946790da7566466b9fd3bb560 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Feb 2026 06:34:42 +0000 Subject: [PATCH] fix: restore dark theme tokens for login/admin/legal pages + remove formation SEO - globals.css: restore missing dark-*, primary, error, warning color tokens and gradient-text/gradient-bg utility classes so login, admin, mentions-legales, and confidentialite pages render correctly (white text was invisible on white bg) - layout.tsx: remove "Candidature Formation" from JSON-LD SiteNavigationElement - candidature/layout.tsx: remove "Formation" from title/description, add noindex - robots.ts: disallow /candidature/ from crawlers - sitemap.ts: remove /candidature from sitemap https://claude.ai/code/session_01V8YAjpqRQ3bfBYsABYsEgo --- app/candidature/layout.tsx | 8 ++++++-- app/globals.css | 23 +++++++++++++++++++++++ app/layout.tsx | 5 ----- app/robots.ts | 2 +- app/sitemap.ts | 8 -------- 5 files changed, 30 insertions(+), 16 deletions(-) diff --git a/app/candidature/layout.tsx b/app/candidature/layout.tsx index d631a9b..a1734be 100644 --- a/app/candidature/layout.tsx +++ b/app/candidature/layout.tsx @@ -1,9 +1,13 @@ import type { Metadata } from "next"; export const metadata: Metadata = { - title: "Candidature Formation HookLab", + title: "Candidature HookLab", description: - "Postulez à la formation HookLab pour apprendre à créer des sites web professionnels pour artisans du bâtiment. Formation complète et accompagnement personnalisé.", + "Rejoignez HookLab et apprenez \u00e0 cr\u00e9er des sites web professionnels pour artisans du b\u00e2timent. Accompagnement personnalis\u00e9.", + robots: { + index: false, + follow: false, + }, alternates: { canonical: "https://hooklab.eu/candidature", }, diff --git a/app/globals.css b/app/globals.css index 6dc565c..fead01d 100644 --- a/app/globals.css +++ b/app/globals.css @@ -23,6 +23,17 @@ --color-border-light: #F3F4F6; --color-success: #10B981; + --color-warning: #F59E0B; + --color-error: #EF4444; + + --color-primary: #6D5EF6; + --color-primary-hover: #5B4FDB; + + --color-dark: #0B0F19; + --color-dark-bg: #0B0F19; + --color-dark-light: #1A1F2E; + --color-dark-lighter: #252A3A; + --color-dark-border: #2A2F3F; --font-sans: "Inter", sans-serif; } @@ -37,6 +48,18 @@ html { scroll-behavior: smooth; } +/* Gradient utilities (used by login, admin, candidature pages) */ +.gradient-text { + background: linear-gradient(135deg, #6D5EF6, #9D8FF9); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; +} + +.gradient-bg { + background: linear-gradient(135deg, #6D5EF6, #9D8FF9); +} + /* Card hover */ .card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; diff --git a/app/layout.tsx b/app/layout.tsx index 046a4dd..5e4a733 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -193,11 +193,6 @@ export default function RootLayout({ name: "D\u00e9mo Plombier", url: `${BASE_URL}/plombier`, }, - { - "@type": "WebPage", - name: "Candidature Formation", - url: `${BASE_URL}/candidature`, - }, { "@type": "WebPage", name: "Mentions L\u00e9gales", diff --git a/app/robots.ts b/app/robots.ts index 6ce1c04..01e8e1f 100644 --- a/app/robots.ts +++ b/app/robots.ts @@ -8,7 +8,7 @@ export default function robots(): MetadataRoute.Robots { { userAgent: "*", allow: "/", - disallow: ["/admin/", "/api/", "/setup-admin/", "/dashboard/", "/profil/", "/formations/", "/login/", "/register/"], + disallow: ["/admin/", "/api/", "/setup-admin/", "/dashboard/", "/profil/", "/formations/", "/login/", "/register/", "/candidature/"], }, ], sitemap: `${BASE_URL}/sitemap.xml`, diff --git a/app/sitemap.ts b/app/sitemap.ts index b10ce79..ccb1a83 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -34,14 +34,6 @@ export default function sitemap(): MetadataRoute.Sitemap { priority: 0.9, }, - // Candidature - page importante - { - url: `${BASE_URL}/candidature`, - lastModified: now, - changeFrequency: "monthly", - priority: 0.8, - }, - // Pages SEO locales - site internet artisan + ville { url: `${BASE_URL}/site-internet-artisan-douai`,