-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (41 loc) · 1.6 KB
/
index.html
File metadata and controls
53 lines (41 loc) · 1.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoteTaking</title>
<link rel="stylesheet" href="style.css">
<script src="app.js" defer></script>
</head>
<body>
<header>
<h1>NoteTaking</h1>
<button id="add-note-btn" onclick="openNoteDialog()">+ Add Note</button>
<button id="themeToggleBtn" class="toggle-theme-btn">🌙</button>
</header>
<main id="notesContainer" class="notes-grid">
</main>
<dialog id="noteDialog">
<div class="dialog-content">
<div class="dialog-header">
<h2 class="dialog-title" id="dialogTitle">Add New Note</h2>
<button class="close-btn" onclick="closeNoteDialog()">x</button>
</div>
<form id="noteForm">
<div class="form-group">
<label for="noteTitle" class="form-label">Title</label>
<input type="text" id="noteTitle" class="form-input" placeholder="Enter note title..." required>
</div>
<div class="form-group">
<label for="noteContent" class="form-label">Content</label>
<textarea id="noteContent" class="form-textarea" placeholder="Write your note here..." required></textarea>
</div>
<div class="dialog-action">
<button type="button" class="cancle-btn" onclick="closeNoteDialog()">Cancle </button>
<button type="submit" class="save-btn">Save Note</button>
</div>
</form>
</div>
</dialog>
</body>
</html>