-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonboarding.html
More file actions
251 lines (243 loc) · 9.27 KB
/
onboarding.html
File metadata and controls
251 lines (243 loc) · 9.27 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
248
249
250
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title id="pageTitle">Welcome to Drowzy</title>
<style>
:root {
--bg-base: #0f0b1a;
--bg-surface: #1a1528;
--bg-elevated: #241e35;
--color-text: #e8e2f4;
--color-text-secondary: #9b8fad;
--color-text-tertiary: #6b5f7e;
--color-accent: #a78bfa;
--color-accent-hover: #c4b5fd;
--border-subtle: rgba(255, 255, 255, 0.06);
--radius-sm: 6px;
--radius-md: 10px;
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
--transition-default: 200ms ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg-base);
color: var(--color-text);
font-family: var(--font-sans);
line-height: 1.7;
min-height: 100vh;
display: flex;
justify-content: center;
padding: 48px 20px;
}
.container {
max-width: 560px;
width: 100%;
animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.logo {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 32px;
}
.logo svg { flex-shrink: 0; color: var(--color-accent); }
.logo-text {
font-size: 32px;
font-weight: 800;
background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
h2 {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--color-text-tertiary);
margin: 36px 0 16px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border-subtle);
font-weight: 600;
}
.intro {
font-size: 16px;
color: var(--color-text-secondary);
margin-bottom: 8px;
}
.features {
list-style: none;
display: flex;
flex-direction: column;
gap: 14px;
}
.features li {
display: flex;
align-items: flex-start;
gap: 12px;
font-size: 14.5px;
color: var(--color-text-secondary);
}
.features .feat-icon {
flex-shrink: 0;
width: 28px;
display: flex;
justify-content: center;
color: var(--color-accent);
padding-top: 2px;
}
.features strong { color: var(--color-text); }
.shortcuts {
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}
.shortcuts li {
font-size: 14px;
color: var(--color-text-secondary);
display: flex;
align-items: center;
gap: 8px;
}
.li-dot {
color: var(--color-accent);
font-size: 18px;
flex-shrink: 0;
}
kbd {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
padding: 1px 6px;
font-family: var(--font-sans);
font-size: 12px;
color: var(--color-accent);
}
.tips {
margin-top: 28px;
padding: 16px 18px;
background: var(--bg-surface);
border-radius: var(--radius-md);
border-left: 2px solid var(--color-accent);
}
.tip {
font-size: 13.5px;
color: var(--color-text-secondary);
line-height: 1.6;
}
.tip + .tip { margin-top: 8px; }
.tip strong { color: var(--color-text); }
.tip a {
color: var(--color-accent);
text-decoration: none;
font-weight: 500;
}
.tip a:hover { color: var(--color-accent-hover); }
.cta-section {
margin-top: 40px;
text-align: center;
}
.cta-section p {
color: var(--color-text-tertiary);
font-size: 14px;
margin-bottom: 16px;
}
.cta-btn {
display: inline-block;
background: var(--color-accent);
color: var(--bg-base);
font-family: var(--font-sans);
font-size: 15px;
font-weight: 600;
padding: 12px 32px;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: background var(--transition-default);
}
.cta-btn:hover { background: var(--color-accent-hover); }
.cta-btn:active { transform: scale(0.98); }
@media (prefers-color-scheme: light) {
:root {
--bg-base: #f8f6fb;
--bg-surface: #ffffff;
--bg-elevated: #f0edf5;
--color-text: #1a1525;
--color-text-secondary: #5c5470;
--color-text-tertiary: #8a819c;
--color-accent: #7c3aed;
--color-accent-hover: #6d28d9;
--border-subtle: rgba(0, 0, 0, 0.08);
}
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 1ms !important;
animation-delay: 0ms !important;
transition-duration: 1ms !important;
}
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" aria-hidden="true">
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" fill="currentColor" opacity="0.9"/>
</svg>
<span class="logo-text">Drowzy</span>
</div>
<p class="intro" data-i18n-html="onboardingIntro">Drowzy saves memory by putting inactive tabs to sleep. Your tabs are always safe -- we use Chrome's native discard API, so they survive even if you uninstall Drowzy.</p>
<h2 data-i18n="howItWorks">How it works</h2>
<ul class="features">
<li>
<span class="feat-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
</span>
<span data-i18n-html="featureAutoSuspend"><strong>Tabs idle for 30 minutes</strong> are automatically suspended</span>
</li>
<li>
<span class="feat-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>
</span>
<span data-i18n-html="featureZeroRam"><strong>Suspended tabs use zero RAM</strong> but stay in your tab bar</span>
</li>
<li>
<span class="feat-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polygon points="10 8 16 12 10 16 10 8"/></svg>
</span>
<span data-i18n-html="featureClickToWake"><strong>Click any suspended tab</strong> to instantly wake it up</span>
</li>
<li>
<span class="feat-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>
</span>
<span data-i18n-html="featureProtected"><strong>Active, pinned, and audio tabs</strong> are never touched</span>
</li>
</ul>
<h2 data-i18n="quickActions">Quick actions</h2>
<ul class="shortcuts">
<li><span class="li-dot">•</span><span data-i18n-html="actionClickIcon">Click the <strong>Drowzy icon</strong> in the toolbar to see all your tabs</span></li>
<li><span class="li-dot">•</span><span data-i18n-html="actionAltS">Press <kbd>Alt+S</kbd> to suspend the current tab</span></li>
<li><span class="li-dot">•</span><span data-i18n-html="actionAltShiftS">Press <kbd>Alt+Shift+S</kbd> to suspend all other tabs</span></li>
<li><span class="li-dot">•</span><span data-i18n-html="actionAltW">Press <kbd>Alt+W</kbd> to wake all suspended tabs</span></li>
<li><span class="li-dot">•</span><span data-i18n-html="actionRightClick">Right-click on any page for quick suspend options</span></li>
</ul>
<div class="tips">
<p class="tip" data-i18n-html="onboardingPinTip"><strong>Tip:</strong> Click the puzzle icon in your Chrome toolbar to pin Drowzy for one-click access.</p>
<p class="tip" data-i18n-html="onboardingTimerTip"><strong>Suspending tabs you still want?</strong> Open Drowzy → Settings to bump the 30-minute timer up, or add the site to your whitelist with one click.</p>
<p class="tip" data-i18n-html="onboardingFormsTip"><strong>Filling out a form?</strong> Enable "Protect tabs with forms" in Settings to keep tabs with unsaved input from being suspended.</p>
</div>
<div class="cta-section">
<p data-i18n="onboardingCta">Drowzy is now running. Open it from your toolbar and hit "Suspend Others" to try it out.</p>
<button class="cta-btn" id="btnClose" data-i18n="onboardingBtn">Got it, let's go</button>
</div>
</div>
<script src="onboarding.js"></script>
</body>
</html>