Refactor docs and gallery pages to use unified site layout system#43
Merged
Conversation
- Page Composants : header sticky remplacé par un hero (eyebrow + titre + lead) identique aux pages MCP et Ressources ; barre de catégories collante - Page Documentation : hero + grille de cartes alignés sur Ressources - Nav : suppression de l'entrée Composants (redondante avec « Ouvrir l'app ») - i18n : ajout des libellés eyebrow pour gallery et docsHub (fr/en) https://claude.ai/code/session_01R2zjjDD1srqhoMnFx8LWx9
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.
Summary
Refactored the docs hub and component gallery pages to adopt a consistent site-wide layout pattern using shared CSS classes (
site-hero,site-section,site-container,site-resource-grid), improving design consistency and maintainability across the application.Key Changes
Docs Hub Page (
/docs):CARD_STYLEinline styles with semantic CSS classesCARD_HREFconstant for better maintainabilityDocCardcomponent logic into the main page using a map-based approachsite-resource-gridclass for consistent stylingComponent Gallery Page (
/components):site-herosectionsite-containerfor consistent max-width and paddingContainercomponent withsite-sectionandsite-containerclassesNavigation (
SiteNav.tsx):/componentslink from main navigationInternationalization:
eyebrowfield to bothgalleryanddocsHubdictionaries (en.ts and fr.ts)Implementation Details
CARD_HREFwith explicitexternalboolean flags<section>,<ul>,<li>) for better accessibilitytarget/relattributeshttps://claude.ai/code/session_01R2zjjDD1srqhoMnFx8LWx9