fix: apply designer agent improvements to src/app/layout.tsx

This commit is contained in:
cupadev-admin 2026-03-09 18:16:20 +00:00
parent 9347e33813
commit 747b68366f
1 changed files with 19 additions and 29 deletions

View File

@ -1,33 +1,10 @@
import type { Metadata, Viewport } from 'next' import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css' import './globals.css'
import { Toaster } from 'react-hot-toast'
const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
display: 'swap',
})
export const metadata: Metadata = { export const metadata: Metadata = {
title: { title: 'Association des Anciens Combattants',
default: 'CupaDev CMS', description: 'Site officiel de l\'association des anciens combattants français',
template: '%s | CupaDev CMS',
},
description:
'A modern, fast content management system built with Next.js.',
metadataBase: new URL('https://cupadev.com'),
openGraph: {
type: 'website',
locale: 'en_US',
url: 'https://cupadev.com',
title: 'CupaDev CMS',
},
}
export const viewport: Viewport = {
themeColor: '#6470f3',
width: 'device-width',
initialScale: 1,
} }
export default function RootLayout({ export default function RootLayout({
@ -36,9 +13,22 @@ export default function RootLayout({
children: React.ReactNode children: React.ReactNode
}) { }) {
return ( return (
<html lang="en" className={inter.variable}> <html lang="fr">
<body className="min-h-screen flex flex-col"> <body>
<a href="#main-content" className="skip-link">
Aller au contenu principal
</a>
{children} {children}
<Toaster
position="top-right"
toastOptions={{
style: {
background: '#002395',
color: '#fff',
borderLeft: '4px solid #C9A84C',
},
}}
/>
</body> </body>
</html> </html>
) )