geraete/app/layout.tsx
2025-12-05 13:53:29 +01:00

48 lines
1.0 KiB
TypeScript

// /app/layout.tsx
import type { Metadata, Viewport } from 'next';
import { Geist, Geist_Mono } from 'next/font/google';
import './globals.css';
import Providers from './providers';
const geistSans = Geist({
variable: '--font-geist-sans',
subsets: ['latin'],
});
const geistMono = Geist_Mono({
variable: '--font-geist-mono',
subsets: ['latin'],
});
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
};
// 👇 Neu
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
maximumScale: 1,
userScalable: false, // verhindert Pinch-Zoom
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="de"
className="bg-white dark:bg-gray-950 scheme-light dark:scheme-dark"
>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased h-full overflow-x-hidden`}
>
<Providers>{children}</Providers>
</body>
</html>
);
}