mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
app router
This commit is contained in:
commit
156764768d
27 changed files with 10813 additions and 0 deletions
42
src/app/layout.tsx
Normal file
42
src/app/layout.tsx
Normal file
|
@ -0,0 +1,42 @@
|
|||
import type { Metadata } from "next";
|
||||
import Script from "next/script";
|
||||
import { ReactNode } from "react";
|
||||
import { Albert_Sans } from "next/font/google";
|
||||
import { ThemeProvider } from "@/components/ThemeProvider";
|
||||
import age from "@/utils";
|
||||
import "./globals.css";
|
||||
|
||||
const albert_sans = Albert_Sans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-albert",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL("https://albert.lol"),
|
||||
title: "albert",
|
||||
description: `${age()}yo student at Óbuda University`,
|
||||
openGraph: {
|
||||
images: "/profile.webp",
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="zxx" suppressHydrationWarning>
|
||||
<Script
|
||||
defer
|
||||
src="https://analytics.albert.lol/script.js"
|
||||
data-website-id="2c900d5e-c577-4824-ad37-0cdf68383c42"
|
||||
></Script>
|
||||
<body className={`${albert_sans.variable} font-sans antialiased`}>
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue