-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnirvanify.html
More file actions
247 lines (227 loc) · 11.2 KB
/
Copy pathnirvanify.html
File metadata and controls
247 lines (227 loc) · 11.2 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Nirvanify - Focus & Flow productivity extension dashboard" />
<title>Nirvanify Dashboard</title>
<!-- Preload critical fonts -->
<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=Poppins:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400&display=swap"
rel="stylesheet"
/>
<!-- Critical CSS -->
<link rel="stylesheet" href="css/variables.css" />
<link rel="stylesheet" href="css/popup.css" />
<!-- Scripts with proper loading strategy -->
<script src="js/global.js" defer></script>
<script src="js/popup.js" defer></script>
</head>
<body>
<div class="dashboard-popup" role="main">
<!-- Application Header -->
<header class="app-header" role="banner">
<div class="brand">
<img
src="assets/images/logo.png"
alt="Nirvanify Logo"
class="logo-img"
width="36"
height="36"
loading="eager"
/>
<h1 class="brand-name">Nirvanify</h1>
</div>
<p class="slogan" aria-label="Application motto">Focus. Achieve. Transcend.</p>
</header>
<hr class="separator" role="separator" aria-hidden="true" />
<!-- Main Application Content -->
<main class="app-content">
<!-- Statistics Overview -->
<section id="stats" class="stats-section" aria-labelledby="stats-heading">
<h2 id="stats-heading" class="sr-only">Statistics Overview</h2>
<article class="stat-card day-streak" role="img" aria-labelledby="day-streak-label">
<p class="stat-value" id="day-streak" aria-live="polite">0</p>
<p class="stat-label" id="day-streak-label">Day Streak</p>
</article>
<article class="stat-card focus-minutes" role="img" aria-labelledby="focus-minutes-label">
<p class="stat-value" id="focus-minutes" aria-live="polite">0</p>
<p class="stat-label" id="focus-minutes-label">Focus Minutes</p>
</article>
<article class="stat-card sites-blocked" role="img" aria-labelledby="sites-blocked-label">
<p class="stat-value" id="sites-blocked" aria-live="polite">0</p>
<p class="stat-label" id="sites-blocked-label">Sites Blocked</p>
</article>
</section>
<!-- Current Session Widget -->
<section id="session" class="session-widget" aria-labelledby="session-heading">
<header class="widget-header">
<h2 class="widget-title" id="session-heading">Current Session</h2>
<p class="session-type" id="session-type" aria-live="polite">Focus</p>
</header>
<div class="timer-container" role="timer" aria-labelledby="timer-display">
<p
class="timer-display"
id="current-timer"
aria-live="polite"
aria-atomic="true"
aria-label="Timer display"
>25:00</p>
<div class="timer-controls" role="group" aria-label="Timer controls">
<button
class="timer-control"
id="start-timer"
aria-label="Start focus session"
type="button"
>
<img
src="assets/images/275_98.svg"
alt=""
aria-hidden="true"
loading="lazy"
/>
</button>
<button
class="timer-control hidden"
id="pause-timer"
aria-label="Pause focus session"
type="button"
>
<img
src="assets/images/275_106.svg"
alt=""
aria-hidden="true"
loading="lazy"
/>
</button>
<button
class="timer-control hidden"
id="reset-timer"
aria-label="Reset timer to initial state"
type="button"
>
<img
src="assets/images/275_82.svg"
alt=""
aria-hidden="true"
loading="lazy"
/>
</button>
</div>
</div>
</section>
<!-- Main Navigation -->
<nav id="navigation" class="main-nav" role="navigation" aria-label="Main navigation">
<ul role="list">
<li role="listitem">
<a
href="index.html#/dashboard"
target="_blank"
rel="noopener noreferrer"
aria-describedby="dashboard-desc"
>
<img
src="assets/images/257_62.svg"
alt=""
class="nav-icon"
aria-hidden="true"
loading="lazy"
/>
<span>Dashboard</span>
<span id="dashboard-desc" class="sr-only">View detailed analytics and insights</span>
</a>
</li>
<li role="listitem">
<a
href="index.html#/blocklist"
target="_blank"
rel="noopener noreferrer"
aria-describedby="blocklist-desc"
>
<img
src="assets/images/257_18.svg"
alt=""
class="nav-icon"
aria-hidden="true"
loading="lazy"
/>
<span>Block List</span>
<span id="blocklist-desc" class="sr-only">Manage blocked websites and distractions</span>
</a>
</li>
<li role="listitem">
<a
href="index.html#/interventions"
target="_blank"
rel="noopener noreferrer"
aria-describedby="interventions-desc"
>
<img
src="assets/images/257_26.svg"
alt=""
class="nav-icon"
aria-hidden="true"
loading="lazy"
/>
<span>Interventions</span>
<span id="challenges-desc" class="sr-only">Complete focus interventions and brain teasers</span>
</a>
</li>
<li role="listitem">
<a
href="index.html#/sessions"
target="_blank"
rel="noopener noreferrer"
aria-describedby="sessions-desc"
>
<img
src="assets/images/257_34.svg"
alt=""
class="nav-icon"
aria-hidden="true"
loading="lazy"
/>
<span>Study Sessions</span>
<span id="timer-desc" class="sr-only">Configure focus and break durations</span>
</a>
</li>
<li role="listitem">
<a
href="/index.html#/settings"
target="_blank"
rel="noopener noreferrer"
aria-describedby="settings-desc"
>
<img
src="assets/images/257_42.svg"
alt=""
class="nav-icon"
aria-hidden="true"
loading="lazy"
/>
<span>Settings</span>
<span id="settings-desc" class="sr-only">Customize themes, notifications, and preferences</span>
</a>
</li>
</ul>
</nav>
</main>
</div>
<!-- Screen reader only styles -->
<style>
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
</style>
</body>
</html>