Skip to content

Commit f965f9f

Browse files
committed
feat: use custom font
1 parent 7840dcd commit f965f9f

4 files changed

Lines changed: 29 additions & 13 deletions

File tree

124 KB
Binary file not shown.

src/App.css

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,23 @@
44
text-align: center;
55
}
66

7+
.site-header {
8+
display: flex;
9+
align-items: center;
10+
gap: 1rem;
11+
justify-content: center;
12+
margin-bottom: 1rem;
13+
}
14+
15+
.site-header h1 {
16+
margin: 0;
17+
}
18+
719
.logo {
8-
height: 20em;
9-
padding: 0.5em;
10-
margin-bottom: -5em;
20+
width: 10vw;
21+
min-width: 60px;
22+
height: auto;
23+
padding: 0.25em;
1124
will-change: filter;
1225
transition: filter 300ms;
1326
}
@@ -145,12 +158,7 @@
145158
h1 {
146159
font-size: 2rem;
147160
}
148-
.logo {
149-
max-width: 90vw;
150-
width: auto;
151-
height: auto;
152-
}
153-
.audio-player {
161+
.audio-player {
154162
max-width: 100%;
155163
padding: 0 0.5rem 1rem 0.5rem;
156164
}

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ function App() {
77

88
return (
99
<>
10-
<div>
10+
<header className="site-header">
1111
<img
1212
src={zappermentRocksLogo}
1313
className="logo"
1414
alt="zapperment.rocks logo"
1515
/>
16-
</div>
17-
<h1>zapperment.rocks</h1>
16+
<h1>zapperment.rocks</h1>
17+
</header>
1818

1919
<div className="hero">
2020
<div className="hero-inner">

src/index.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
@font-face {
2+
font-family: 'Yanone Kaffeesatz';
3+
src: url('/fonts/YanoneKaffeesatz-VariableFont_wght.ttf') format('truetype');
4+
font-weight: 200 700;
5+
font-style: normal;
6+
font-display: swap;
7+
}
8+
19
:root {
2-
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
10+
font-family: 'Yanone Kaffeesatz', system-ui, Avenir, Helvetica, Arial, sans-serif;
311
line-height: 1.5;
412
font-weight: 400;
513

0 commit comments

Comments
 (0)