Skip to content

Commit e20bbdd

Browse files
author
Raphael Holzer
committed
add fonts
1 parent 0f26425 commit e20bbdd

9 files changed

Lines changed: 31 additions & 1 deletion

File tree

public/fonts/Itim-Regular.ttf

354 KB
Binary file not shown.

public/fonts/Itim-Regular.woff

155 KB
Binary file not shown.

public/fonts/Itim-Regular.woff2

102 KB
Binary file not shown.

public/fonts/Roboto-Regular.ttf

143 KB
Binary file not shown.

public/fonts/Roboto-Regular.woff

88.4 KB
Binary file not shown.

public/fonts/Roboto-Regular.woff2

61.9 KB
Binary file not shown.

src/App.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
22
import CreateNote from "./components/CreateNote/CreateNote";
33
import Header from "./components/Header/Header";
44
import "./main.scss";
5+
import "./fonts.scss";
56
import ShowNotes from "./components/ShowNotes/ShowNotes";
67

78
function App() {

src/fonts.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@font-face {
2+
font-family: "Roboto";
3+
font-weight: 400;
4+
font-style: normal;
5+
font-display: swap;
6+
src: url("/fonts/Roboto-Regular.woff2") format("woff2"),
7+
url("/fonts/Roboto-Regular.woff") format("woff"),
8+
url("/fonts/Roboto-Regular.ttf") format("truetype");
9+
}
10+
11+
@font-face {
12+
font-family: "Itim";
13+
font-weight: 400;
14+
font-style: normal;
15+
font-display: swap;
16+
src: url("/fonts/Itim-Regular.woff2") format("woff2"),
17+
url("/fonts/Itim-Regular.woff") format("woff"),
18+
url("/fonts/Itim-Regular.ttf") format("truetype");
19+
}

src/main.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ body,
148148
transition: 500ms all;
149149
position: relative;
150150
min-height: 100dvh;
151+
font-family: "roboto", sans-serif;
152+
153+
h1,
154+
h2,
155+
h3,
156+
h4,
157+
h5,
158+
h6 {
159+
font-family: "itim";
160+
}
151161

152162
main {
153163
display: flex;
@@ -162,7 +172,7 @@ body,
162172

163173
&:not(&:has(.nonotes)) {
164174
flex-wrap: wrap;
165-
justify-content:baseline;
175+
justify-content: baseline;
166176
gap: 1rem;
167177
grid-row: 192px;
168178
}

0 commit comments

Comments
 (0)