-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (62 loc) · 1.91 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>fun-router</title>
<style>
body, html {
padding: 0px;
margin: 0px;
font-family: sans-serif;
background-color: #eee;
height: 100%;
width: 100%;
}
main {
padding: 100px 20px 0px 20px;
display: block;
}
fun-router {
background: white;
display: table;
width: calc( 100% - 40px);
padding: 20px;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
:root {
--primary-color: #FFC107;
--secondary-color: #E91E63;
}
</style>
</head>
<body>
<top-nav>
<fun-tabs>
<fun-link href="/">
<fun-tab>Home</fun-tab>
</fun-link>
<fun-link href="/about">
<fun-tab>About</fun-tab>
</fun-link>
<fun-link href="/name/foo/bar">
<fun-tab>FooBar</fun-tab>
</fun-link>
</fun-tabs>
</top-nav>
<main>
<fun-router>
<home-page path="/"></home-page>
<div path="/about">
<div>url: /about </div>
<h4>About Page</h4>
</div>
<foo-bar path="/name/:first/:last"></foo-bar>
</fun-router>
</main>
<script src="fun-router.js"></script>
<script src="demo/HomePage.js"></script>
<script src="demo/FooBar.js"></script>
<script src="node_modules/top-nav/top-nav.js"></script>
<script src="node_modules/fun-tabs/fun-tabs.js"></script>
</body>
</html>