32 lines
937 B
TypeScript
32 lines
937 B
TypeScript
import type { Metadata } from "next";
|
||||
|
|
import { Cormorant_Garamond, Inter } from "next/font/google";
|
|||
|
|
|
|||
|
|
import { SiteHeader } from "@/components/SiteHeader";
|
|||
|
|
import { getMe } from "@/lib/server";
|
|||
|
|
|
|||
|
|
import "./globals.css";
|
|||
|
|
|
|||
|
|
const cormorant = Cormorant_Garamond({
|
|||
|
|
subsets: ["latin", "latin-ext"],
|
|||
|
|
weight: ["500", "600"],
|
|||
|
|
variable: "--font-cormorant",
|
|||
|
|
});
|
|||
|
|
const inter = Inter({ subsets: ["latin", "latin-ext"], variable: "--font-inter" });
|
|||
|
|
|
|||
|
|
export const metadata: Metadata = {
|
|||
|
|
title: { default: "Sorsfonalak", template: "%s · Sorsfonalak" },
|
|||
|
|
description: "Születési képlet, szinasztria és közösség – egy helyen.",
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
|||
|
|
const me = await getMe();
|
|||
|
|
return (
|
|||
|
|
<html lang="hu" className={`${cormorant.variable} ${inter.variable}`}>
|
|||
|
|
<body>
|
|||
|
|
{me && <SiteHeader me={me} />}
|
|||
|
|
{children}
|
|||
|
|
</body>
|
|||
|
|
</html>
|
|||
|
|
);
|
|||
|
|
}
|