fix: restore static hero animation background on home
This commit is contained in:
@@ -1,6 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="absolute inset-0 overflow-hidden bg-[#0a1533]">
|
<div
|
||||||
<div class="absolute inset-0 bg-[radial-gradient(70%_50%_at_50%_0%,rgba(36,99,235,0.35),rgba(10,21,51,0)_70%)]" />
|
class="absolute left-0 top-0 w-full overflow-hidden bg-slate-900"
|
||||||
<div class="absolute inset-0 bg-gradient-to-b from-[#0d214f] via-[#0b1b45] to-[#091634]" />
|
:style="{ height: `${height}px` }"
|
||||||
|
>
|
||||||
|
<ClientOnly>
|
||||||
|
<DotLottieVue
|
||||||
|
src="/animations/supply-chain.lottie"
|
||||||
|
autoplay
|
||||||
|
loop
|
||||||
|
:layout="{ fit: 'cover', align: [0.5, 0.5] }"
|
||||||
|
class="absolute inset-0 h-full w-full"
|
||||||
|
/>
|
||||||
|
</ClientOnly>
|
||||||
|
|
||||||
|
<div class="absolute inset-0 bg-gradient-to-b from-slate-900/45 via-slate-900/35 to-slate-900/65" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { DotLottieVue } from '@lottiefiles/dotlottie-vue'
|
||||||
|
|
||||||
|
withDefaults(defineProps<{
|
||||||
|
height?: number
|
||||||
|
}>(), {
|
||||||
|
height: 860
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<!-- Fixed Header Container -->
|
<!-- Fixed Header Container -->
|
||||||
<div class="header-glass fixed inset-x-0 top-0 z-50 border-0" :style="headerContainerStyle">
|
<div class="header-glass fixed inset-x-0 top-0 z-50 border-0" :style="headerContainerStyle">
|
||||||
<!-- Static hero background for home page -->
|
<!-- Static hero background for home page -->
|
||||||
<HeroBackground v-if="isHomePage" />
|
<HeroBackground v-if="isHomePage" :height="heroBaseHeight" />
|
||||||
<div class="header-glass-backdrop" aria-hidden="true" />
|
<div class="header-glass-backdrop" aria-hidden="true" />
|
||||||
|
|
||||||
<!-- MainNavigation -->
|
<!-- MainNavigation -->
|
||||||
|
|||||||
Reference in New Issue
Block a user