Skip to content

Commit

Permalink
refactore(perf): Making font also locally hosted and adding custom fo…
Browse files Browse the repository at this point in the history
…nt-style
  • Loading branch information
Gnyblast committed Nov 25, 2024
1 parent 1e3cce9 commit 16f9823
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file added src/assets/Roboto-Medium.ttf
Binary file not shown.
1 change: 0 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
<base href="/" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<script src="https://buttons.github.io/buttons.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FQW4MXXGBY"></script>
Expand Down
8 changes: 8 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/* Global Styles */

@font-face {
font-family: "Roboto";
font-style: normal;
font-weight: 400;
src: url(assets/Roboto-Medium.ttf) format("truetype");
font-display: swap;
}

* {
font-family: "Roboto", Arial, sans-serif;
box-sizing: border-box;
Expand Down

0 comments on commit 16f9823

Please sign in to comment.