Route
- Path:
/(Spanish) or/en(English) - File:
src/pages/[...lang]/index.astro - Type: Static page with i18n support
Page Structure
The home page implements a scroll-driven experience with multiple fullscreen sections:1. Hero Section
Full-screen video background with animated title and CTA button.src/pages/[...lang]/index.astro
- Video background via
GlobalBackgroundcomponent - GSAP-powered text reveal animations
- Animated pill-shaped CTA button with clip-path reveal
- Responsive text sizing with
clamp()
2. Mission Statement Sections
Two fullscreen content sections with text and images: Section 1: Grid layout with title text and two side-by-side images3. Team Section
Grid of team member cards with images and contact information.Animations
The page uses extensive GSAP animations:Hero Animation
Waits for page-ready event before playing:src/pages/[...lang]/index.astro
Bubble Effect (Desktop Only)
Sections scale up and border-radius reduces on scroll:Parallax Images
Images move vertically at different speeds than their containers:Text Reveal
Text elements fade in and slide up using thecreateTextSwipeAnimation utility:
Internationalization
The page supports Spanish (default) and English:Static Path Generation
/ and /en routes.
Background Management
TheGlobalBackground component manages video and image backgrounds:
Mobile Behavior
- Bubble effects disabled below 769px
- Grid layouts switch to single column
- Reduced padding and simplified animations
- Video backgrounds hidden on mobile
Key Components Used
BaseLayout- Page wrapper with SEO meta tagsNavigation- Top navigation barFooter- Site footerGlobalBackground- Video/image background managerEmptySection- Spacing section between content blocks
Related Files
- Layout:
src/layouts/BaseLayout.astro - Components:
src/components/Navigation.astro,src/components/Footer.astro - Utilities:
src/utils/textSwipeAnimation.ts - i18n:
src/i18n/utils.ts