-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (66 loc) · 2.21 KB
/
index.html
File metadata and controls
71 lines (66 loc) · 2.21 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Encrypted Notes</title>
<script type="module" src="/src/main.ts" defer></script>
</head>
<body>
<main class="container">
<h1>🔒 Encrypted Notes</h1>
<!-- Password Input Section -->
<div id="password-section" class="section">
<h2>Enter Password</h2>
<div class="form-group">
<input
type="password"
id="password-input"
placeholder="Enter encryption password..."
autocomplete="new-password"
spellcheck="false"
/>
<button id="unlock-btn">Unlock</button>
</div>
<p class="hint">Your notes are encrypted with this password</p>
</div>
<!-- Notes List Section -->
<div id="notes-section" class="section hidden">
<div class="toolbar">
<button id="new-note-btn" class="primary">+ New Note</button>
<button id="lock-btn">🔒 Lock</button>
</div>
<div class="notes-container">
<div class="notes-list">
<h3>Your Notes</h3>
<div id="notes-list-items"></div>
</div>
<div class="note-editor hidden" id="note-editor">
<div class="editor-header">
<input
type="text"
id="note-title"
placeholder="Note title..."
class="note-title-input"
/>
<div class="editor-actions">
<button id="save-note-btn" class="primary">Save</button>
<button id="delete-note-btn" class="danger">Delete</button>
<button id="close-editor-btn">Close</button>
</div>
</div>
<textarea
id="note-content"
placeholder="Write your note here..."
class="note-content-area"
></textarea>
<div class="editor-footer">
<span id="note-status"></span>
</div>
</div>
</div>
</div>
</main>
</body>
</html>