Skip to content

Commit

Permalink
feat: update font family for title
Browse files Browse the repository at this point in the history
  • Loading branch information
minmaxw1024 committed Nov 17, 2024
1 parent fe1e669 commit 45d6b97
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ export default function Topbar() {
return (
<div class="top-0 z-50 fixed w-full bg-primary text-primary-content">
<div class="container mx-auto flex items-center justify-between text-white p-4">
<a class="text-2xl font-bold" href="/">Arcane Tome</a>
<a class="text-3xl font-bold font-grenze" href="/">Arcane Tome</a>
<div class="flex items-center space-x-4">
{links.map((link) => <Link href={link.href}>{link.text}</Link>)}
{links.map((link) => (
<Link href={link.href}>
<span class="font-grenze text-base">{link.text}</span>
</Link>
))}
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions routes/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default function App({ Component }: PageProps) {
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Arcane Tome</title>
<link rel="stylesheet" href="/styles.css" />
<link
href="https://fonts.googleapis.com/css2?family=Grenze:wght@400;500;700&display=swap"
rel="stylesheet"
>
</link>
</head>
<body>
<Component />
Expand Down
7 changes: 7 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ export default {
// @ts-expect-error
daisyui,
],
theme: {
extend: {
fontFamily: {
grenze: ["Grenze", "sans-serif"],
},
},
},
daisyui: {
themes: [
"emerald",
Expand Down

0 comments on commit 45d6b97

Please sign in to comment.