-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (78 loc) · 3.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style/global.css">
<link rel="stylesheet" href="./style/main.css">
<title>Todo App</title>
</head>
<body>
<div class="container flex justify-center align-center flex-col">
<article class="header flex flex-col">
<h1>Rust 🦀 and WebAssembly 🕸</h1>
<div class="actions flex flex-row">
<p class="text-center">Todo by Softgod 📝</p>
</div>
</article>
<div class="todo flex flex-col justify-center align-start">
<div id="rust-logo" class="w-100 flex justify-center align-center">
<img src="/image/rust-logo.png" alt="rust-logo">
</div>
<div class="tasks w-100">
<article class="tasks-engine flex justify-between align-center">
<h2 class="text-start">Tasks</h2>
<button class="text-start" id="remove-all">Remove first task</button>
</article>
<div class="tasks-list">
<label class="tasks-list__item">
<article class="flex align-center justify-center">
<p>Todo #1</p>
</article>
<button><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path d="M18 6L6 18M6 6l12 12" stroke="#B0B0B0" stroke-width="2"
stroke-linecap="round" />
</svg></button>
</label>
<label class="tasks-list__item">
<article class="flex align-center justify-center">
<p>Todo #2</p>
</article>
<button><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path d="M18 6L6 18M6 6l12 12" stroke="#B0B0B0" stroke-width="2"
stroke-linecap="round" />
</svg></button>
</label>
<label class="tasks-list__item">
<article class="flex align-center justify-center">
<p>Todo #3</p>
</article>
<button><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path d="M18 6L6 18M6 6l12 12" stroke="#B0B0B0" stroke-width="2"
stroke-linecap="round" />
</svg></button>
</label>
<label class="tasks-list__item">
<article class="flex align-center justify-center">
<p>Todo #4</p>
</article>
<button><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path d="M18 6L6 18M6 6l12 12" stroke="#B0B0B0" stroke-width="2"
stroke-linecap="round" />
</svg></button>
</label>
</div>
</div>
<div class="add-task flex justify-start align-center w-100">
<input type="text" placeholder="todo name" id="input-task">
<button id="add-task" class="w-100">Add task</button>
</div>
</div>
</div>
</body>
<script type="module">
import init, { run } from "./pkg/hello_wasm.js";
await init();
run();
</script>
</html>