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

This commit is contained in:
cupadev-admin 2026-03-09 14:32:11 +00:00
parent b57b4598eb
commit a961fd76a5
1 changed files with 32 additions and 32 deletions

View File

@ -1,45 +1,45 @@
import type { Metadata } from "next"; import type { Metadata, Viewport } from 'next'
import { Inter } from "next/font/google"; import { Inter } from 'next/font/google'
import "./globals.css"; import './globals.css'
import { Toaster } from "react-hot-toast";
const inter = Inter({ subsets: ["latin"] }); const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
display: 'swap',
})
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Personal CMS", title: {
description: "A personal content management system", 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,
}
export default function RootLayout({ export default function RootLayout({
children, children,
}: { }: {
children: React.ReactNode; children: React.ReactNode
}) { }) {
return ( return (
<html lang="en"> <html lang="en" className={inter.variable}>
<body className={inter.className}> <body className="min-h-screen flex flex-col">
{children} {children}
<Toaster
position="top-right"
toastOptions={{
duration: 3000,
style: {
background: "#363636",
color: "#fff",
},
success: {
style: {
background: "#16a34a",
},
},
error: {
style: {
background: "#dc2626",
},
},
}}
/>
</body> </body>
</html> </html>
); )
} }