Skip to content

Commit

Permalink
style: fix fonts on safari browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Oct 22, 2023
1 parent 927cdf4 commit 2c8a393
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Binary file added src/assets/fonts/uefaeuro-bold.ttf
Binary file not shown.
Binary file added src/assets/fonts/uefaeuro-book.ttf
Binary file not shown.
Binary file added src/assets/fonts/uefaeuro-medium.ttf
Binary file not shown.
15 changes: 9 additions & 6 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
@font-face {
font-family: UEFASupercup;
src: url(/fonts/UEFASupercup-Bold.ttf);
src: url(/fonts/UEFASupercup-Bold.ttf) format('truetype');
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: UEFASupercup;
src: url(/fonts/UEFASupercup-Regular.ttf);
src: url(/fonts/UEFASupercup-Regular.ttf) format('truetype');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: UEFASupercup;
src: url(/fonts/UEFASupercup-Light.ttf);
src: url(/fonts/UEFASupercup-Light.ttf) format('truetype');
font-weight: 300;
font-display: swap;
}

@font-face {
font-family: UEFAEuro;
src: url(/fonts/uefaeuro-bold.woff2);
src: url(/fonts/uefaeuro-bold.woff2) format('woff2');
src: url(/fonts/uefaeuro-bold.ttf) format('truetype');
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: UEFAEuro;
src: url(/fonts/uefaeuro-medium.woff2);
src: url(/fonts/uefaeuro-medium.woff2) format('woff2');
src: url(/fonts/uefaeuro-medium.ttf) format('truetype');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: UEFAEuro;
src: url(/fonts/uefaeuro-book.woff2);
src: url(/fonts/uefaeuro-book.woff2) format('woff2');
src: url(/fonts/uefaeuro-book.ttf) format('truetype');
font-weight: 300;
font-display: swap;
}
Expand Down

0 comments on commit 2c8a393

Please sign in to comment.