From 4c4d4e35961426e8366c68e351806a462a23f7e5 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mauro-balades@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:35:15 +0100 Subject: [PATCH] Revert "Implement lazy loading of videos" --- astro.config.mjs | 2 +- src/components/Features.astro | 30 +- src/components/NavBar.astro | 4 +- src/components/ThemeSwitch.astro | 33 --- src/components/Video.astro | 42 --- src/icons/MoonIcon.astro | 9 - src/icons/SunIcon.astro | 9 - src/layouts/Layout.astro | 32 +-- src/pages/download.astro | 454 +++++++++++++++---------------- 9 files changed, 253 insertions(+), 362 deletions(-) delete mode 100644 src/components/ThemeSwitch.astro delete mode 100644 src/components/Video.astro delete mode 100644 src/icons/MoonIcon.astro delete mode 100644 src/icons/SunIcon.astro diff --git a/astro.config.mjs b/astro.config.mjs index 6044bda..ad8e88f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -18,5 +18,5 @@ export default defineConfig({ site: 'https://zen-browser.app', redirects: { '/themes/[...slug]': '/mods/[...slug]', - } + }, }) diff --git a/src/components/Features.astro b/src/components/Features.astro index e8bd7a9..34aa645 100644 --- a/src/components/Features.astro +++ b/src/components/Features.astro @@ -1,5 +1,7 @@ --- +import Title from '../components/Title.astro' import Description from '../components/Description.astro' +import { Image } from 'astro:assets' import browserSidebar from '../assets/browser-sidebar.webm' import browserWorkspaces from '../assets/browser-workspaces.webm' @@ -8,8 +10,7 @@ import browserGlance from '../assets/browser-glance.webm' import browserSplitViews from '../assets/browser-splitview.webm' import { motion } from 'motion/react' -import { getTitleAnimation } from '../animations' -import Video from './Video.astro' +import { getTitleAnimation, getZoomInAnimation } from '../animations' ---
-
@@ -66,15 +66,14 @@ import Video from './Video.astro' distractions.

-
@@ -88,15 +87,14 @@ import Video from './Video.astro' opening them.

-
@@ -109,15 +107,14 @@ import Video from './Video.astro' Zen's split view feature allows you to view multiple tabs at once.

-
@@ -128,15 +125,14 @@ import Video from './Video.astro' Zen's sidebar feature allows you to view all your tabs in one place.

-
diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro index 83476a5..d937a93 100644 --- a/src/components/NavBar.astro +++ b/src/components/NavBar.astro @@ -12,7 +12,7 @@ import { } from 'astro-navbar' import { ArrowRight, ChevronDown, Download, DownloadCloud } from 'lucide-astro' import Logo from './Logo.astro' -import ThemeSwitch from './ThemeSwitch.astro' +import { ThemeSwitch } from 'free-astro-components' ---