From 0ce878f54f2077a17b74a10e6ce641d56f2444da Mon Sep 17 00:00:00 2001 From: Hanzo_dev <2002samudiojohan@gmail.com> Date: Mon, 9 Mar 2026 19:35:33 -0500 Subject: [PATCH] Update landing page: dynamic hero, live badge, and improved styles --- frontend/src/views/LandingView.vue | 919 ++++++++++++++++++----------- 1 file changed, 558 insertions(+), 361 deletions(-) diff --git a/frontend/src/views/LandingView.vue b/frontend/src/views/LandingView.vue index 69bcc2b..b2e6e02 100644 --- a/frontend/src/views/LandingView.vue +++ b/frontend/src/views/LandingView.vue @@ -1,103 +1,171 @@ @@ -110,331 +178,460 @@ const router = useRouter() const { t } = useI18n() const scrolled = ref(false) -const handleScroll = () => { - scrolled.value = window.scrollY > 50 -} +const handleScroll = () => { scrolled.value = window.scrollY > 50 } onMounted(() => { window.addEventListener('scroll', handleScroll) - - // PWA Detection - const isStandalone = window.matchMedia('(display-mode: standalone)').matches || (window.navigator as any).standalone === true; - if (isStandalone) { - router.replace('/splash') - } + const isStandalone = window.matchMedia('(display-mode: standalone)').matches + || (window.navigator as any).standalone === true + if (isStandalone) router.replace('/splash') }) +onUnmounted(() => window.removeEventListener('scroll', handleScroll)) -onUnmounted(() => { - window.removeEventListener('scroll', handleScroll) -}) - -const launchApp = () => { - router.push('/splash') -} - -const scrollToInstall = () => { - document.getElementById('install-guide')?.scrollIntoView({ behavior: 'smooth' }) -} +const launchApp = () => router.push('/splash') +const scrollToInstall = () => document.getElementById('install-guide')?.scrollIntoView({ behavior: 'smooth' }) + \ No newline at end of file