+20
-6
app/layout.tsx
+20
-6
app/layout.tsx
···
1
1
import type { Metadata } from "next";
2
2
import { SpeedInsights } from "@vercel/speed-insights/next";
3
3
import { Analytics } from "@vercel/analytics/next";
4
-
import { Space_Grotesk } from "next/font/google";
4
+
import { Geist, Geist_Mono, JetBrains_Mono } from "next/font/google";
5
5
6
6
import "./globals.css";
7
7
8
-
const fontSans = Space_Grotesk({
8
+
const jetbrainsMono = JetBrains_Mono({
9
+
subsets: ["latin"],
10
+
variable: "--font-sans",
11
+
});
12
+
13
+
const geistSans = Geist({
14
+
variable: "--font-geist-sans",
9
15
subsets: ["latin"],
10
-
weight: ["400", "500", "600", "700"],
16
+
});
17
+
18
+
const geistMono = Geist_Mono({
19
+
variable: "--font-geist-mono",
20
+
subsets: ["latin"],
11
21
});
12
22
13
23
interface LayoutProps {
···
27
37
28
38
export default function RootLayout({ children }: LayoutProps) {
29
39
return (
30
-
<html lang="en" className="dark">
31
-
<body className={fontSans.className}>
40
+
<html lang="en" className={`dark ${jetbrainsMono.variable}`}>
41
+
<body
42
+
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
43
+
>
32
44
<div className="max-w-[1280px] px-6 py-11 flex flex-row">
33
45
<header className="relative flex-[0_0_250px] pr-12">
34
46
<div className="sticky top-11">
35
-
<h1 className="font-semibold text-foreground my-1.5 text-[27px] leading-8">eny.space</h1>
47
+
<h1 className="font-semibold text-foreground my-1.5 text-[27px] leading-8">
48
+
eny.space
49
+
</h1>
36
50
</div>
37
51
</header>
38
52
{children}