-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (125 loc) · 6.3 KB
/
index.html
File metadata and controls
135 lines (125 loc) · 6.3 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tasks & Notes</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Title Bar -->
<div class="titlebar">
<button id="add-btn" title="Add New">+</button>
<div class="titlebar-drag-region"></div>
<div class="titlebar-controls">
<button id="menu-btn" title="Menu">...</button>
<button id="minimize-btn" title="Minimize">−</button>
<button id="close-btn" title="Close">×</button>
</div>
</div>
<!-- Dropdown Menu -->
<div id="dropdown-menu" class="hidden">
<button class="menu-item active" data-target="tasks-view">Tasks</button>
<button class="menu-item" data-target="notes-view">Notes</button>
<div class="divider"></div>
<button class="menu-item" id="open-dashboard-btn" style="color: #fce205;">Open Main App</button>
<button class="menu-item" id="pin-toggle">Pin to Top</button>
<div class="divider"></div>
<div class="menu-credits">
<p>By Rasindu Gimhan</p>
<div class="menu-credit-links">
<a href="#" data-url="https://github.com/rasindugimhan">GitHub</a>
<a href="#" data-url="https://t.me/rasindugimhan">Telegram</a>
</div>
</div>
</div>
<div class="app-body">
<!-- Tasks View -->
<div id="tasks-view" class="view active">
<div class="view-header">
<span style="font-weight: 500;">Tasks</span>
<div style="display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex-grow: 1;">
<select id="group-tasks" style="font-size: 11px;">
<option value="none">Group: None</option>
<option value="date">Group: Date</option>
<option value="status">Group: Status</option>
<option value="category">Group: Category</option>
</select>
<select id="sort-tasks" style="font-size: 11px;">
<option value="expire">Sort: Expire</option>
<option value="time">Sort: Added</option>
<option value="alpha">Sort: A-Z</option>
</select>
</div>
</div>
<ul id="task-list" class="bullet-list"></ul>
</div>
<!-- Notes List View -->
<div id="notes-view" class="view">
<div class="view-header">
<span style="font-weight: 500;">All Notes</span>
<div style="display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex-grow: 1;">
<select id="sort-notes" style="font-size: 11px;">
<option value="alpha">Sort: A-Z</option>
<option value="created">Sort: Created</option>
<option value="edited">Sort: Edited</option>
</select>
</div>
</div>
<div id="notes-list" class="notes-list"></div>
</div>
<!-- Single Note Editor View -->
<div id="note-editor" class="view" style="display: none;">
<div class="editor-toolbar">
<button id="back-to-notes">← Back</button>
<button id="del-note" style="color:#ef4444; margin-left:auto;">Delete</button>
</div>
<input type="text" id="note-editor-title" placeholder="Note Title...">
<div class="format-toolbar">
<button type="button" class="format-btn" data-cmd="bold"><b>B</b></button>
<button type="button" class="format-btn" data-cmd="italic" style="font-style:italic; font-family:serif;">I</button>
<button type="button" class="format-btn" data-cmd="underline"><u>U</u></button>
<button type="button" class="format-btn" data-cmd="strikeThrough" style="text-decoration:line-through;">ab</button>
<button type="button" class="format-btn" data-cmd="insertUnorderedList">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>
</button>
<button type="button" class="format-btn" id="format-image-btn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>
</button>
<input type="file" id="format-image-input" accept="image/*" style="display:none;">
</div>
<div id="note-editor-body" contenteditable="true" placeholder="Write your note here..."></div>
</div>
</div>
<!-- Add Task Modal -->
<div id="task-modal" class="modal hidden">
<div class="modal-content">
<input type="text" id="task-title" placeholder="Task Name..." autofocus>
<div class="divider"></div>
<label>Set Reminder (Relative)</label>
<div class="row">
<input type="number" id="rem-days" min="0" placeholder="D" style="flex: 1;"> <span style="font-size: 12px; margin-right: 5px;">d</span>
<input type="number" id="rem-hours" min="0" placeholder="H" style="flex: 1;"> <span style="font-size: 12px; margin-right: 5px;">h</span>
<input type="number" id="rem-mins" min="0" placeholder="M" style="flex: 1;"> <span style="font-size: 12px;">m</span>
</div>
<div class="divider"></div>
<label>Precise Custom Reminder</label>
<div class="row">
<input type="date" id="custom-date" style="flex: 2;">
<input type="time" id="custom-time" step="1" style="flex: 1;">
</div>
<div class="divider"></div>
<label>Assign to Group</label>
<div style="display: flex; gap: 5px; align-items: center;">
<select id="task-category" style="flex-grow: 1; background: var(--body-bg); color: var(--text-color); border: 1px solid var(--border-color); padding: 8px; border-radius: 4px; font-size: 13px;"></select>
<button id="quick-add-cat-btn" class="btn" style="padding: 8px 12px; font-weight: bold;">+</button>
</div>
<div class="row right" style="margin-top:10px;">
<button id="cancel-task" class="btn-outline">Cancel</button>
<button id="save-task" class="btn">Add Task</button>
</div>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>