Skip to content

Commit e838833

Browse files
committed
add K2D font
1 parent fd49189 commit e838833

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/check": "^0.5.10",
1414
"@astrojs/tailwind": "^5.1.0",
15+
"@fontsource/k2d": "^5.0.19",
1516
"astro": "^4.6.1",
1617
"tailwindcss": "^3.4.3",
1718
"typescript": "^5.4.5"

pnpm-lock.yaml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/layouts/Layout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import "@fontsource/k2d";
3+
24
interface Props {
35
title: string;
46
}

src/pages/index.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import Layout from "../layouts/Layout.astro";
99
>
1010
<div class="p-8 flex flex-col gap-5">
1111
<div>
12-
<h1 class="text-4xl font-semibold">JavaScript Bangkok 2.0.0</h1>
12+
<h1 class="text-4xl font-semibold font-[K2D]">
13+
JavaScript Bangkok 2.0.0
14+
</h1>
1315
<p class="text-xl text-white">Saturday, October 19, 2024</p>
1416
<p class="text-xl text-white">True Digital Park West</p>
1517
</div>

0 commit comments

Comments
 (0)