import React, { useState, useEffect, useRef } from 'react'; import { Heart, MessageCircle, Share2, Menu, Sparkles, ChevronRight, X } from 'lucide-react'; export default function App() { const [currentVideoIndex, setCurrentVideoIndex] = useState(0); const [showCard, setShowCard] = useState(false); const [isMenuOpen, setIsMenuOpen] = useState(false); // Use a map for refs to ensure stability const videoRefs = useRef({}); // The playlist of background vibes const videos = [ "https://res.cloudinary.com/daxmufdti/video/upload/v1766471626/1113256_Bachelorette_Amusing_1920x1080-2_pjgurb.mp4", "https://res.cloudinary.com/daxmufdti/video/upload/v1766471264/0_Women_Friends_1920x1080-2_zmxfwo.mp4", "https://res.cloudinary.com/daxmufdti/video/upload/v1766471395/5079141_Affection_Loving_1920x1080-2_dqgcsj.mp4" ]; // Handle Playback Logic useEffect(() => { const playCurrentVideo = async () => { const currentVideo = videoRefs.current[currentVideoIndex]; // Safety check if (!currentVideo) return; try { if (currentVideo.paused) { currentVideo.currentTime = 0; await currentVideo.play(); } } catch (error) { console.warn("Video playback interrupted:", error); } // Pause others Object.keys(videoRefs.current).forEach((key) => { const idx = parseInt(key); if (idx !== currentVideoIndex && videoRefs.current[idx]) { videoRefs.current[idx].pause(); } }); }; playCurrentVideo(); }, [currentVideoIndex]); const handleVideoEnd = (index) => { if (index === currentVideoIndex) { setCurrentVideoIndex((prev) => (prev + 1) % videos.length); } }; return ( // 1. Force black background on the absolute outer container
{/* 2. Main App Container - Removed the opacity animation that was hiding the app */}
{/* Background Video Layer */}
{videos.map((src, index) => (
))}
{/* Top Navigation */}
VIBE CHECK
{/* Floating "Join Squad" Button (Landing State) */}
{/* Info Card (Expanded State) */}
{/* Card Header */}
Trending

Find your squad.
Live your best life.

The ultimate community for connecting, sharing aesthetics, and planning the next girls' trip. No drama, just vibes.

{/* Social Proof */}
{/* Side Menu Overlay */} {isMenuOpen && (

Version 1.0.2

Made with 💖

)}
); }