fix: apply bugfix agent improvements to src/app/layout.tsx
This commit is contained in:
parent
c414992219
commit
4669f14d25
|
|
@ -1,19 +1,45 @@
|
|||
import type { Metadata } from 'next'
|
||||
import './globals.css'
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Personal CMS',
|
||||
description: 'Mon Musée Personnel',
|
||||
}
|
||||
title: "Personal CMS",
|
||||
description: "A personal content management system",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="fr">
|
||||
<body>{children}</body>
|
||||
<html lang="en">
|
||||
<body className={inter.className}>
|
||||
{children}
|
||||
<Toaster
|
||||
position="top-right"
|
||||
toastOptions={{
|
||||
duration: 3000,
|
||||
style: {
|
||||
background: "#363636",
|
||||
color: "#fff",
|
||||
},
|
||||
success: {
|
||||
style: {
|
||||
background: "#16a34a",
|
||||
},
|
||||
},
|
||||
error: {
|
||||
style: {
|
||||
background: "#dc2626",
|
||||
},
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue