-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (50 loc) · 1.47 KB
/
index.js
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
import App from "./src/App.js";
import { computeSize } from "./src/utils/Utils.js";
RecursiveDOM.app = () => App();
RecursiveDOM.devMode = false;
window.displayType = setState(computeSize());
RecursiveDOM.events = {
onResize: () => {
const n = window.displayType.value;
const nw = computeSize();
if (nw != n) {
displayType.setValue(nw);
}
},
};
RecursiveDOM.staticStyle = {
import: [
"url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')",
],
selectors: {
"html,body, #app": {
margin: "0px",
background: "#1e1e1e",
color: "white",
display: "flex",
flexDirection: "column",
minHeight: "100vh",
fontFamily: "Roboto",
fontSize: "17px",
},
"h1,h2,h3,h4,h5,h6": {
fontFamily: "Noto Sans",
margin: "0px",
padding: "5px 0px",
},
p: {
margin: "0px",
},
},
animations: {
spin: {
"0%": {
transform: "rotate(0deg)",
},
"100%": {
transform: "rotate(360deg)",
},
},
},
};
RecursiveDOM.render();