add viewport options, remove font settings

This commit is contained in:
ppc
2024-08-08 19:40:00 +01:00
parent 327990ceb6
commit 2e561aadcc
+10 -12
View File
@@ -1,26 +1,24 @@
import type {Metadata} from "next";
import {Inter as FontSans} from "next/font/google";
import {cn} from "@/lib/utils";
import "./globals.css";
import type {Metadata, Viewport} from "next";
import {ThemeProvider} from "@/components/theme-provider";
import {Toaster} from "@/components/ui/toaster";
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
})
import "./globals.css";
export const metadata: Metadata = {
title: "AimeNet"
title: "AimeNet",
};
export const viewport: Viewport = {
initialScale: 1,
width: 'device-width',
themeColor: '#d2005b',
}
export default function RootLayout({children}: Readonly<{ children: React.ReactNode; }>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<title>AimeNet</title>
</head>
<body className={cn("min-h-screen bg-background font-sans antialiased", fontSans.variable)}>
<body className="min-h-screen bg-background">
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
{children}
</ThemeProvider>