fix: restore hero section with simplified video positioning
All checks were successful
build-website / build (push) Successful in 1m48s

- Removed CSS contain properties that were preventing video from extending into safe area
- Implemented Vue 3 Teleport to bypass DOM containment for iOS video extension
- Video now renders at body level to properly utilize safe area insets
- Kept Safari fallbacks for env() bug workaround

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-21 18:42:29 +02:00
parent 5e7ac5fbf6
commit 4dcfea96ce
3 changed files with 37 additions and 32 deletions

View File

@@ -79,10 +79,7 @@ body {
} }
/* Optimize scroll performance */ /* Optimize scroll performance */
.hero-voyage { /* Removed contain property to allow video to extend into safe area */
will-change: scroll-position;
contain: layout style paint;
}
/* Accessibility: Reduced Motion */ /* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {

View File

@@ -443,7 +443,7 @@ html {
overscroll-behavior-y: none; overscroll-behavior-y: none;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
max-width: 100vw !important; max-width: 100vw !important;
contain: layout; /* Removed contain: layout to allow video to extend into safe area */
/* NO padding here - let container fill entire viewport */ /* NO padding here - let container fill entire viewport */
/* Safe areas will be applied to content only */ /* Safe areas will be applied to content only */
} }

View File

@@ -1,7 +1,8 @@
<template> <template>
<section class="hero-voyage" id="heroSection"> <section class="hero-voyage" id="heroSection">
<!-- Hero video background container - will be absolutely positioned --> <!-- Hero video background teleported to body for proper safe area extension -->
<div ref="videoContainer" class="hero-video-container"> <Teleport to="body">
<div ref="videoContainer" class="hero-video-container hero-video-teleported">
<!-- White overlay that fades out when video is ready --> <!-- White overlay that fades out when video is ready -->
<div <div
class="video-white-overlay" class="video-white-overlay"
@@ -30,6 +31,7 @@
<div class="hero-overlay gradient-warm" /> <div class="hero-overlay gradient-warm" />
<div class="hero-overlay gradient-depth" /> <div class="hero-overlay gradient-depth" />
</div> </div>
</Teleport>
<div class="hero-content" :class="{ 'is-ready': videoLoaded }"> <div class="hero-content" :class="{ 'is-ready': videoLoaded }">
<div class="hero-main"> <div class="hero-main">
@@ -186,6 +188,12 @@ onMounted(() => {
background: #ffffff; background: #ffffff;
} }
/* Teleported video container - positioned at body level to bypass DOM containment */
.hero-video-teleported {
position: fixed !important;
z-index: 1 !important;
}
/* Use @supports with max() as recommended by Apple for safe area */ /* Use @supports with max() as recommended by Apple for safe area */
@supports(padding: max(0px)) { @supports(padding: max(0px)) {
.hero-video-container { .hero-video-container {