-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (159 loc) · 5.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pomodoro Timer</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<script type="module" src="main.js" defer></script>
</head>
<body>
<section id="app" class="container">
<div class="wrapper title-wrapper">
<h1 class="title">pomodoro timer</h1>
<button id="settingsButton" class="icon">
<span>⚙</span>
</button>
</div>
<div class="wrapper tabs-wrapper">
<div class="tabs">
<div class="tab selected" data-tab="POMODORO">pomodoro</div>
<div class="tab" data-tab="SHORT_BREAK">short break</div>
<div class="tab" data-tab="LONG_BREAK">long break</div>
</div>
</div>
<div class="wrapper timer-wrapper">
<div class="timer">
<div class="time-clock">
<span id="minutes">--</span>
<span class="divider">:</span>
<span id="seconds">--</span>
</div>
</div>
</div>
<div class="wrapper action-wrapper">
<button id="start" class="action-button">start</button>
</div>
</section>
<section id="settings" class="container hide">
<section class="wrapper title-wrapper">
<h1 class="title">timer settings</h1>
<button id="closeButton" class="icon">
<span>✖</span>
</button>
</section>
<div class="wrapper form-wrapper">
<div class="inputs-wrapper">
<p class="input-title">Pomodoro:</p>
<div class="inputs">
<div class="input-wrapper">
<label class="label" for="pomodoro-minutes">Minutes</label>
<input
class="input"
id="pomodoro-minutes"
name="pomodoroMinutes"
data-name="POMODORO"
data-type-digit="minutes"
type="number"
min="0"
max="1440"
step="1"
/>
</div>
<div class="input-wrapper">
<label class="label" for="pomodoro-seconds">Seconds</label>
<input
class="input"
id="pomodoro-seconds"
name="pomodoroSeconds"
data-name="POMODORO"
data-type-digit="seconds"
type="number"
min="0"
max="59"
step="1"
/>
</div>
</div>
</div>
<div class="inputs-wrapper">
<p class="input-title">Short break:</p>
<div class="inputs">
<div class="input-wrapper">
<label class="label" for="short-break-minutes">Minutes</label>
<input
class="input"
id="short-break-minutes"
name="shortBreakMinutes"
data-name="SHORT_BREAK"
data-type-digit="minutes"
type="number"
min="0"
max="1440"
step="1"
/>
</div>
<div class="input-wrapper">
<label class="label" for="short-break-seconds">Seconds</label>
<input
class="input"
id="short-break-seconds"
name="shortBreakSeconds"
data-name="SHORT_BREAK"
data-type-digit="seconds"
type="number"
min="0"
max="59"
step="1"
/>
</div>
</div>
</div>
<div class="inputs-wrapper">
<p class="input-title">Long break:</p>
<div class="inputs">
<div class="input-wrapper">
<label class="label" for="long-break-minutes">Minutes</label>
<input
class="input"
id="long-break-minutes"
name="longBreakMinutes"
data-name="LONG_BREAK"
data-type-digit="minutes"
type="number"
min="0"
max="1440"
step="1"
/>
</div>
<div class="input-wrapper">
<label class="label" for="long-break-seconds">Seconds</label>
<input
class="input"
id="long-break-seconds"
name="longBreakSeconds"
data-name="LONG_BREAK"
data-type-digit="seconds"
type="number"
min="0"
max="59"
step="1"
/>
</div>
</div>
</div>
<div id="error-message" class="error"></div>
</div>
<div class="wrapper action-wrapper">
<button id="save" class="action-button">save</button>
</div>
</section>
</body>
</html>