forked from jamaljsr/polar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
59 lines (50 loc) · 1.5 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import React from 'react';
import ReactDOM from 'react-dom';
import { info } from 'electron-log';
import { css, Global } from '@emotion/react';
import './i18n';
import { initLogger } from 'shared/utils';
import App from './components/App';
// set global configuration for logging
initLogger();
info(`Starting React App in renderer process`);
const Root: React.FC = () => (
<>
<Global
styles={css`
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
#root {
width: 100vw;
height: 100vh;
}
::-webkit-scrollbar {
width: 8px;
background-color: rgba(0, 0, 0, 0);
border-radius: 10px;
}
::-webkit-scrollbar:hover {
background-color: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:vertical {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:vertical:active {
background-color: rgba(0, 0, 0, 0.6);
border-radius: 10px;
}
`}
/>
<App />
</>
);
ReactDOM.render(<Root />, document.getElementById('root'));