Skip to content

Commit 9737e7c

Browse files
authored
Teaser version 7 (#256)
1 parent 5a08263 commit 9737e7c

3 files changed

Lines changed: 50 additions & 1 deletion

File tree

public/Lychee-v7-teasing.png

1.24 MB
Loading

src/pages/index.astro

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,53 @@ const metadata = {
255255

256256
<Fragment slot="subtitle"> Deploy in a matter of seconds with our docker-compose file. </Fragment>
257257
</CallToAction>
258+
259+
<script>
260+
document.addEventListener('DOMContentLoaded', () => {
261+
const teaser = document.createElement('div');
262+
teaser.id = 'teaser';
263+
teaser.style.position = 'fixed';
264+
teaser.style.top = '0';
265+
teaser.style.left = '0';
266+
teaser.style.width = '100%';
267+
teaser.style.height = '100%';
268+
teaser.style.backgroundColor = 'black';
269+
teaser.style.display = 'flex';
270+
teaser.style.justifyContent = 'center';
271+
teaser.style.alignItems = 'center';
272+
teaser.style.zIndex = '9999';
273+
teaser.style.transition = 'opacity 3s ease-in';
274+
275+
const img = document.createElement('img');
276+
img.src = '/Lychee-v7-teasing.png';
277+
img.alt = 'Teaser Image';
278+
img.style.maxWidth = '90%';
279+
img.style.maxHeight = '90%';
280+
img.style.transform = 'scale(1)';
281+
img.style.opacity = '0';
282+
img.style.transition = 'transform 6s ease-in-out, opacity 3s ease';
283+
284+
teaser.appendChild(img);
285+
document.body.appendChild(teaser);
286+
287+
// Start the zoom animation
288+
setTimeout(() => {
289+
img.style.opacity = '1';
290+
img.style.transform = 'scale(1.5)';
291+
}, 0);
292+
293+
// Fade out the teaser after the zoom animation
294+
setTimeout(() => {
295+
teaser.style.opacity = '0';
296+
img.style.opacity = '0';
297+
setTimeout(() => {
298+
teaser.remove();
299+
}, 3000);
300+
}, 3000);
301+
302+
teaser.addEventListener('click', () => {
303+
teaser.remove();
304+
});
305+
});
306+
</script>
258307
</Layout>

src/pages/roadmap.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import Layout from '~/layouts/PageLayout.astro';
3-
import Hero from '~/components/widgets/Hero.astro';
43
54
const metadata = {
65
title: 'Roadmap - Lychee Release History',
@@ -9,6 +8,7 @@ const metadata = {
98
109
// Release data extracted from releases.md
1110
const releases = [
11+
{ version: 'v7.0.0', date: 'Soon...', title: 'Upcoming Major Release', type: 'major', highlights: ['Stay tuned for exciting new features and improvements!'] },
1212
{ version: 'v6.10.4', date: 'Dec 11, 2025', title: 'Minor Reflected SSRF fix', type: 'security', highlights: ['Fixed SSRF vulnerability with redirect validation', 'Added expert configuration to disable URL redirects'] },
1313
{ version: 'v6.10.3', date: 'Dec 4, 2025', title: 'Video support in embedded galleries', type: 'feature', highlights: ['Added video support to embedded galleries', 'Translations in EmbedCodeDialog', 'Fixed base URL for embedded galleries'] },
1414
{ version: 'v6.10.2', date: 'Nov 18, 2025', title: 'Translation updates and fixes', type: 'enhancement', highlights: ['Translation of all settings in admin panel', 'Fixed groups not loading in share dialog', 'Fixed SmartAlbum portrait errors'] },

0 commit comments

Comments
 (0)