Skip to content

Commit

Permalink
FIX: Remove fonts/icon-CDNs and use local font instead
Browse files Browse the repository at this point in the history
  • Loading branch information
on3iro committed Mar 10, 2022
1 parent 6740954 commit fa74ec8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.13.1
8 changes: 0 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<noscript id="jss-insertion-point"></noscript>
<title>Aeons End Randomizer</title>
<meta
Expand Down
Binary file added src/fonts/Roboto-Regular.woff2
Binary file not shown.
14 changes: 14 additions & 0 deletions src/globalstyles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { createGlobalStyle } from 'styled-components/macro'

// @ts-ignore
import RobotoWoff2 from './fonts/Roboto/Roboto-Regular.woff2'

const GlobalStyles = createGlobalStyle`
@font-face {
font-family: 'Roboto';
src: url(${RobotoWoff2}) format('woff2');
}
`

export default GlobalStyles

0 comments on commit fa74ec8

Please sign in to comment.