Skip to content

Commit c1f6f47

Browse files
authored
some fancier fonts in modal (#38)
1 parent f559607 commit c1f6f47

File tree

4 files changed

+44
-9
lines changed

4 files changed

+44
-9
lines changed

site/package-lock.json

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

site/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
"typescript": "5.6.3",
3131
"vite": "5.4.11"
3232
},
33+
"dependencies": {
34+
"@fontsource-variable/fredoka": "^5.0.5"
35+
},
3336
"type": "module"
3437
}

site/src/lib/components/InfoModal.svelte

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040
<div class="modal-body">
4141
<div class="text-block">
42-
<h1>What is this?</h1>
42+
<h1>What's the volume?</h1>
4343
<p>
4444
This is a site for <a
4545
href="https://www.youtube.com/channel/UC8rcEBzJSleTkf_-agPM20g"
@@ -50,7 +50,7 @@
5050
<a href="https://impomu.com/" target="_blank" rel="noopener noreferrer">impomu</a>
5151
and
5252
<a href="https://faunaraara.com/" target="_blank" rel="noopener noreferrer">faunaraara</a
53-
>.
53+
>, and is based on her habit of asking how the volume is.
5454
</p>
5555
<p>
5656
For those interested in the source code for both the site and server, it can be found <a
@@ -88,10 +88,17 @@
8888
</li>
8989
<li>
9090
<p>
91-
The font used throughout is <a
91+
The fonts used throughout are <a
9292
href="https://www.fontspring.com/fonts/inky-type/riffic"
9393
target="_blank"
9494
rel="noopener noreferrer">Riffic Free Bold</a
95+
>
96+
and
97+
<a
98+
id="fred"
99+
href="https://fonts.google.com/specimen/Fredoka"
100+
target="_blank"
101+
rel="noopener noreferrer">Fredoka</a
95102
>.
96103
</p>
97104
</li>
@@ -151,6 +158,14 @@
151158
>!
152159
</p>
153160
</div>
161+
<div class="text-block">
162+
<h1>Yoisho?</h1>
163+
<p>
164+
<a href="https://yoisho.howsthevolu.me/" target="_blank" rel="noopener noreferrer"
165+
>Yoisho.</a
166+
>
167+
</p>
168+
</div>
154169
<div class="image-block">
155170
<img src="/images/heart.webp" alt="heart" loading="lazy" />
156171
</div>
@@ -197,7 +212,8 @@
197212
}
198213
199214
.modal-header h1 {
200-
font-family: sans-serif;
215+
font-family: 'Fredoka Variable', sans-serif;
216+
font-weight: 500;
201217
font-size: 28px;
202218
flex-grow: 2;
203219
padding: 20px 0px 20px 22px;
@@ -206,7 +222,8 @@
206222
}
207223
208224
.close {
209-
font-family: 'Riffic', sans-serif;
225+
font-family: 'Fredoka Variable', sans-serif;
226+
font-weight: 600;
210227
width: 18px;
211228
height: 18px;
212229
background-color: transparent;
@@ -233,14 +250,15 @@
233250
}
234251
235252
.text-block {
236-
font-family: sans-serif;
253+
font-family: 'Fredoka Variable', sans-serif;
237254
margin: 0;
238255
display: flex;
239256
flex-direction: column;
240257
gap: 0.5em;
241258
}
242259
243260
.text-block h1 {
261+
font-weight: 500;
244262
font-size: larger;
245263
margin-top: 0px;
246264
margin-bottom: 0px;
@@ -249,6 +267,7 @@
249267
.text-block p,
250268
.text-block a,
251269
.text-block ul {
270+
font-weight: 400;
252271
font-size: medium;
253272
margin: 0px;
254273
}

site/src/routes/+layout.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import '../styles/fonts.css';
3+
import '@fontsource-variable/fredoka';
34
45
interface Props {
56
children?: import('svelte').Snippet;

0 commit comments

Comments
 (0)