blob: 7f6a434f2a11fb163f5bae4212ce061329356144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import "../styles.css";
import type { ReactNode } from "react";
import { Header } from "../components/header";
import { Footer } from "../components/footer";
type RootLayoutProps = { children: ReactNode };
export default async function RootLayout({ children }: RootLayoutProps) {
const data = await getData();
return (
<div className="font-['Nunito']">
<meta name="description" content={data.description} />
<link rel="icon" type="image/png" href={data.icon} />
<main className="m-6 items-center *:min-h-64 *:min-w-64 lg:m-0 lg:min-h-svh lg:justify-center">
{children}
</main>
</div>
);
}
const getData = async () => {
const data = {
description: "An internet website!",
icon: "/images/favicon.png",
};
return data;
};
export const getConfig = async () => {
return {
render: "static",
} as const;
};
|