-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
637 lines (585 loc) · 30.5 KB
/
index.html
File metadata and controls
637 lines (585 loc) · 30.5 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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sereni - Find Your Calm Through Breath</title>
<meta name="description" content="Transform your well-being with science-backed breathing techniques. Beautiful visuals, customizable sessions, and engaging progression system." />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://serenibreath.netlify.app/" />
<meta property="og:title" content="Sereni - Find Your Calm Through Breath" />
<meta property="og:description" content="Transform your well-being with science-backed breathing techniques. Beautiful visuals, customizable sessions, and engaging progression system." />
<meta property="og:image" content="https://serenibreath.netlify.app/assets/screenshots/hero.png" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Sereni - Find Your Calm Through Breath" />
<meta name="twitter:description" content="Transform your well-being with science-backed breathing techniques. Beautiful visuals, customizable sessions, and engaging progression system." />
<meta name="twitter:image" content="https://serenibreath.netlify.app/assets/screenshots/hero.png" />
<!-- Additional Meta -->
<meta name="keywords" content="breathing exercises, meditation app, mindfulness, anxiety relief, stress reduction, breathing techniques, wellness app, mental health" />
<meta name="author" content="Sereni" />
<meta name="theme-color" content="#0f172a" />
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GVEHFCJ3E8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GVEHFCJ3E8');
</script>
<script src="https://cdn.tailwindcss.com"></script>
<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=Outfit:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Outfit', sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: #e2e8f0;
}
.gradient-text {
background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.feature-card {
background: rgba(30, 41, 59, 0.5);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.feature-card:hover {
background: rgba(30, 41, 59, 0.8);
border-color: rgba(56, 189, 248, 0.3);
transform: translateY(-4px);
}
.hero-glow {
box-shadow: 0 0 60px rgba(56, 189, 248, 0.3);
}
.screenshot-container {
perspective: 1000px;
}
.screenshot-card {
transform-style: preserve-3d;
transition: transform 0.3s ease;
}
.screenshot-card:hover {
transform: rotateY(5deg) rotateX(2deg);
}
</style>
</head>
<body class="min-h-screen">
<!-- Hero Section -->
<div class="container mx-auto px-4 py-16 md:py-24">
<div class="text-center max-w-4xl mx-auto">
<h1 class="text-6xl md:text-8xl font-light mb-6">
<span class="gradient-text">Sereni</span>
</h1>
<p class="text-2xl md:text-3xl font-light text-slate-300 mb-8">
Find Your Calm Through Breath
</p>
<p class="text-lg text-slate-400 mb-12 max-w-2xl mx-auto leading-relaxed">
Transform your well-being with science-backed breathing techniques,
stunning visuals, and an engaging progression system that makes
mindfulness a rewarding daily practice.
</p>
<!-- Email Signup Form -->
<div class="max-w-md mx-auto mb-6">
<form id="signup-form" class="flex flex-col sm:flex-row gap-3">
<input
type="email"
id="email-input"
placeholder="Enter your email"
required
class="flex-1 px-4 py-3 rounded-lg bg-slate-800 border border-slate-600 text-white placeholder-slate-400 focus:outline-none focus:border-sky-500 focus:ring-2 focus:ring-sky-500/20"
/>
<button
type="submit"
class="bg-gradient-to-r from-sky-500 to-indigo-600 hover:from-sky-400 hover:to-indigo-500 text-white font-semibold px-6 py-3 rounded-lg transition-all duration-300 hero-glow whitespace-nowrap"
>
Get Early Access
</button>
</form>
<div id="signup-message" class="mt-3 text-sm text-center hidden"></div>
<p id="signup-subtext" class="text-xs text-slate-500 mt-3">
Join the waitlist for Android launch • Coming soon to iOS
</p>
</div>
</div>
</div>
<!-- Video Demo Section -->
<div class="container mx-auto px-4 py-16">
<h2 class="text-4xl font-light text-center mb-4">
<span class="gradient-text">See It In Action</span>
</h2>
<p class="text-center text-slate-400 mb-12 max-w-2xl mx-auto">
Watch how Sereni guides you through a peaceful breathing session with stunning visuals and intuitive controls.
</p>
<div class="grid md:grid-cols-2 gap-8 max-w-6xl mx-auto">
<!-- Session Demo Video -->
<div class="feature-card rounded-2xl p-4 overflow-hidden">
<video
controls
preload="metadata"
poster="assets/screenshots/hero.png"
class="w-full rounded-xl"
>
<source src="assets/recordings/sereni-session-46s.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="text-center mt-4">
<h3 class="text-lg font-semibold text-sky-300 mb-1">Breathing Session Demo</h3>
<p class="text-sm text-slate-400">46 seconds • Experience a complete breathing cycle</p>
</div>
</div>
<!-- Settings Tour Video -->
<div class="feature-card rounded-2xl p-4 overflow-hidden">
<video
controls
preload="metadata"
poster="assets/screenshots/theme-selection.png"
class="w-full rounded-xl"
>
<source src="assets/recordings/sereni-settings-tour-1m31s.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="text-center mt-4">
<h3 class="text-lg font-semibold text-purple-300 mb-1">Full Settings Tour</h3>
<p class="text-sm text-slate-400">1 min 31 sec • Explore customization options</p>
</div>
</div>
</div>
</div>
<!-- Screenshots Gallery -->
<div class="container mx-auto px-4 py-16">
<h2 class="text-4xl font-light text-center mb-4">
<span class="gradient-text">Experience the Beauty</span>
</h2>
<p class="text-center text-slate-400 mb-12 max-w-2xl mx-auto">
Immersive visuals and intuitive interface make every session a peaceful escape.
</p>
<!-- Featured Hero Screenshot -->
<div class="max-w-md mx-auto mb-16 screenshot-container">
<div class="screenshot-card feature-card rounded-2xl p-3 overflow-hidden hero-glow">
<img
src="assets/screenshots/hero.png"
alt="Sereni Breathing Session - Beautiful cosmic theme with guide shape"
class="w-full rounded-xl shadow-2xl"
loading="lazy"
/>
<p class="text-center text-sm text-slate-400 mt-4">Active breathing session with cosmic theme</p>
</div>
</div>
<!-- Main Screenshot Grid -->
<div class="grid md:grid-cols-3 gap-6 max-w-6xl mx-auto screenshot-container mb-12">
<!-- Session Screenshots -->
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/session-breath-in.png"
alt="Breathing Session - Inhale Phase"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Inhale phase with visual guide</p>
</div>
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/session-ocean.png"
alt="Ocean Theme Breathing Session"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Ocean theme with particles</p>
</div>
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/session-complete-waterfall.png"
alt="Session Complete Summary"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Session complete with stats</p>
</div>
</div>
<!-- Customization Screenshots -->
<h3 class="text-2xl font-light text-center mb-8 mt-16">
<span class="gradient-text">Endless Customization</span>
</h3>
<div class="grid md:grid-cols-3 gap-6 max-w-6xl mx-auto screenshot-container mb-12">
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/practice-custom-ocean.png"
alt="Breathing Pattern Selection"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Choose breathing patterns</p>
</div>
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/theme-selection.png"
alt="Visual Theme Gallery"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">21 stunning visual themes</p>
</div>
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/visual-effects-ocean.png"
alt="Visual Effects Settings"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Mix up to 3 visual effects</p>
</div>
</div>
<!-- Sound & Progress Screenshots -->
<div class="grid md:grid-cols-3 gap-6 max-w-6xl mx-auto screenshot-container">
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/sound-mixer.png"
alt="Advanced Sound Mixer"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Layer sounds & music</p>
</div>
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/content-unlocked.png"
alt="Content Unlocked Notification"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Unlock new content</p>
</div>
<div class="screenshot-card feature-card rounded-2xl p-2 overflow-hidden">
<img
src="assets/screenshots/profile-ocean.png"
alt="Profile & Statistics"
class="w-full rounded-xl"
loading="lazy"
/>
<p class="text-center text-xs text-slate-400 mt-2 px-2 pb-2">Track your progress</p>
</div>
</div>
</div>
<!-- Features Grid -->
<div class="container mx-auto px-4 py-16">
<h2 class="text-4xl font-light text-center mb-4">
<span class="gradient-text">Everything You Need</span>
</h2>
<p class="text-center text-slate-400 mb-12 max-w-2xl mx-auto">
A complete mindfulness toolkit designed to make breathing exercises engaging,
beautiful, and effortlessly customizable.
</p>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto">
<!-- Breathing Patterns -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">🫁</div>
<h3 class="text-xl font-semibold mb-3 text-sky-300">6 Breathing Patterns</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
From Square Breathing to Dr. Weil's 4-7-8 technique, plus custom pattern creator.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Square Breathing (Balance)</li>
<li>• Relaxing (4-7-8)</li>
<li>• Calming (Anxiety Relief)</li>
<li>• Energizing</li>
<li>• Coherence (HRV)</li>
<li>• Custom Creator</li>
</ul>
</div>
<!-- Visual Themes -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">🌌</div>
<h3 class="text-xl font-semibold mb-3 text-purple-300">21 Visual Themes</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Stunning environments from cosmic voids to alpine peaks. Unlock new themes as you practice.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Cosmic Void, Nebula, Aurora</li>
<li>• Ocean, Lake, Waterfall</li>
<li>• Forest, Mountain, Meadow</li>
<li>• Zen Garden, Temple</li>
<li>• Desert, Canyon, Ice Cave</li>
</ul>
</div>
<!-- Guide Shapes -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">⭕</div>
<h3 class="text-xl font-semibold mb-3 text-indigo-300">10 Guide Shapes</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Choose from circles to lotus flowers. Each shape brings its own aesthetic.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Circle, Square, Diamond</li>
<li>• Lotus, Star, Hexagon</li>
<li>• Octagon, Triangle</li>
<li>• Shield, Organic Blob</li>
</ul>
</div>
<!-- Visual Effects -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">✨</div>
<h3 class="text-xl font-semibold mb-3 text-sky-300">10 Visual Effects</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Add particles, ripples, glows, and more. Mix up to 3 effects for unique visuals.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Particles, Pulse Ripples</li>
<li>• Glow Aura, Ring Halo</li>
<li>• Light Rays, Crystal Prism</li>
<li>• Harmonic Echo, Shimmer</li>
<li>• Chromatic, Energy Scan</li>
</ul>
</div>
<!-- Sound Mixer -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">🎵</div>
<h3 class="text-xl font-semibold mb-3 text-purple-300">Advanced Sound Mixer</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Layer ambient sounds with music. Real-time preview and fine-tune each track.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• 15 Meditation Music Tracks</li>
<li>• Cosmic Drone, Noise Types</li>
<li>• Rain, Stream, Waves</li>
<li>• Wind, Fire, Nature Sounds</li>
<li>• 4 Vocal Cue Styles</li>
</ul>
</div>
<!-- Progression System -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">🎮</div>
<h3 class="text-xl font-semibold mb-3 text-indigo-300">Roguelite Progression</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Unlock new patterns, themes, shapes, and effects as you complete sessions. One unlock per session.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Sequential unlocking</li>
<li>• Clear progress indicators</li>
<li>• Rewarding milestones</li>
<li>• Keep you motivated daily</li>
</ul>
</div>
<!-- Profile System -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">👤</div>
<h3 class="text-xl font-semibold mb-3 text-sky-300">Profile & Stats</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Track your journey with detailed statistics, streaks, and personalized insights.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Total sessions & minutes</li>
<li>• Current & longest streaks</li>
<li>• Favorite patterns & themes</li>
<li>• Complete session history</li>
<li>• Weekly & monthly stats</li>
</ul>
</div>
<!-- Customization -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">⚙️</div>
<h3 class="text-xl font-semibold mb-3 text-purple-300">Full Customization</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
Two-step configuration flow lets you review and adjust every detail before starting.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• Session duration (1-60 min)</li>
<li>• Visual theme preview</li>
<li>• Guide shape selection</li>
<li>• Effect combinations</li>
<li>• Sound mixer presets</li>
</ul>
</div>
<!-- Accessibility -->
<div class="feature-card rounded-2xl p-6">
<div class="text-4xl mb-4">♿</div>
<h3 class="text-xl font-semibold mb-3 text-indigo-300">Accessibility First</h3>
<p class="text-slate-400 text-sm leading-relaxed mb-3">
High contrast mode, large touch targets, and optional voice guidance ensure everyone can practice.
</p>
<ul class="text-xs text-slate-500 space-y-1">
<li>• High contrast mode</li>
<li>• Voice cues (4 styles)</li>
<li>• Large, clear interface</li>
<li>• Screen reader support</li>
</ul>
</div>
</div>
</div>
<!-- Science Section -->
<div class="container mx-auto px-4 py-16">
<div class="max-w-4xl mx-auto text-center">
<h2 class="text-4xl font-light mb-6">
<span class="gradient-text">Science-Backed Benefits</span>
</h2>
<p class="text-lg text-slate-300 leading-relaxed mb-8">
Controlled breathing isn't just relaxing—it's transformative. Deep, slow breathing
triggers your body's relaxation response, activating the parasympathetic nervous system
and countering stress. Research shows regular practice can reduce anxiety, improve focus,
stabilize blood pressure, and enhance overall well-being.
</p>
<div class="grid md:grid-cols-3 gap-6 mt-12">
<div class="feature-card rounded-xl p-6 text-center">
<div class="text-5xl mb-2">😌</div>
<h3 class="text-xl font-semibold mb-2 text-sky-300">Reduce Stress</h3>
<p class="text-sm text-slate-400">Lower cortisol and calm your nervous system</p>
</div>
<div class="feature-card rounded-xl p-6 text-center">
<div class="text-5xl mb-2">🧠</div>
<h3 class="text-xl font-semibold mb-2 text-purple-300">Improve Focus</h3>
<p class="text-sm text-slate-400">Enhance mental clarity and concentration</p>
</div>
<div class="feature-card rounded-xl p-6 text-center">
<div class="text-5xl mb-2">💤</div>
<h3 class="text-xl font-semibold mb-2 text-indigo-300">Sleep Better</h3>
<p class="text-sm text-slate-400">Fall asleep faster with relaxing techniques</p>
</div>
</div>
</div>
</div>
<!-- How It Works -->
<div class="container mx-auto px-4 py-16">
<div class="max-w-4xl mx-auto">
<h2 class="text-4xl font-light text-center mb-12">
<span class="gradient-text">How It Works</span>
</h2>
<div class="space-y-6">
<div class="flex gap-4 items-start">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-gradient-to-br from-sky-500 to-indigo-600 flex items-center justify-center text-xl font-bold">1</div>
<div>
<h3 class="text-xl font-semibold mb-2 text-sky-300">Choose Your Pattern</h3>
<p class="text-slate-400">Select from 6 breathing techniques, each designed for different goals—balance, relaxation, energy, or calm.</p>
</div>
</div>
<div class="flex gap-4 items-start">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center text-xl font-bold">2</div>
<div>
<h3 class="text-xl font-semibold mb-2 text-purple-300">Customize Your Session</h3>
<p class="text-slate-400">Pick your duration, visual theme, guide shape, effects, and sounds. Preview everything before you start.</p>
</div>
</div>
<div class="flex gap-4 items-start">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xl font-bold">3</div>
<div>
<h3 class="text-xl font-semibold mb-2 text-indigo-300">Breathe & Unlock</h3>
<p class="text-slate-400">Follow the visual guide and optional voice cues. Complete sessions to unlock new content and track your progress.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Final CTA Section -->
<div class="container mx-auto px-4 py-16 pb-24">
<div class="max-w-3xl mx-auto text-center feature-card rounded-2xl p-12">
<h2 class="text-4xl font-light mb-4">
<span class="gradient-text">Ready to Begin?</span>
</h2>
<p class="text-lg text-slate-300 mb-8">
Join the waitlist and be the first to know when Sereni launches.<br>
No account required, all data stored locally on your device.
</p>
<!-- Email Signup Form (duplicate for bottom CTA) -->
<div class="max-w-md mx-auto">
<form id="signup-form-2" class="flex flex-col sm:flex-row gap-3">
<input
type="email"
placeholder="Enter your email"
required
class="flex-1 px-4 py-3 rounded-lg bg-slate-800 border border-slate-600 text-white placeholder-slate-400 focus:outline-none focus:border-sky-500 focus:ring-2 focus:ring-sky-500/20"
/>
<button
type="submit"
class="bg-gradient-to-r from-sky-500 to-indigo-600 hover:from-sky-400 hover:to-indigo-500 text-white font-semibold px-6 py-3 rounded-lg transition-all duration-300 hero-glow whitespace-nowrap"
>
Get Early Access
</button>
</form>
<div id="signup-message-2" class="mt-3 text-sm text-center hidden"></div>
</div>
<p class="text-sm text-slate-500 mt-6">
Available on Android • Coming soon to iOS
</p>
</div>
</div>
<!-- Footer -->
<div class="border-t border-white/10 py-8">
<div class="container mx-auto px-4 text-center">
<div class="mb-4">
<a href="privacy.html" class="text-sky-400 hover:text-sky-300 mx-3 text-sm">Privacy Policy</a>
<a href="terms.html" class="text-sky-400 hover:text-sky-300 mx-3 text-sm">Terms of Service</a>
</div>
<p class="text-slate-500 text-sm">© 2025 Sereni. Built with care for your well-being.</p>
<p class="text-slate-600 text-xs mt-2">Sereni was created with the help of generative AI.</p>
</div>
</div>
<!-- Form Submission Script -->
<script>
// Handle form submissions
async function handleSubmit(event) {
event.preventDefault();
const form = event.target;
const emailInput = form.querySelector('input[type="email"]');
const email = emailInput.value;
const submitButton = form.querySelector('button[type="submit"]');
const messageDiv = document.getElementById(form.id === 'signup-form' ? 'signup-message' : 'signup-message-2');
// Determine which form submitted
const source = form.id === 'signup-form' ? 'hero-cta' : 'bottom-cta';
// Hide any previous messages
messageDiv.classList.add('hidden');
// Disable button and show loading state
const originalButtonText = submitButton.textContent;
submitButton.disabled = true;
submitButton.textContent = 'Submitting...';
try {
console.log('Submitting email:', email, 'from:', source);
// Send to Google Sheets via Apps Script
// Note: Using 'no-cors' mode - request will succeed but we can't read response
await fetch('https://script.google.com/macros/s/AKfycbwcSoFxHvt1h5DLB3EjrJ0aNfoebSsaehgK5DYaCmZsUNvIj9kQZwP1PmnymYbZtt1IFA/exec', {
method: 'POST',
mode: 'no-cors', // Required for Google Apps Script CORS
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ email, source })
});
console.log('Email submitted successfully');
// Show success message
submitButton.textContent = '✓ Subscribed!';
submitButton.classList.remove('from-sky-500', 'to-indigo-600', 'hover:from-sky-400', 'hover:to-indigo-500');
submitButton.classList.add('bg-green-600', 'hover:bg-green-700');
messageDiv.textContent = `Thanks for signing up! We'll notify you when Sereni launches.`;
messageDiv.classList.remove('hidden', 'text-red-400');
messageDiv.classList.add('text-green-400');
// Hide the subtext on first form
if (form.id === 'signup-form') {
document.getElementById('signup-subtext').classList.add('hidden');
}
form.reset();
// Track with Google Analytics if available
if (typeof gtag !== 'undefined') {
gtag('event', 'signup', {
'event_category': 'engagement',
'event_label': source
});
}
} catch (error) {
console.error('Signup error:', error);
// Show error message
submitButton.disabled = false;
submitButton.textContent = originalButtonText;
messageDiv.textContent = 'Oops! Something went wrong. Please try again or email us at serenidevs@gmail.com';
messageDiv.classList.remove('hidden', 'text-green-400');
messageDiv.classList.add('text-red-400');
}
}
document.getElementById('signup-form').addEventListener('submit', handleSubmit);
document.getElementById('signup-form-2').addEventListener('submit', handleSubmit);
</script>
</body>
</html>