-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (45 loc) · 1.28 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>{app_title}</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta http-equiv="Content-Type" name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8">
<meta charset="UTF-8" />
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
{style_include}
<style>
* {
text-rendering: optimizeLegibility!important;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
}
:root {
font-family: 'Inter', sans-serif;
}
@supports (font-variation-settings: normal) {
:root {
font-family: 'Inter var', sans-serif;
}
}
a, a:link, a:visited, a:hover {
text-decoration: none;
}
textarea:active, textarea:focus-visible {
outline: 0;
}
</style>
</head>
<body style="margin: 0px; width: 100vw; height: 100vh">
<div id="main" style="width: 100vw; height: 100vh"></div>
<script type="module">
import init from "/{base_path}/assets/dioxus/{app_name}.js";
init("/{base_path}/assets/dioxus/{app_name}_bg.wasm").then(wasm => {
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
});
</script>
{script_include}
</body>
</html>