mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Add Consolas webfont
This commit is contained in:
@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
|
||||
|
||||
import { bsod } from './actions';
|
||||
import BSoD from 'components/ui/bsod/BSoD';
|
||||
import font from 'services/font';
|
||||
|
||||
let injectedStore;
|
||||
let onBsod;
|
||||
@@ -11,9 +12,11 @@ export default function dispatchBsod(store = injectedStore) {
|
||||
store.dispatch(bsod());
|
||||
onBsod && onBsod();
|
||||
|
||||
ReactDOM.render(
|
||||
<BSoD store={store} />,
|
||||
document.getElementById('app')
|
||||
font.load(['Consolas']).then(() =>
|
||||
ReactDOM.render(
|
||||
<BSoD store={store} />,
|
||||
document.getElementById('app')
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -2,6 +2,16 @@
|
||||
|
||||
$font-family-monospaced: 'Consolas', monospace;
|
||||
|
||||
@font-face {
|
||||
font-family: 'Consolas';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Consolas'),
|
||||
url('~fonts/consolas/consolas-regular.woff2') format('woff2'), /* Super Modern Browsers */
|
||||
url('~fonts/consolas/consolas-regular.woff') format('woff'), /* Modern Browsers */
|
||||
url('~fonts/consolas/consolas-regular.ttf') format('truetype'); /* Safari, Android, iOS */
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
background-color: $dark_blue;
|
||||
|
Reference in New Issue
Block a user