polish(dsfr): layout membre en fond DSFR + masque l'en-tête natif de l'onglet Accueil (mobile)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Azmog
2026-06-18 23:49:59 +02:00
parent ca88bf7737
commit 1bd8608acb
2 changed files with 9 additions and 5 deletions
+8 -5
View File
@@ -7,12 +7,15 @@ export default function ProtectedLayout({
children: React.ReactNode; children: React.ReactNode;
}) { }) {
return ( return (
<div className="min-h-screen flex flex-col"> <div style={{ display: 'flex', flexDirection: 'column', minHeight: '100vh' }}>
<Header /> <Header />
<main className="flex-1 bg-gray-50 dark:bg-gray-950"> <main
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> role="main"
{children} id="contenu"
</div> className="fr-background-alt--grey"
style={{ flex: 1 }}
>
<div className="fr-container fr-py-6w">{children}</div>
</main> </main>
<Footer /> <Footer />
</div> </div>
+1
View File
@@ -23,6 +23,7 @@ export default function TabLayout() {
name="index" name="index"
options={{ options={{
title: 'Accueil', title: 'Accueil',
headerShown: false,
tabBarIcon: ({ color, size }) => <Ionicons name="home" size={size} color={color} />, tabBarIcon: ({ color, size }) => <Ionicons name="home" size={size} color={color} />,
}} }}
/> />