added tons of features

This commit is contained in:
2025-02-05 08:01:14 +02:00
parent 4ae0d8c545
commit 8138da6b1d
195 changed files with 12619 additions and 415 deletions

View File

@@ -1,34 +1,32 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import type {Metadata} from 'next'
import {headers} from 'next/headers'
import {ReactNode} from 'react'
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
import './globals.css'
import {Toaster} from '@/components/ui/toaster'
import {routing} from '@/i18n/routing'
import {APP_DESCRIPTION, APP_NAME, APP_SLOGAN} from '@/lib/constants'
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
</body>
</html>
);
title: {
template: `%s | ${APP_NAME}`,
default: `${APP_NAME}. ${APP_SLOGAN}`
},
description: APP_DESCRIPTION
}
export default async function RootLayout({
children
}: Readonly<{children: ReactNode}>) {
const headersList = await headers()
const locale = headersList.get('x-site-locale') ?? routing.defaultLocale
return (
<html lang={locale} suppressHydrationWarning>
<body className='min-h-screen antialiased'>
{children}
<Toaster />
</body>
</html>
)
}