fix: apply designer agent improvements to src/app/layout.tsx
This commit is contained in:
parent
9347e33813
commit
747b68366f
|
|
@ -1,33 +1,10 @@
|
|||
import type { Metadata, Viewport } from 'next'
|
||||
import { Inter } from 'next/font/google'
|
||||
import type { Metadata } from 'next'
|
||||
import './globals.css'
|
||||
|
||||
const inter = Inter({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-inter',
|
||||
display: 'swap',
|
||||
})
|
||||
import { Toaster } from 'react-hot-toast'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: 'CupaDev CMS',
|
||||
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,
|
||||
title: 'Association des Anciens Combattants',
|
||||
description: 'Site officiel de l\'association des anciens combattants français',
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
|
|
@ -36,9 +13,22 @@ export default function RootLayout({
|
|||
children: React.ReactNode
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" className={inter.variable}>
|
||||
<body className="min-h-screen flex flex-col">
|
||||
<html lang="fr">
|
||||
<body>
|
||||
<a href="#main-content" className="skip-link">
|
||||
Aller au contenu principal
|
||||
</a>
|
||||
{children}
|
||||
<Toaster
|
||||
position="top-right"
|
||||
toastOptions={{
|
||||
style: {
|
||||
background: '#002395',
|
||||
color: '#fff',
|
||||
borderLeft: '4px solid #C9A84C',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue