-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
70 lines (70 loc) · 2.3 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
<!DOCTYPE html>
<html
lang="en"
x-data="{
light: false,
appmenu: false,
}"
:light="light"
style="display: none; /* CLS */"
>
<head>
<meta charset="UTF-8" />
<link rel="root" href="/">
<link rel="icon" type="image/svg+xml" href="icons/favicon.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" href="icons/regular-x192.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="A lightweight template for a PWA with Material-looking styles.">
<meta name="theme-color" :content="light ? '#fffafe' : '#1b1a1e'">
<title>Vanilla PWA Template</title>
</head>
<body>
<header icon="search">
<input type="text" placeholder="Search nothing">
<button
icon
rotate
@click="light = !light; sounds.shutter()"
x-text="light ? 'light_mode' : 'dark_mode'"
:active="light"
/>
<button icon @click="appmenu = true">more_vert</button>
</header>
<nav>
<h4>Nav Header</h4>
<a page="benchmark" icon="speed">Benchmark</a>
<a page="home" icon="home">Home</a>
<a page="about" icon="notes">About project</a>
<hr>
<h5>Labels</h5>
<a page="" icon="circle">Label</a>
<a page="" icon="change_history">Label</a>
<a page="" icon="square">Label</a>
</nav>
<main></main>
<dialog appmenu :active="appmenu">
<div scrim @click="appmenu = false"></div>
<title>Menu Title</title>
<div icon="notes">
<title>Some notes</title>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nihil, deleniti.</p>
</div>
<div icon="info">
<p>Lorem, ipsum dolor.</p>
</div>
<div>
<button icon="settings" view="settings?test value 2" @click="appmenu = false">Settings & Preferences</button>
<button icon="update" :disabled="!navigator.onLine" onclick="updateCaches(); sounds.refresh()">
Clear Offline Caches
</button>
<button icon="analytics">Project Licence</button>
</div>
<footer>
© Jakub Slabý • 2021-2022
</footer>
</dialog>
<script type="module" src="/src/main.ts" defer></script>
</body>
</html>