Skip to content

Commit 0f642b9

Browse files
committed
[grid] Using local font instead of downloading every time
1 parent 27dffd1 commit 0f642b9

File tree

7 files changed

+10
-2
lines changed

7 files changed

+10
-2
lines changed

javascript/grid-ui/public/index.html

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<link href="%PUBLIC_URL%/manifest.json" rel="manifest"/>
1010
<link href="%PUBLIC_URL%/css/bootstrap.min.css" rel="stylesheet">
1111
<link href="%PUBLIC_URL%/css/fontawesome.min.css" rel="stylesheet">
12-
<link href="https://fonts.gstatic.com" rel="preconnect">
13-
<link href="https://fonts.googleapis.com/css2?family=Encode+Sans&display=swap" rel="stylesheet">
1412
<title>Grid Console</title>
1513
</head>
1614

Binary file not shown.
Binary file not shown.
-72.5 KB
Binary file not shown.
-77.2 KB
Binary file not shown.

javascript/grid-ui/src/index.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* encode-sans-regular - latin */
2+
@font-face {
3+
font-family: 'Encode Sans';
4+
font-style: normal;
5+
font-weight: 400;
6+
src: local(''),
7+
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('./fonts/encode-sans-v7-latin-regular.woff2') format('woff2'),
8+
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ url('./fonts/encode-sans-v7-latin-regular.woff') format('woff');
9+
}

javascript/grid-ui/src/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import ReactDOM from 'react-dom';
55
import App from './App';
66
import * as serviceWorker from './serviceWorker';
77
import theme from "./theme/theme";
8+
import './index.css';
89

910
ReactDOM.render(
1011
<React.StrictMode>

0 commit comments

Comments
 (0)