-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (51 loc) · 2.4 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
<html lang="en">
<head>
<title> d-notes</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-blue-100 ">
<div class="flex flex-col items-center justify-center h-full">
<div class="flex flex-col items-center justify-center">
<button id="sign-out"
class="bg-red-500 hover:bg-red-700 text-white font-bold px-2 py-1 mx-2 rounded absolute top-0 right-0 mt-4 mr-4">Sign
Out</button>
</div>
<div class="flex flex-col items-center justify-center"></div>
<h1 class="text-4xl font-bold mb-8">D-Notes</h1>
<div>
<form id="sign-in" class="flex flex-col gap-5 items-center justify-center">
<div class="flex flex-col gap-1">
<input id="username"
class="border border-gray-300 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
placeholder="username">
<input id="password"
class="border border-gray-300 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
type="password" placeholder="passphrase">
</div>
<div>
<input id="in" type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold px-2 py-1 mx-2 rounded"
value="sign in">
<input id="sign-up" type="button"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold px-2 py-1 mx-2 rounded" value="sign up">
</div>
</form>
</div>
<form id="notes-form">
<div class="flex gap-1">
<input id="new-message"
class="border border-gray-300 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<input id="speak" class="bg-blue-500 hover:bg-blue-700 text-white font-bold px-2 py-1 mx-2 rounded"
type="submit" value="speak">
</div>
</form>
<ul class="flex flex-col gap-2 items-center justify-center p-4 my-2"></ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/gun/lib/unset.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gun/gun.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gun/sea.js"></script>
<!-- script src="https://cdn.jsdelivr.net/npm/gun/lib/webrtc.js"></script -->
<script src="index.js" type="text/javascript"></script>
</body>
</html>