feat: start basis of new web ui system on CRA

This commit is contained in:
41666 2021-03-12 16:14:59 -05:00
parent 40f577d01d
commit 38ee680a33
43 changed files with 465 additions and 174 deletions

View file

@ -1,23 +1,5 @@
import * as React from 'react';
import styled, { css } from 'styled-components';
export const InjectTypekitFont = () => {
React.useEffect(() => {
(window as any).Typekit.load();
}, []);
return (
<>
<link
key="typekit-css-preload"
rel="preload"
href="https://use.typekit.net/bck0pci.js"
as="script"
/>
<script key="typekit-js" src="https://use.typekit.net/bck0pci.js" />
</>
);
};
export const fontCSS = css`
font-family: 'source-han-sans-japanese', 'Source Sans Pro', sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;

View file

@ -13,6 +13,7 @@
"react": "^17.0.1",
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^17.0.1",
"react-helmet": "^6.1.0",
"react-icons": "^4.1.0",
"react-is": "^17.0.1",
"react-tooltip": "^4.2.15",
@ -32,6 +33,7 @@
"@types/react": "^17.0.0",
"@types/react-custom-scrollbars": "^4.0.7",
"@types/react-dom": "^17.0.0",
"@types/react-helmet": "^6.1.0",
"@types/styled-components": "^5.1.7",
"babel-loader": "8.1.0",
"babel-plugin-styled-components": "^1.12.0",