-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
200 lines (177 loc) · 7.48 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
<!DOCTYPE html>
<html lang="en" dir="auto">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Pomodoro Timer is a productivity app that helps you stay focused on your tasks by timing your work and break sessions.">
<meta name="theme-color" content="#29313a">
<link rel="icon" href="images/pomo-logo.png" type="image/png">
<link rel="apple-touch-icon" href="images/pomo-logo.png" type="image/png">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<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=Lato:ital,wght@0,300;0,400;1,100&display=swap"
rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<title>Pomodoro Timer</title>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
</head>
<body>
<main>
<div class="sidebar-container">
<aside class="sidebar">
<button class="close-sidebar" id="close-sidebar" type="button">
<i class="fa-solid fa-xmark close-icon"></i>
</button>
<div class="stats-container sidebar-container hidden">
<h2 class="sidebar-title">Your stats</h2>
<div class="stats">
<div class="stats__total">
<p>Total focus time</p>
<span class="stats__total-time" id="total-time"
>Complete a session to start counting</span
>
</div>
<div class="stats__total">
<p>Total sessions completed</p>
<span id="total-session">0</span>
</div>
</div>
</div>
<div class="bg-music-container sidebar-container hidden">
<h2 class="sidebar-title">Background music</h2>
<div class="bg-music">
<div class="music-container">
<div class="music-player-container">
<h4 id="music-title">No song selected</h4>
<div class="progress-container">
<div class="progress"></div>
</div>
<div class="bg-music-nav">
<audio
src="https://github.com/jmoseka/Pomodoro_Timer/blob/feature-music/music/classical-andate.mp3?raw=true"
id="audio"
></audio>
<div>
<button type="button" id="prev-music" class="bg-music__btn">
<i class="fa-solid fa-backward music-ctrl-icon"></i>
</button>
<button type="button" id="next-music" class="bg-music__btn">
<i class="fa-solid fa-forward music-ctrl-icon"></i>
</button>
</div>
<button
id="play-music"
class="bg-music__btn action-btn-big"
type="button"
>
<i class="icon-play fa-solid fa-play music-ctrl-icon"></i>
</button>
</div>
</div>
<ul class="bg-music-list">
<!-- populated dynamically -->
</ul>
</div>
</div>
<!-- this code <audio src="https://www.youtube.com/watch?v=VIDEO_ID" controls></audio>
does not produce sound -->
</div>
<!-- PWA install button, hidden by default -->
<div class="pwa-install-container">
<button class="btn" type="button">
<ion-icon name="cloud-download" aria-hidden="true"></ion-icon>
<span>Install</span>
</button>
</div>
</aside>
</div>
<audio src="" id="alarm-ring"></audio>
<div class="hero-container-parent">
<div class="hero-container">
<div class="sidebar-window"> </div>
<section class="hero-section">
<div class="overlay"></div>
<div class="content-container">
<div class="timer-notice-container">
<div class="timer__notice">
<p id="motivate-notice"></p>
<p>
<span class="session__count" id="session-count"
>Let's focus</span
>
</p>
</div>
</div>
<!-- <h1 class="heading">Pomodoro Timer</h1> -->
<div class="timer">
<div class="timer-content">
<div class="display-1 timer__time">
<p id="time">25:00</p>
</div>
<div class="timer__controls">
<ion-icon
class="controls-icon control-bg hidden"
id="pause"
name="pause"
></ion-icon>
<ion-icon
class="controls-icon control-bg"
id="play"
name="play"
></ion-icon>
<ion-icon
class="controls-icon control-bg"
id="reset"
name="refresh"
></ion-icon>
</div>
</div>
</div>
<div class="option-menu">
<div class="option" id="music-option">
<ion-icon
class="option-icon"
name="musical-notes-outline"
></ion-icon>
</div>
<div class="option" id="stat-option">
<ion-icon
class="option-icon"
id="stat-option"
name="stats-chart-outline"
></ion-icon>
</div>
</div>
</div>
</section>
</div>
</div>
<div class="footer">
<div class="footer-icons">
<a href="https://github.com/jmoseka/Pomodoro_Timer" target="_blank" rel="noopener"
><ion-icon name="logo-github" class="footer-icon"></ion-icon
></a>
<a href="https://twitter.com/milamosky" target="_blank" rel="noopener"
><ion-icon name="logo-twitter" class="footer-icon"></ion-icon
></a>
<a href="https://www.linkedin.com/in/jamila-moseka/" target="_blank" rel="noopener"
><ion-icon name="logo-linkedin" class="footer-icon"></ion-icon
></a>
</div>
</div>
</main>
<script type="module" src="index.js"></script>
<script
src="https://kit.fontawesome.com/1cd527edf2.js"
crossorigin="anonymous"
></script>
</body>
</html>