write-ups-challenges-2024-2025/photos/frontend/src/app/layout.tsx
2024-11-25 22:32:02 +01:00

45 lines
1.0 KiB
TypeScript

import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import Providers from "./providers";
import Header from "@/components/header";
import { Toaster } from "@/components/ui/toaster";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
export const metadata: Metadata = {
title: "Photos",
description: "Instagram 2.0",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased flex flex-col items-center`}
>
<div className="min-w-full md:min-w-[750px] px-6">
<Providers>
<Header />
{children}
</Providers>
<Toaster />
</div>
</body>
</html>
);
}