TypeScript · 1207 bytes Raw Blame History
1 // src/app/layout.tsx
2 import type { Metadata } from "next";
3 import { Inter, Anonymous_Pro } from "next/font/google";
4 import "./globals.css";
5
6 const inter = Inter({ subsets: ["latin"] });
7 const spaceMono = Anonymous_Pro({
8 subsets: ["latin"],
9 weight: ['400', '700'],
10 variable: '--font-terminal',
11 });
12
13 export const metadata: Metadata = {
14 title: "Bashamole",
15 description: "A game to practice Unix navigation by hunting moles in the filesystem",
16 icons: {
17 icon: [
18 { url: '/favicon.ico' },
19 { url: '/favicon-16x16.png', sizes: '16x16', type: 'image/png' },
20 { url: '/favicon-32x32.png', sizes: '32x32', type: 'image/png' },
21 ],
22 apple: [
23 { url: '/apple-touch-icon.png' },
24 ],
25 other: [
26 {
27 rel: 'android-chrome-192x192',
28 url: '/android-chrome-192x192.png',
29 },
30 {
31 rel: 'android-chrome-512x512',
32 url: '/android-chrome-512x512.png',
33 },
34 ],
35 },
36 };
37
38 export default function RootLayout({
39 children,
40 }: Readonly<{
41 children: React.ReactNode;
42 }>) {
43 return (
44 <html lang="en" className={`h-full ${spaceMono.variable}`}>
45 <body className={`${inter.className} h-full`}>{children}</body>
46 </html>
47 );
48 }