refactor: separate landing hero section from fixed header

This commit is contained in:
Ruslan Bakiev
2026-03-12 17:19:22 +07:00
parent b5a292093b
commit 5a8ef3bea9
4 changed files with 30 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div
class="absolute left-0 top-0 w-full overflow-hidden bg-slate-900"
:style="{ height: `${height}px` }"
class="absolute inset-0 overflow-hidden bg-slate-900"
:style="containerStyle"
>
<ClientOnly>
<DotLottieVue
@@ -20,9 +20,16 @@
<script setup lang="ts">
import { DotLottieVue } from '@lottiefiles/dotlottie-vue'
withDefaults(defineProps<{
const props = withDefaults(defineProps<{
height?: number
fill?: boolean
}>(), {
height: 860
height: 860,
fill: false
})
const containerStyle = computed(() => {
if (props.fill) return undefined
return { height: `${props.height ?? 860}px` }
})
</script>