-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html
More file actions
491 lines (448 loc) · 28.6 KB
/
index.html
File metadata and controls
491 lines (448 loc) · 28.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Immich Gallery for Apple TV</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
animation: {
'stack-in-1': 'stackIn 0.8s ease-out 0.2s forwards',
'stack-in-2': 'stackIn 0.8s ease-out 0.4s forwards',
'stack-in-3': 'stackIn 0.8s ease-out 0.6s forwards',
},
keyframes: {
stackIn: {
'0%': {
opacity: '0',
transform: 'translateY(100px) rotate(5deg) scale(0.8)',
filter: 'blur(4px)'
},
'100%': {
opacity: '1',
transform: 'translateY(0) rotate(0deg) scale(1)',
filter: 'blur(0px)'
}
}
}
}
}
}
</script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
</style>
</head>
<body class="bg-gray-900 text-white overflow-x-hidden">
<!-- Header Section -->
<header class="bg-gray-900 backdrop-blur-xl border-b border-gray-800 sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 py-4">
<div class="flex items-center justify-between flex-wrap gap-4">
<div class="flex items-center gap-4">
<?xml version="1.0" encoding="UTF-8"?>
<svg class="w-10 h-6" viewBox="0 0 640 440" xmlns="http://www.w3.org/2000/svg" role="img"
aria-labelledby="title desc">
<title>Immich Gallery – Square Edges</title>
<desc>
Teal card with straight edges and layered mountains.
</desc>
<defs>
<filter id="softDrop" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur in="SourceAlpha" stdDeviation="18" result="blur" />
<feOffset dy="10" result="off" />
<feColorMatrix in="off" type="matrix"
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" result="shadow" />
<feMerge>
<feMergeNode in="shadow" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<linearGradient id="skyGrad" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#18C2C9" />
<stop offset="100%" stop-color="#7DE6DD" />
</linearGradient>
<radialGradient id="sunGrad" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#FFF7B3" />
<stop offset="40%" stop-color="#FFE988" />
<stop offset="100%" stop-color="#FFD15C" />
</radialGradient>
<linearGradient id="playGrad" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#FF6A5E" />
<stop offset="100%" stop-color="#FF9A5A" />
</linearGradient>
<!--Warm neutral mountain gradients-->
<linearGradient id="mountainBack" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#E2E5EC" />
<stop offset="100%" stop-color="#C2CAD8" />
</linearGradient>
<linearGradient id="mountainMid" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#C8CFDC" />
<stop offset="100%" stop-color="#A2ACBD" />
</linearGradient>
<linearGradient id="mountainFront" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#98A1B2" />
<stop offset="100%" stop-color="#747F93" />
</linearGradient>
</defs>
<!--Card-->
<g id="card" filter="url(#softDrop)">
<rect x="0" y="0" width="640" height="440" fill="url(#skyGrad)" />
<rect x="0.5" y="0.5" width="639" height="439" fill="none" stroke="#E6E6EE" />
</g>
<!--Art contents-->
<g id="art">
<!--Sun-->
<circle cx="330" cy="220" r="70" fill="url(#sunGrad)" opacity="0.95" />
<!--Mountains-->
<path d="M60,370 L240,210 L400,370 Z" fill="url(#mountainBack)" />
<path d="M140,370 L360,165 L560,370 Z" fill="url(#mountainMid)" />
<path d="M280,370 L480,240 L600,370 Z" fill="url(#mountainFront)" />
<!--Baseline-->
<rect x="60" y="370" width="540" height="10" fill="#DFF2F2" />
<!--Play badge-->
<g id="playBadge" transform="translate(558, 324) scale(0.6)">
<circle cx="0" cy="0" r="76" fill="url(#playGrad)" />
<polygon points="-18,-26 32,0 -18,26" fill="#FFFFFF" opacity="0.96" />
<ellipse cx="-16" cy="-34" rx="34" ry="14" fill="#FFFFFF" opacity="0.18" />
</g>
<!--Label-->
<g id="label" transform="translate(200, 100)">
<text x="0" y="0" font-family="Inter, Helvetica, Arial, sans-serif" font-size="36"
font-weight="600" fill="#2A2A2A" opacity="0.85">
Immich Gallery
</text>
</g>
</g>
</svg>
<h1 class="text-2xl font-bold text-white">Immich Gallery</h1>
</div>
<div class="flex gap-2 flex-wrap">
<img src="https://github.com/mensadilabs/Immich-Gallery/actions/workflows/objective-c-xcode.yml/badge.svg?branch=main"
alt="Build Status" class="h-5">
<img src="https://img.shields.io/badge/platform-TvOS-blue" alt="Platform" class="h-5">
<img src="https://img.shields.io/github/languages/top/mensadilabs/Immich-Gallery" alt="Language"
class="h-5">
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="bg-black py-20">
<div class="max-w-7xl mx-auto px-4 text-center">
<h2 class="text-5xl font-extrabold text-white mb-6 tracking-tight">
Your Photos, Beautiful on Apple TV
</h2>
<p class="text-xl text-gray-300 mb-10 max-w-3xl mx-auto leading-relaxed">
A native Apple TV app for browsing your self-hosted Immich photo library with a stunning, TV-optimized
interface.
</p>
<div class="flex flex-wrap justify-center gap-4 mb-16">
<a href="https://www.buymeacoffee.com/zzpr69dnqtr"
class="inline-flex items-center gap-3 bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 text-white px-8 py-4 rounded-full font-semibold text-lg transition-all duration-300 transform hover:scale-105 hover:shadow-xl hover:bg-gray-700/80">
☕ Buy me a coffee
</a>
<a href="https://apps.apple.com/ca/app/immich-gallery/id6748482378"
class="inline-flex items-center gap-3 bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 hover:bg-gray-700/80 text-white px-8 py-4 rounded-full font-semibold text-lg transition-all duration-300 transform hover:scale-105 hover:shadow-xl">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path
d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z" />
</svg>
Download on App Store
</a>
<a href="https://github.com/mensadilabs/Immich-Gallery"
class="inline-flex items-center gap-3 bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 hover:bg-gray-700/80 text-white px-8 py-4 rounded-full font-semibold text-lg transition-all duration-300 transform hover:scale-105">
<svg width="20" height="20" 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>
View on GitHub
</a>
</div>
<!-- Single Screenshot Display -->
<div class="max-w-2xl mx-auto relative">
<div class="bg-gray-800/60 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-4 shadow-2xl">
<div class="screenshot-container relative h-80 overflow-hidden rounded-2xl">
<img src="./screenshots/login.png" alt="Login"
class="screenshot-slide absolute w-full h-full object-contain opacity-0 transition-opacity duration-1000"
data-index="1">
<img src="./screenshots/TopShelf.png" alt="Main Interface"
class="screenshot-slide absolute w-full h-full object-contain opacity-0 transition-opacity duration-1000"
data-index="0">
<img src="./screenshots/all-photos.png" alt="Photo Grid"
class="screenshot-slide absolute w-full h-full object-contain opacity-0 transition-opacity duration-1000"
data-index="2">
<img src="./screenshots/albums.png" alt="Album Tab"
class="screenshot-slide absolute w-full h-full object-contain opacity-0 transition-opacity duration-1000"
data-index="3">
<img src="./screenshots/Search.png" alt="Search"
class="screenshot-slide absolute w-full h-full object-contain opacity-0 transition-opacity duration-1000"
data-index="4">
<img src="./screenshots/Settings.png" alt="Settings"
class="screenshot-slide absolute w-full h-full object-contain opacity-0 transition-opacity duration-1000"
data-index="5">
</div>
<div class="flex justify-center gap-2 mt-4">
<div class="screenshot-dot w-2 h-2 rounded-full bg-gray-100 cursor-pointer transition-all duration-300"
data-index="0"></div>
<div class="screenshot-dot w-2 h-2 rounded-full bg-gray-600 cursor-pointer transition-all duration-300"
data-index="1"></div>
<div class="screenshot-dot w-2 h-2 rounded-full bg-gray-600 cursor-pointer transition-all duration-300"
data-index="2"></div>
<div class="screenshot-dot w-2 h-2 rounded-full bg-gray-600 cursor-pointer transition-all duration-300"
data-index="3"></div>
<div class="screenshot-dot w-2 h-2 rounded-full bg-gray-600 cursor-pointer transition-all duration-300"
data-index="4"></div>
<div class="screenshot-dot w-2 h-2 rounded-full bg-gray-600 cursor-pointer transition-all duration-300"
data-index="5"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="bg-black py-20">
<div class="max-w-7xl mx-auto px-4">
<h3 class="text-4xl font-bold text-center text-white mb-16">✨ Key Features</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">📷</div>
<h4 class="text-xl font-semibold text-white mb-4">View full photo library, or by people, albums and
tags</h4>
<p class="text-gray-300 leading-relaxed">Browse your entire photo library in a beautiful grid layout
with infinite scrolling and smooth navigation.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">💻</div>
<h4 class="text-xl font-semibold text-white mb-4">Source Available</h4>
<p class="text-gray-300 leading-relaxed">The complete source code is available on Github.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">🔐</div>
<h4 class="text-xl font-semibold text-white mb-4">Login with your API key or password</h4>
<p class="text-gray-300 leading-relaxed">Choose API key if you use SSO</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">🔍</div>
<h4 class="text-xl font-semibold text-white mb-4">Smart Search</h4>
<p class="text-gray-300 leading-relaxed">Intelligent search functionality to quickly find photos by
content, location, or metadata.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">📺</div>
<h4 class="text-xl font-semibold text-white mb-4">Top Shelf Integration</h4>
<p class="text-gray-300 leading-relaxed">Beautiful Apple TV Top Shelf integration showcasing your
latest photos on the home screen.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">⚙️</div>
<h4 class="text-xl font-semibold text-white mb-4">Complete Customization</h4>
<p class="text-gray-300 leading-relaxed">Extensive customization options for interface, slideshow
settings, and user preferences.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">🎬</div>
<h4 class="text-xl font-semibold text-white mb-4">Slideshow Mode</h4>
<p class="text-gray-300 leading-relaxed">Immersive full-screen slideshow with customizable timing
and optional clock overlay.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">👤</div>
<h4 class="text-xl font-semibold text-white mb-4">Multi User Support</h4>
<p class="text-gray-300 leading-relaxed">Support for multiple Immich accounts with seamless
switching between different servers.</p>
</div>
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl hover:transform hover:scale-105 transition-all duration-300 hover:bg-gray-700/80">
<div class="text-4xl mb-4">📁</div>
<h4 class="text-xl font-semibold text-white mb-4">Albums Tab with Shared Albums</h4>
<p class="text-gray-300 leading-relaxed">Access your personal albums and shared albums with
collaborative photo collections.</p>
</div>
</div>
</div>
</section>
<!-- Reviews Cards Section -->
<section class="bg-black py-16">
<div class="max-w-4xl mx-auto px-4">
<div class="flex items-center justify-center">
<!-- Stacked Cards Container -->
<div class="relative w-full max-w-2xl">
<!-- Card 3 (Bottom) -->
<div class="absolute inset-0 opacity-0 transform rotate-3 translate-y-8 translate-x-4 review-card"
data-index="2">
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl">
<p class="text-gray-300 text-lg leading-relaxed">
"I've been testing it for a couple weeks now. I really like it. OP is doing a great job
with the features, the Ul, and feedback. This is a great way to display Immich for
someone else to use with all the albums, people and tags. Of course, that functionality
might not be for everyone for privacy reasons but this is a great way to make our family
photos and videos accessible to the family."
</p>
</div>
</div>
<!-- Card 2 (Middle) -->
<div class="absolute inset-0 opacity-0 transform -rotate-2 translate-y-4 -translate-x-2 review-card"
data-index="1">
<div
class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl">
<p class="text-gray-200 text-lg leading-relaxed">
"Love this app! Thank you! That is the first actually working app with 100k+ photos."
</p>
</div>
</div>
<!-- Card 1 (Top) -->
<div class="relative opacity-0 transform hover:scale-105 transition-transform duration-300 review-card"
data-index="0">
<!-- Subtle glow effect -->
<!-- <div class="absolute -inset-1 bg-purple-600/20 rounded-3xl blur-lg opacity-60"></div> -->
<div
class="relative bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl">
<p class="text-white text-lg leading-relaxed">
"Yours is the best Immich Apple TV app in my opinion, including paid apps. Thank you for
making it (double thank you for making it open-source)."
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Project Stats Section -->
<section class="bg-black py-20">
<div class="max-w-7xl mx-auto px-4 text-center">
<h3 class="text-4xl font-bold text-white mb-16">📊 Project Stats</h3>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-center">
<div class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl">
<img src="https://repobeats.axiom.co/api/embed/3fea253de89fc88824c16adb77a456f7e7d657b7.svg"
alt="Repobeats analytics" class="w-full h-auto rounded-2xl">
</div>
<div class="bg-gray-800/80 backdrop-blur-xl border border-gray-600/30 rounded-3xl p-8 shadow-2xl">
<img src="https://api.star-history.com/svg?repos=mensadilabs/Immich-Gallery&type=Timeline&theme=dark"
alt="Star History Chart" class="w-full h-auto rounded-2xl">
</div>
</div>
</div>
</section>
<!-- Footer Section -->
<footer class="bg-gray-900 backdrop-blur-xl py-16 border-t border-gray-800">
<div class="max-w-7xl mx-auto px-4">
<div class="flex flex-col md:flex-row items-center justify-center gap-8">
<div class="text-center">
<p class="text-gray-300 text-lg">© 2025 Immich Gallery. Powered by Maple Syrup 🍁</p>
</div>
<a href="https://www.buymeacoffee.com/zzpr69dnqtr" target="_blank"
class="group transform hover:scale-105 transition-all duration-300">
<img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=zzpr69dnqtr&button_colour=BD5FFF&font_colour=ffffff&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00"
alt="Buy Me A Coffee - Supporter Count"
class="h-12 rounded-lg shadow-lg group-hover:shadow-xl" />
</a>
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function () {
// Review Cards Stacked Animation (active card on top, others visible behind)
const reviewCards = document.querySelectorAll('.review-card');
let currentCardIndex = 0;
let animationInterval;
function updateCardStack(activeIndex) {
reviewCards.forEach((card, index) => {
card.style.transition = 'all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1)';
if (index === activeIndex) {
// Active card - front and center, fully visible
card.style.opacity = '1';
card.style.transform = 'translateY(0) rotate(0deg) scale(1)';
card.style.filter = 'blur(0px)';
card.style.zIndex = '30';
} else if (index === (activeIndex + 1) % reviewCards.length) {
// Next card - slightly behind and offset, content not readable
card.style.opacity = '0.6';
card.style.transform = 'translateY(8px) translateX(-4px) rotate(-2deg) scale(0.95)';
card.style.filter = 'blur(2px)';
card.style.zIndex = '20';
} else {
// Third card - furthest back, content not readable
card.style.opacity = '0.3';
card.style.transform = 'translateY(16px) translateX(8px) rotate(3deg) scale(0.9)';
card.style.filter = 'blur(4px)';
card.style.zIndex = '10';
}
});
}
function nextCard() {
currentCardIndex = (currentCardIndex + 1) % reviewCards.length;
updateCardStack(currentCardIndex);
}
// Initialize with first card active
setTimeout(() => {
updateCardStack(0);
// Start cycling through cards every 4 seconds
animationInterval = setInterval(nextCard, 8000);
}, 500);
// Screenshot Slideshow
const screenshots = document.querySelectorAll('.screenshot-slide');
const screenshotDots = document.querySelectorAll('.screenshot-dot');
let currentScreenshotIndex = 0;
function showScreenshot(index) {
screenshots.forEach(img => img.style.opacity = '0');
screenshotDots.forEach(dot => {
dot.classList.remove('bg-white');
dot.classList.add('bg-gray-600');
});
screenshots[index].style.opacity = '1';
screenshotDots[index].classList.remove('bg-gray-600');
screenshotDots[index].classList.add('bg-white');
}
function nextScreenshot() {
currentScreenshotIndex = (currentScreenshotIndex + 1) % screenshots.length;
showScreenshot(currentScreenshotIndex);
}
// Initialize first screenshot
showScreenshot(0);
// Auto-advance screenshots
setInterval(nextScreenshot, 4000);
// Dot click handlers
screenshotDots.forEach((dot, index) => {
dot.addEventListener('click', () => {
currentScreenshotIndex = index;
showScreenshot(index);
});
});
// Interactive hover effect for review cards
const topCard = document.querySelector('.animate-stack-in-1');
if (topCard) {
topCard.addEventListener('mouseenter', function () {
const middleCard = document.querySelector('.animate-stack-in-2');
const bottomCard = document.querySelector('.animate-stack-in-3');
if (middleCard && bottomCard) {
middleCard.style.transform = 'rotate(-3deg) translateY(8px) translateX(-6px)';
bottomCard.style.transform = 'rotate(4deg) translateY(16px) translateX(8px)';
}
});
topCard.addEventListener('mouseleave', function () {
const middleCard = document.querySelector('.animate-stack-in-2');
const bottomCard = document.querySelector('.animate-stack-in-3');
if (middleCard && bottomCard) {
middleCard.style.transform = 'rotate(-2deg) translateY(4px) translateX(-2px)';
bottomCard.style.transform = 'rotate(3deg) translateY(8px) translateX(4px)';
}
});
}
});
</script>
</body>
</html>