-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
255 lines (222 loc) · 10.6 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notion Pomodoro Timer by SAM</title>
<!-- External Stylesheets -->
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!-- Main Container -->
<div id="pomodoro-container">
<!-- Interval Buttons (Focus, Short Break, Long Break) -->
<div id="interval-container">
<div id="interval-btn-container">
<button id="short-break-interval-btn" class="interval-btn">Short Break</button>
<button id="pomodoro-interval-btn" class="interval-btn">Focus</button>
<button id="long-break-interval-btn" class="interval-btn">Long Break</button>
</div>
</div>
<!-- Timer Display -->
<div id="timer-container">
<div id="ripple"></div>
<div id="time-left">25:00</div>
</div>
<!-- Start/Stop and Options Container -->
<div id="start-stop-option-container">
<div id="start-stop-container">
<button id="start-stop-btn">Start</button>
</div>
<div id="option-container">
<button id="option-btn" class="round-btn" data-bs-toggle="tooltip" data-bs-placement="left"
data-bs-title="Options" onclick="hideTooltip()"><i class="fas fa-o"></i></button>
<div id="option-modal">
<button id="help-btn" class="round-btn"><i class="fas fa-question"></i></button>
<button id="reset-btn" class="round-btn"><i class="fas fa-redo-alt"></i></button>
<button id="settings-btn" class="round-btn"><i class="fas fa-cog"></i></button>
</div>
</div>
</div>
<br>
<!-- Footer Note -->
<div id="main-foot-note" class="foot-note">
<p><i>Made with</i> 🖤 <i>by </i><strong>| <a href="https://github.com/sameetpatil5" class="profile">SAM</a>
|</strong></p>
</div>
</div>
<!-- Modal for Settings -->
<div id="settings-modal" class="modal">
<div class="modal-content">
<span class="close-btn">×</span>
<h3>Settings</h3>
<!-- Tab Navigation -->
<div id="setting-tabs" class="tabs">
<button class="tab-button active" data-tab="pomodoro-settings">Pomodoro Settings</button>
<button class="tab-button" data-tab="ui-settings">UI Settings</button>
</div>
<!-- Pomodoro Tab Settings -->
<div id="pomodoro-settings" class="tab-content active">
<div id="interval-settings">
<!-- Focus Time Settings -->
<div class="setting-option">
<label for="focus-interval">Focus Time (minutes):</label>
<input type="number" id="focus-interval" value="25" min="1" max="60" />
</div>
<!-- Short Break Time Settings -->
<div class="setting-option">
<label for="short-break-interval">Short Break Time (minutes):</label>
<input type="number" id="short-break-interval" value="5" min="1" max="30" />
</div>
<!-- Long Break Time Settings -->
<div class="setting-option">
<label for="long-break-interval">Long Break Time (minutes):</label>
<input type="number" id="long-break-interval" value="15" min="1" max="60" />
</div>
<!-- Pomodoro Count Settings -->
<div class="setting-option">
<label for="focus-count">Number of Pomodoros per Session:</label>
<input type="number" id="focus-count" value="4" min="1" max="10" />
</div>
<!-- Session Count Settings -->
<div class="setting-option">
<label for="session-count">Number of Pomodoro Sessions:</label>
<input type="number" id="session-count" value="4" min="1" max="10" />
</div>
<!-- Auto Start Pomodoro/Sessions Toggle -->
<div class="setting-option">
<label for="auto-start">Auto Start Timers/Sessions:</label>
<div class="toggle-switch">
<input type="checkbox" id="auto-start">
<span class="slider"></span>
</div>
</div>
</div>
</div>
<!-- UI Tab Settings -->
<div id="ui-settings" class="tab-content">
<!-- Background Color Options -->
<div class="setting-option">
<label for="background-color">Background Color:</label>
<select id="background-color">
<!-- Light Mode Background Colors -->
<option value="#FFFFFF" data-theme="light">LM Default White</option>
<option value="#F7F6F3" data-theme="light">LM Off White</option>
<option value="#F1F1EF" data-theme="light">LM Notion Grey</option>
<option value="#F4EEEE" data-theme="light">LM Notion Brown</option>
<option value="#FAEBDD" data-theme="light">LM Notion Orange</option>
<option value="#FBF3DB" data-theme="light">LM Notion Yellow</option>
<option value="#EDF3EC" data-theme="light">LM Notion Green</option>
<option value="#E7F3F8" data-theme="light">LM Notion Blue</option>
<option value="#F6F3F9" data-theme="light">LM Notion Purple</option>
<option value="#FAF1F5" data-theme="light">LM Notion Pink</option>
<option value="#FDEBEC" data-theme="light">LM Notion Red</option>
<!-- Dark Mode Background Colors -->
<option value="#191919" data-theme="dark">DM Default</option>
<option value="#262626" data-theme="dark">DM Hover</option>
<option value="#202020" data-theme="dark">DM Sidebar</option>
<option value="#434040" data-theme="dark">DM Notion Brown</option>
<option value="#594A3A" data-theme="dark">DM Notion Orange</option>
<option value="#FDEBB9" data-theme="dark">DM Notion Yellow</option>
<option value="#D6FAD8" data-theme="dark">DM Notion Green</option>
<option value="#364954" data-theme="dark">DM Notion Blue</option>
<option value="#443F57" data-theme="dark">DM Notion Purple</option>
<option value="#533B4C" data-theme="dark">DM Notion Pink</option>
<option value="#594141" data-theme="dark">DM Notion Red</option>
</select>
</div>
<!-- Font Color Options -->
<div class="setting-option">
<label for="font-color">Font Color:</label>
<select id="font-color">
<!-- Light Mode Font Colors -->
<option value="#37352F" data-theme="light">LM Notion Default</option>
<option value="#787774" data-theme="light">LM Notion Grey</option>
<option value="#9F6B53" data-theme="light">LM Notion Brown</option>
<option value="#D9730D" data-theme="light">LM Notion Orange</option>
<option value="#CB912F" data-theme="light">LM Notion Yellow</option>
<option value="#448361" data-theme="light">LM Notion Green</option>
<option value="#337EA9" data-theme="light">LM Notion Blue</option>
<option value="#9065B0" data-theme="light">LM Notion Purple</option>
<option value="#C14C8A" data-theme="light">LM Notion Pink</option>
<option value="#D44C47" data-theme="light">LM Notion Red</option>
<!-- Dark Mode Font Colors -->
<option value="#979A9B" data-theme="dark">DM Notion Grey</option>
<option value="#D4D4D4" data-theme="dark">DM White</option>
<option value="#937264" data-theme="dark">DM Notion Brown</option>
<option value="#FFA344" data-theme="dark">DM Notion Orange</option>
<option value="#FFDC49" data-theme="dark">DM Notion Yellow</option>
<option value="#4DAB9A" data-theme="dark">DM Notion Green</option>
<option value="#529CCA" data-theme="dark">DM Notion Blue</option>
<option value="#9A6DD7" data-theme="dark">DM Notion Purple</option>
<option value="#E255A1" data-theme="dark">DM Notion Pink</option>
<option value="#FF7369" data-theme="dark">DM Notion Red</option>
</select>
</div>
<!-- Font Settings -->
<div class="setting-option">
<label for="font">Font:</label>
<select id="font">
<option value="Rubik">Rubik</option>
<option value="Arial">Arial</option>
<option value="Verdana">Verdana</option>
</select>
</div>
<!-- Dark Mode Toggle -->
<div class="setting-option">
<label for="dark-mode">Dark Mode:</label>
<div class="toggle-switch">
<input type="checkbox" id="dark-mode">
<span class="slider"></span>
</div>
</div>
<!-- Footer Note Toggle -->
<div class="setting-option">
<label for="hide-footnote">Hide Homepage Footnote: </label>
<div class="toggle-switch">
<input type="checkbox" id="hide-footnote">
<span class="slider"></span>
</div>
</div>
</div>
<!-- Save Button to save changes -->
<button id="save-btn">Save</button>
</div>
</div>
<!-- Modal for Help -->
<div id="help-modal" class="modal">
<div class="modal-content">
<span class="close-btn">×</span>
<h3>Help</h3>
<!-- Help Content -->
<div class="help-content">
<!-- Project Intro -->
<p><strong>Pomodoro Timer:</strong> A productivity method with customalizable focus, short break and
long
break
times with customalizable Pomodoros and Sessions.</p>
<!-- Shortcuts -->
<p><strong>Shortcuts:</strong></p>
<ul>
<li><strong>Space:</strong> Start/Stop the timer</li>
<li><strong>Crtl+Space:</strong> Reset the timer</li>
<li><strong>Alt+1, Alt+2, Alt+3:</strong> Switch between Focus, Short Break, and Long Break</li>
<li><strong>Alt+S:</strong> Open Settings</li>
<li><strong>Alt+R:</strong> Hard Reset Settings</li>
<li><strong>Alt+H:</strong> Open Help</li>
<li><strong>Alt+O:</strong> Expand Options</li>
</ul>
<!-- Report an issue Footer Note -->
<p class="foot-note"><i>Found an issue? Raise it on <a
href="https://github.com/sameetpatil5/notion-pomodoro-timer/issues" target="_blank">GitHub</a></i>.
</p>
</div>
</div>
</div>
<!-- External Scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="./script.js"></script>
</body>
</html>