-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
107 lines (89 loc) · 3.08 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
<meta charset="utf-8">
<meta name="description" content="My description">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="WASM Router">
<meta property="og:description" content="Playground for a WebAssembly frontend router written in Rust 🦀">
<meta property="og:image" content="/img/thumb.jpg">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="WASM Router">
<meta property="twitter:description" content="Playground for a WebAssembly frontend router written in Rust 🦀">
<meta property="twitter:image" content="/img/thumb.jpg">
<script type="module" src="/index.js"></script>
<title>WASM Router Demo</title>
<style>
.loading::before,
.loading::after {
content: "";
position: fixed;
z-index: 1000;
}
.loading::before {
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
}
.loaded {
opacity: 0;
}
.loading::after {
top: 50%;
left: 50%;
width: 60px;
height: 60px;
margin: -30px 0 0 -30px;
border-radius: 50%;
opacity: 0.4;
background: rgb(122, 19, 239);
animation: loaderAnim 0.7s linear infinite alternate forwards;
}
@keyframes loaderAnim {
to {
opacity: 1;
transform: scale3d(0.5, 0.5, 1);
}
}
</style>
</head>
<body id="body" class="loading">
<header>
<nav>
<a href="#/">
<h2>WASM Router</h2>
</a>
<ul>
<li><a href="#/about">About</a></li>
<li><a href="#/faq">FAQ</a></li>
<li><a href="#/lets/party">🎉</a></li>
</ul>
</nav>
<h2>Playground for a WebAssembly frontend router written in Rust 🦀</u></h1>
<h1>Current page is <mark id="path"></mark> </h1>
</header>
<main id="content">
</main>
<footer>
<hr>
<p>
<small>
Built with <a href="https://www.rust-lang.org/">Rust↗</a> , <a
href="https://rustwasm.github.io/">rustwasm↗</a> & <a
href="https://andybrewer.github.io/mvp/">MVP.css↗</a>
<br>
Made by <a href="https://twitter.com/arwinneil">@arwinneil ↗</a>
<br>
Source code : <a
href="https://github.com/arwinneil/wasm-router-poc">github.com/arwinneil/wasm-router↗</a>
</small>
</p>
</footer>
</body>
</html>