Skip to content

Commit

Permalink
Embed Inter font files and remove Google font links. Closes #547.
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetppro authored Nov 10, 2021
1 parent 46f13bf commit 35ac1cc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>static/favicon.png" />
<link href="https://fonts.googleapis.com/css?family=Inter:400,600" rel="stylesheet" />
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
Expand Down
Binary file added frontend/src/assets/icons/inter-v3-600.woff2
Binary file not shown.
Binary file added frontend/src/assets/icons/inter-v3-regular.woff2
Binary file not shown.
18 changes: 18 additions & 0 deletions frontend/src/assets/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
/* Import Bulma to set variables */
@import "~bulma/sass/utilities/_all";

/* import inter-regular */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
src: local(''),
url('assets/icons/inter-v3-regular.woff2') format('woff2'),
}

/* import inter-600 */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
src: local(''),
url('assets/icons/inter-v3-600.woff2') format('woff2'),
}

$body-family: "Inter", "Helvetica Neue", sans-serif;
$body-size: 15px;
$background: $white-bis;
Expand Down

0 comments on commit 35ac1cc

Please sign in to comment.