diff --git a/landing/app/app.vue b/landing/app/app.vue index f5e0f7b..c570047 100644 --- a/landing/app/app.vue +++ b/landing/app/app.vue @@ -18,9 +18,9 @@ }" > import type { NavigationMenuItem, DropdownMenuItem } from '@nuxt/ui' -const { t, locale, locales, setLocale } = useI18n() +const { t, locale, locales, setLocale } = useI18n({ useScope: 'global' }) // Locale dropdown menu items const localeMenuItems = computed(() => @@ -198,7 +198,8 @@ const localeMenuItems = computed(() => ) // Track scroll position for header styling -const isScrolled = ref(false) +// Use useState to ensure consistent SSR/client hydration +const isScrolled = useState('header-scrolled', () => false) onMounted(() => { const handleScroll = () => { @@ -206,7 +207,10 @@ onMounted(() => { } window.addEventListener('scroll', handleScroll, { passive: true }) - handleScroll() // Check initial position + // Defer initial scroll check to avoid hydration mismatch + nextTick(() => { + handleScroll() + }) onUnmounted(() => { window.removeEventListener('scroll', handleScroll) diff --git a/landing/app/components/landing/AdditionalFeatures.vue b/landing/app/components/landing/AdditionalFeatures.vue index 1ce5cf7..3e3e4f2 100644 --- a/landing/app/components/landing/AdditionalFeatures.vue +++ b/landing/app/components/landing/AdditionalFeatures.vue @@ -84,7 +84,7 @@ diff --git a/landing/app/components/landing/FeaturesGrid.vue b/landing/app/components/landing/FeaturesGrid.vue index b312236..8d61710 100644 --- a/landing/app/components/landing/FeaturesGrid.vue +++ b/landing/app/components/landing/FeaturesGrid.vue @@ -45,7 +45,7 @@ diff --git a/landing/app/components/landing/NewsletterSignup.vue b/landing/app/components/landing/NewsletterSignup.vue index 67baa41..035d51f 100644 --- a/landing/app/components/landing/NewsletterSignup.vue +++ b/landing/app/components/landing/NewsletterSignup.vue @@ -126,7 +126,7 @@ class="mt-6 text-sm text-center text-gray-500 dark:text-gray-400 animate-fade-in-up" style="animation-delay: 300ms" > - + diff --git a/landing/app/components/landing/hero/MainCard.vue b/landing/app/components/landing/hero/MainCard.vue index 4d471b9..299738e 100644 --- a/landing/app/components/landing/hero/MainCard.vue +++ b/landing/app/components/landing/hero/MainCard.vue @@ -79,3 +79,6 @@ + \ No newline at end of file diff --git a/landing/app/components/landing/hero/StatusCardCompleted.vue b/landing/app/components/landing/hero/StatusCardCompleted.vue index fc77774..32ba35e 100644 --- a/landing/app/components/landing/hero/StatusCardCompleted.vue +++ b/landing/app/components/landing/hero/StatusCardCompleted.vue @@ -47,6 +47,8 @@