Files
lemonspace_app/app/layout.tsx
Matthias 66c4455033 feat: update dependencies and refactor layout and homepage components
- Added new dependencies: @daveyplate/better-auth-ui, next-themes, and sonner.
- Refactored layout component to use Providers and Toaster for better state management and notifications.
- Updated homepage to utilize authClient for session management and improved user experience with navigation links for sign-in and sign-up.
2026-03-25 11:42:02 +01:00

36 lines
892 B
TypeScript

import type { Metadata } from "next";
import { Manrope } from "next/font/google";
import "./globals.css";
import { cn } from "@/lib/utils";
import { Providers } from "@/components/providers";
import { Toaster } from "@/components/ui/sonner";
import { InitUser } from "@/components/init-user";
const manrope = Manrope({ subsets: ["latin"], variable: "--font-sans" });
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="de"
className={cn("h-full", "antialiased", "font-sans", manrope.variable)}
>
<body className="min-h-full flex flex-col">
<Providers>
<InitUser />
{children}
<Toaster />
</Providers>
</body>
</html>
);
}