Skip to content

Commit f549714

Browse files
chore: use pressStart2P font
1 parent 02941c5 commit f549714

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/app/layout.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
import type { Metadata } from "next";
22
import "../styles/globals.css";
33
import { siteConfig } from "@/config/site";
4+
import { Press_Start_2P } from 'next/font/google';
45

56
export const metadata: Metadata = {
67
title: siteConfig.name,
78
description: siteConfig.description,
89
};
910

11+
const pressStart2P = Press_Start_2P({
12+
subsets: ['latin'], // This font only supports latin
13+
weight: '400', // This is the only available weight
14+
display: 'swap',
15+
});
1016
export default function RootLayout({
1117
children,
1218
}: Readonly<{
1319
children: React.ReactNode;
1420
}>) {
1521
return (
16-
<html lang="en">
22+
<html lang="en" className={pressStart2P.className}>
1723
<body
1824
className="minecraft-world bg-green-200 font-pixel min-h-screen text-gray-800"
1925
>

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Home() {
3232

3333
return (
3434
<MinecraftLayout setDayOrNight={setDay}>
35-
<div className="container mx-auto flex flex-col flex-grow w-full p-2 pt-8 gap-4">
35+
<div className="container mx-auto flex flex-col flex-grow w-full p-2 pt-12 gap-4">
3636
<Hero day={day} />
3737
<Projects day={day} />
3838
<Skills day={day} />

src/components/Banner.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export default function Banner({ day, toggleDayNight }: { day: boolean; toggleDa
5858
<div className="flex justify-between items-center w-full md:w-auto">
5959
<div className="content-start">
6060
<div className="flex flex-col">
61-
<span className="font-extrabold text-lg md:text-xl">{siteConfig.profile.name}</span>
62-
<i className="font-bold text-xs md:text-sm">{siteConfig.profile.tagline}</i>
61+
<span className="font-extrabold text-sm md:text-lg">{siteConfig.profile.name}</span>
62+
<i className="font-bold text-[6px] md:text-sm">{siteConfig.profile.tagline}</i>
6363
</div>
6464
</div>
6565
<div className="content-end flex gap-2 md:hidden">
@@ -80,7 +80,7 @@ export default function Banner({ day, toggleDayNight }: { day: boolean; toggleDa
8080
<a
8181
key={link.id}
8282
href={`#${link.id}`}
83-
className="text-white text-lg hover:underline"
83+
className="text-white text-xs"
8484
onClick={(e) => handleLinkClick(e, link.id)}
8585
>
8686
{link.label}
@@ -114,7 +114,7 @@ export default function Banner({ day, toggleDayNight }: { day: boolean; toggleDa
114114
<a
115115
key={link.id}
116116
href={`#${link.id}`}
117-
className="text-white text-lg hover:underline"
117+
className="text-white text-xs"
118118
onClick={(e) => handleLinkClick(e, link.id)}
119119
>
120120
{link.label}

0 commit comments

Comments
 (0)