fix: make home hero static and keep capsule scroll motion
This commit is contained in:
@@ -6,13 +6,13 @@ export const useHeroScroll = () => {
|
||||
const scrollY = ref(0)
|
||||
|
||||
// Hero height = viewport height minus some space
|
||||
const heroBaseHeight = ref(0)
|
||||
const heroBaseHeight = ref(860)
|
||||
const collapsedHeight = 100 // Fixed header height when collapsed
|
||||
|
||||
// Calculate hero height based on viewport
|
||||
const updateHeroHeight = () => {
|
||||
if (import.meta.client) {
|
||||
heroBaseHeight.value = window.innerHeight - 80
|
||||
heroBaseHeight.value = Math.max(640, window.innerHeight - 80)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user