Skip to content

Commit 2144ad7

Browse files
committed
install fonts and use them
1 parent e8c32bc commit 2144ad7

7 files changed

Lines changed: 31 additions & 7 deletions

File tree

website/package-lock.json

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

website/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
},
1111
"dependencies": {
1212
"@astrojs/svelte": "^7.2.3",
13+
"@fontsource/open-sans": "^5.2.7",
14+
"@fontsource/ramaraja": "^5.2.8",
1315
"@tailwindcss/vite": "^4.1.17",
1416
"astro": "^5.15.5",
1517
"svelte": "^5.45.8",

website/src/components/Contact.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import wedge from "../assets/backgrounds/wedge.svg";
77
<div class="max-w-[130ch] mx-auto">
88
<div class="flex flex-row">
99
<div class="sm:w-2/5 p-6 py-12">
10-
<div class="prose">
10+
<div class="prose prose-headings:text-left">
1111
<Content />
1212
</div>
1313
<form action="message" class="mt-6">
@@ -40,7 +40,7 @@ import wedge from "../assets/backgrounds/wedge.svg";
4040
placeholder="Your message"></textarea>
4141
</div>
4242
<input
43-
class="px-6 py-2 mt-3 font-serif font-bold bg-green-300 rounded-full text-lg cursor-pointer"
43+
class="px-6 py-2 pt-3 mt-3 font-serif bg-green-300 rounded-full text-lg cursor-pointer"
4444
type="submit"
4545
value="Submit"
4646
size=""

website/src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<a class="underline text-lg" href=`${import.meta.env.BASE_URL}/#top`
33
>Return to top</a
44
>
5-
<p class="text-2xl! font-semibold font-serif">Benefit Decision Toolkit</p>
5+
<p class="text-2xl! font-serif">Benefit Decision Toolkit</p>
66
<p>With ❤️ from Philly</p>
77
</footer>

website/src/components/Hero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Content } from "../assets/copy/Hero.md";
1414
</div>
1515
<a href=`${import.meta.env.BASE_URL}/#projects`>
1616
<p
17-
class="mt-6 w-fit px-6 py-2 bg-white border-2 border-sky-500 rounded-full text-sky-700! text-lg font-bold font-serif"
17+
class="mt-6 w-fit px-6 py-2 pt-3 bg-white border-2 border-sky-500 rounded-full text-sky-700! font-serif"
1818
>
1919
See what we can do
2020
</p>

website/src/layouts/Layout.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import "../styles/global.css";
33
import Header from "../components/Header.astro";
44
import Footer from "../components/Footer.astro";
5+
import "@fontsource/open-sans";
6+
import "@fontsource/ramaraja";
57
---
68

79
<html lang="en" class="scroll-smooth">
@@ -13,7 +15,7 @@ import Footer from "../components/Footer.astro";
1315
<title>Benefit Decision Toolkit</title>
1416
</head>
1517
<body
16-
class="prose-headings:font-serif prose-headings:text-center prose-p:text-black prose-p:leading-6 prose-a:font-semibold prose-h2:text-3xl prose-h3:text-2xl prose-p:text-lg"
18+
class="prose-headings:font-serif prose-headings:font-normal prose-headings:text-center prose-p:text-black prose-p:leading-6 prose-a:font-semibold prose-h2:text-4xl prose-h3:text-3xl prose-p:text-lg"
1719
>
1820
<div id="top"></div>
1921
<Header />

website/src/styles/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
@plugin "@tailwindcss/typography";
33

44
@theme {
5-
--font-sans: "Open Sans";
6-
--font-serif: "Ramaraja";
5+
--font-sans: "Open Sans", sans;
6+
--font-serif: "Ramaraja", serif;
77
}

0 commit comments

Comments
 (0)