feat(landing): port de la landing Webflow en TSX#27
Merged
Conversation
5 sections décomposées en composants modulaires : - Hero (titre dégradé, pre-title pill, 2 CTAs) - Servers (marquee CSS-only de 15 serveurs Discord clients, sans JS Webflow) - About (4 KPI counters + fetch docs.raidprotect.bot/counts.json comme l'original) - Features (6 cartes vers /docs/features/*) - Pricing (3 tiers : Gratuit / Founder 2,99 $ / Business) 50 images Webflow copiées dans static/img/landing/. Page composée via un unique <Layout> dans src/pages/index.tsx. Traductions EN/DE/ES/PT à venir dans une sous-PR séparée.
Les 6 liens de la section Features pointaient encore vers docs.raidprotect.bot (extérieur). On passe en <Link to="/docs/features/..."> Docusaurus interne qui respecte la migration vers /docs et évite le full reload.
Le lien Documentation du footer pointait vers /, qui est maintenant la landing depuis la migration vers routeBasePath /docs.
…al,terms,privacy,cookies} Maintenant que les pages existent dans le site Docusaurus, Link résout automatiquement /legal, /terms, /privacy, /cookies (avec préfixe locale en i18n). Le mapping customFields.urls.* n'est plus nécessaire pour ces pages.
Seuls Hero et Servers restent des composants extraits (ils seront réutilisés dans les pages /frame/* à venir). Les 3 autres sections étaient spécifiques à la landing sans plan de réutilisation : on évite le surdécoupage en les fondant dans la page (un seul index.tsx + index.module.css avec classes préfixées par section).
Le Hero reçoit serverCount en prop et affiche un nombre arrondi au palier inférieur de 50 000 (Math.floor(count/50000)*50000) avec toLocaleString fr-FR. Effet checkpoint : 358 000 → 350 000, 401 000 → 400 000. Fallback 350 000 au SSR avant que le fetch côté client renvoie les vraies stats.
scroll-behavior: smooth global sur html, scopé par prefers-reduced-motion pour respecter les utilisateurs qui désactivent les animations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sous-PR de #25. Premier commit : version FR uniquement. Les traductions EN/DE/ES/PT suivront en commits successifs sur cette même branche.
Landing décomposée en 5 sections (
Hero,Servers,About,Features,Pricing), 50 images copiées dansstatic/img/landing/, marquee servers en CSS pur.