Skip to content

Commit daf76c4

Browse files
committed
Swap fonts when loading
1 parent 706f1d0 commit daf76c4

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

components/navbar.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
}
55

66
.NavbarBrand {
7-
font-family: 'Roboto';
7+
font-family: 'Roboto', sans-serif;
88
font-size: 1.25rem;
99
padding: 0px 0px 0px 0px;
1010
}
1111

1212
.Navbar {
1313
/* padding-bottom: 50px; */
14-
font-family: 'Roboto';
14+
font-family: 'Roboto', sans-serif;
1515
font-size: 1.5rem
1616
}
1717

1818
.NavBarLogoText {
1919
display: inline-block;
2020
vertical-align: middle;
2121
margin: 0 0 0 0;
22-
font-family: Rowdies;
22+
font-family: Rowdies, sans-serif;
2323
font-size: 22px
2424
}

pages/project/paintingguesser.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
.Headers {
1212
padding: 10px 10px 0px 10px;
13-
font-family: Garamond;
13+
font-family: Garamond, sans-serif;
1414
}
1515

1616

@@ -68,7 +68,7 @@
6868
padding-top: 5px;
6969
padding-bottom: 0px;
7070
background: transparent;
71-
font-family: Garamond;
71+
font-family: Garamond, sans-serif;
7272
}
7373

7474
.Button {

styles/styles.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,79 @@
33
src: url('/fonts/Roboto/Roboto-Regular.ttf');
44
font-weight: 400;
55
font-style: normal;
6+
font-display: swap;
67
}
78

89
@font-face {
910
font-family: 'Roboto-Bold';
1011
src: url('/fonts/Roboto/Roboto-Bold.ttf');
1112
font-weight: 400;
1213
font-style: bold;
14+
font-display: swap;
1315
}
1416

1517
@font-face {
1618
font-family: 'Roboto Mono';
1719
src: url('/fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf');
1820
font-weight: 400;
1921
font-style: normal;
22+
font-display: swap;
2023
}
2124

2225
@font-face {
2326
font-family: 'Roboto-Light';
2427
src: url('/fonts/Roboto/Roboto-Light.ttf');
2528
font-weight: 400;
2629
font-style: normal;
30+
font-display: swap;
2731
}
2832

2933
@font-face {
3034
font-family: 'Roboto-Thin';
3135
src: url('/fonts/Roboto/Roboto-Thin.ttf');
3236
font-weight: 400;
3337
font-style: normal;
38+
font-display: swap;
3439
}
3540

3641
@font-face {
3742
font-family: 'Rowdies';
3843
src: url('/fonts/Rowdies/Rowdies-Regular.ttf');
3944
font-weight: 400;
4045
font-style: normal;
46+
font-display: swap;
4147
}
4248

4349
body {
44-
font-family: 'Roboto';
50+
font-family: 'Roboto', sans-serif;
4551
font-size: 1.1em;
4652
margin: 0 auto;
4753
}
4854

4955
p,
5056
li {
51-
font-family: 'Roboto';
57+
font-family: 'Roboto', sans-serif;
5258
font-size: 1.1em;
5359
}
5460

5561
h1 {
5662
font-size: 2em;
57-
font-family: 'Rowdies';
63+
font-family: 'Rowdies', sans-serif;
5864
}
5965

6066
h2 {
6167
font-size: 1.6em;
62-
font-family: 'Roboto';
68+
font-family: 'Roboto', sans-serif;
6369
}
6470

6571
h3 {
6672
font-size: 1.4em;
67-
font-family: 'Roboto-Light';
73+
font-family: 'Roboto-Light', sans-serif;
6874
}
6975

7076
h4 {
7177
font-size: 1.2em;
72-
font-family: 'Roboto-Thin';
78+
font-family: 'Roboto-Thin', sans-serif;
7379
}
7480

7581
code {

0 commit comments

Comments
 (0)