-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonboarding.html
More file actions
351 lines (319 loc) · 18.3 KB
/
onboarding.html
File metadata and controls
351 lines (319 loc) · 18.3 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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Stash</title>
<link rel="icon" type="image/png" href="icons/icon32.png">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="onboarding.css">
</head>
<body>
<div class="wizard-container">
<!-- Sidebar -->
<div class="wizard-sidebar">
<div class="brand">
<svg class="brand-icon" width="28" height="28" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 10C3 8.34315 4.34315 7 6 7H9C9.55228 7 10 7.44772 10 8V9.5C10 10.3284 10.6716 11 11.5 11H12.5C13.3284 11 14 10.3284 14 9.5V8C14 7.44772 14.4477 7 15 7H18C19.6569 7 21 8.34315 21 10V18C21 19.1046 19.6569 20 18 20H6C4.34315 20 3 18.6569 3 17V10Z" fill="currentColor" />
<rect x="10.5" y="4.5" width="3" height="6" rx="1.5" fill="var(--accent)" />
</svg>
<span class="brand-name">Stash</span>
</div>
<div class="steps-nav">
<div class="step-indicator active" data-step="1">
<div class="step-number">1</div>
<span class="step-label" data-i18n="stepWelcome">Welcome</span>
</div>
<div class="step-indicator" data-step="2">
<div class="step-number">2</div>
<span class="step-label" data-i18n="stepFeatures">Features</span>
</div>
<div class="step-indicator" data-step="3">
<div class="step-number">3</div>
<span class="step-label" data-i18n="stepCustomize">Customize</span>
</div>
<div class="step-indicator" data-step="4">
<div class="step-number">4</div>
<span class="step-label" data-i18n="stepReady">Ready</span>
</div>
</div>
<div style="font-size: 11px; color: var(--text-muted); opacity: 0.5;">
v1.0.0
</div>
</div>
<!-- Content -->
<div class="wizard-content">
<!-- STEP 1: Welcome -->
<div class="step-panel active" id="panel-1">
<div class="step-header">
<h1 class="step-title" data-i18n="welcomeTitle">Welcome to Stash</h1>
<p class="step-subtitle" data-i18n="welcomeSubtitle">Let's set up your experience.</p>
</div>
<div class="step-body">
<div class="lang-grid">
<div class="lang-card active" data-type="language" data-value="en">
<span class="lang-flag">🇺🇸</span>
<span class="lang-name">English</span>
</div>
<div class="lang-card" data-type="language" data-value="tr">
<span class="lang-flag">🇹🇷</span>
<span class="lang-name">Türkçe</span>
</div>
</div>
</div>
</div>
<!-- STEP 2: Features (Deck Layout) -->
<div class="step-panel" id="panel-2">
<div class="step-header">
<h1 class="step-title" data-i18n="featuresTitle">What can Stash do?</h1>
<p class="step-subtitle" data-i18n="featuresSubtitle">Discover how Stash helps you stay organized.</p>
</div>
<div class="step-body">
<div class="feature-deck">
<!-- Feature 1 -->
<div class="feature-card main-feature">
<div class="feature-visual">
<!-- Abstract Browser Window -->
<svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<rect x="2" y="4" width="20" height="16" rx="2" />
<line x1="2" y1="9" x2="22" y2="9" />
<path d="M12 13l3 3-3 3" />
<path d="M9 16h6" />
</svg>
</div>
<h4 data-i18n="feature1Title">One-Click Save</h4>
<p data-i18n="feature1Desc">Instantly save all your open tabs into a clean, organized group.</p>
</div>
<!-- Feature 2 -->
<div class="feature-card">
<div class="feature-visual">
<!-- Abstract List -->
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<rect x="3" y="5" width="18" height="14" rx="2" />
<line x1="7" y1="10" x2="17" y2="10" />
<line x1="7" y1="14" x2="13" y2="14" />
</svg>
</div>
<h4 data-i18n="feature2Title">Organize Groups</h4>
<p data-i18n="feature2Desc">Name your groups, search through them, and restore anytime.</p>
</div>
<!-- Feature 3 -->
<div class="feature-card">
<div class="feature-visual">
<!-- Abstract Clock/Refresh -->
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<path d="M12 21a9 9 0 1 0-9-9c0 1.48.35 2.89.95 4.13" />
<path d="M12 7v5l4 2" />
</svg>
</div>
<h4 data-i18n="feature3Title">Auto Save</h4>
<p data-i18n="feature3Desc">Never lose your work with background auto-save capability.</p>
</div>
</div>
</div>
</div>
<!-- STEP 3: Customize (Compact & No Scroll) -->
<div class="step-panel" id="panel-3">
<div class="step-header">
<h1 class="step-title" data-i18n="customizeTitle">Make it yours</h1>
<p class="step-subtitle" data-i18n="customizeSubtitle">Customize the look and feel.</p>
</div>
<div class="step-body no-scroll">
<div class="section-title" data-i18n="themeLabel">THEME</div>
<div class="theme-selector">
<div class="theme-option" data-type="theme" data-value="light">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>
<span data-i18n="themeLight">Light</span>
</div>
<div class="theme-option" data-type="theme" data-value="dark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
<span data-i18n="themeDark">Dark</span>
</div>
<div class="theme-option active" data-type="theme" data-value="system">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
<span data-i18n="themeSystem">System</span>
</div>
</div>
<div class="section-title" data-i18n="preferencesLabel">PREFERENCES</div>
<div class="prefs-stack">
<div class="pref-row active" id="toggle-closeAfterSave">
<div class="pref-info">
<span class="pref-title" data-i18n="closeAfterSave">Close tabs after saving</span>
<span class="pref-desc" data-i18n="closeAfterSaveDesc">Keep browser clean automatically</span>
</div>
<div class="checkbox-circle">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
</div>
</div>
<div class="pref-row" id="toggle-includePinned">
<div class="pref-info">
<span class="pref-title" data-i18n="includePinned">Include pinned tabs</span>
<span class="pref-desc" data-i18n="includePinnedDesc">Save pinned tabs when stashing</span>
</div>
<div class="checkbox-circle">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
</div>
</div>
<div class="pref-row" id="toggle-autoSave">
<div class="pref-info">
<span class="pref-title" data-i18n="autoSave">Auto Save</span>
<span class="pref-desc" data-i18n="autoSaveDesc">Backup tabs every 30 minutes</span>
</div>
<div class="checkbox-circle">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
</div>
</div>
</div>
</div>
</div>
<!-- STEP 4: Ready -->
<div class="step-panel" id="panel-4">
<div class="ready-container">
<div class="success-icon-wrapper">
<svg class="success-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
<polyline points="22 4 12 14.01 9 11.01"></polyline>
</svg>
</div>
<h1 class="ready-title" data-i18n="allDone">All Done!</h1>
<p class="ready-subtitle" data-i18n="allDoneDesc">
Stash is ready to keep your browser organized.
</p>
<!-- About Section -->
<div class="final-about-card">
<div class="author-row">
<span class="crafted-label" data-i18n="craftedBy">Crafted by</span>
<a href="https://erencakar.com" target="_blank" class="author-link">
Eren Çakar
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
</a>
</div>
<p class="os-text" data-i18n="openSourceMsg">This project is open source.</p>
<a href="https://github.com/sudoeren/stash" target="_blank" class="source-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
<span data-i18n="sourceCode">Source Code</span>
</a>
</div>
</div>
<style>
.ready-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 0 20px;
text-align: center;
}
.success-icon-wrapper {
width: 80px;
height: 80px;
background: var(--bg-tertiary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
border: 1px solid var(--border);
box-shadow: 0 0 0 8px var(--bg-secondary);
}
.success-icon {
width: 40px;
height: 40px;
color: var(--success, #22c55e);
}
.ready-title {
font-size: 24px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 8px;
letter-spacing: -0.5px;
}
.ready-subtitle {
font-size: 15px;
color: var(--text-secondary);
margin-bottom: 40px;
max-width: 300px;
line-height: 1.5;
}
.final-about-card {
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px;
width: 100%;
max-width: 320px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.author-row {
display: flex;
align-items: center;
gap: 6px;
font-size: 14px;
}
.crafted-label {
color: var(--text-muted);
}
.author-link {
color: var(--text-primary);
text-decoration: none;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
transition: color 0.2s;
}
.author-link:hover {
color: var(--accent);
}
.link-icon {
width: 12px;
height: 12px;
opacity: 0.7;
}
.os-text {
font-size: 13px;
color: var(--text-secondary);
}
.source-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-primary);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: all 0.2s;
margin-top: 4px;
}
.source-btn:hover {
background: var(--text-primary);
color: var(--bg-primary);
border-color: var(--text-primary);
}
</style>
</div>
<!-- Footer -->
<div class="wizard-footer">
<button class="btn btn-ghost" id="backBtn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5"/><path d="M12 19l-7-7 7-7"/></svg>
<span data-i18n="back">Back</span>
</button>
<button class="btn btn-primary" id="nextBtn">
<span data-i18n="next">Continue</span>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5l7 7-7 7"/></svg>
</button>
</div>
</div>
</div>
<script src="i18n.js"></script>
<script src="onboarding.js"></script>
</body>
</html>