diff --git a/src/components/HorizontalAccordion.tsx b/src/components/HorizontalAccordion.tsx index c64109a..1a9b915 100644 --- a/src/components/HorizontalAccordion.tsx +++ b/src/components/HorizontalAccordion.tsx @@ -28,7 +28,10 @@ export function HorizontalAccordion({ > {trigger} diff --git a/src/components/ScrollProgressBar.tsx b/src/components/ScrollProgressBar.tsx new file mode 100644 index 0000000..b55f99c --- /dev/null +++ b/src/components/ScrollProgressBar.tsx @@ -0,0 +1,22 @@ +"use client"; + +import { motion, useScroll, useSpring } from "framer-motion"; + +export function ScrollProgressBar() { + const { scrollYProgress } = useScroll(); + const scaleY = useSpring(scrollYProgress, { + stiffness: 100, + damping: 30, + restDelta: 0.001 + }); + + return ( + + ); +} diff --git a/src/components/SectionDivider.tsx b/src/components/SectionDivider.tsx new file mode 100644 index 0000000..4eb5f7e --- /dev/null +++ b/src/components/SectionDivider.tsx @@ -0,0 +1,20 @@ +"use client"; + +import { motion } from "framer-motion"; + +interface SectionDividerProps { + className?: string; +} + +export function SectionDivider({ className = "" }: SectionDividerProps) { + return ( + + ); +} diff --git a/src/components/Temp-Placeholder.tsx b/src/components/Temp-Placeholder.tsx index 190b8fa..be25be7 100644 --- a/src/components/Temp-Placeholder.tsx +++ b/src/components/Temp-Placeholder.tsx @@ -3,29 +3,15 @@ import { CursorDotBackground } from "./CursorDotBackground"; import { HorizontalAccordion } from "./HorizontalAccordion"; import { InstagramFeed } from "./InstagramFeed"; +import { ScrollProgressBar } from "./ScrollProgressBar"; +import { SectionDivider } from "./SectionDivider"; +import { VideoPreview } from "./VideoPreview"; import { useEffect, useRef, useState } from "react"; import { motion, AnimatePresence } from "framer-motion"; import { DepthMap } from "./DepthMap"; import Image from "next/image"; import { HoverCard, HoverCardContent, HoverCardTrigger } from "@/components/ui/hover-card"; -// Helper function to extract YouTube video ID from URL -function extractYouTubeVideoId(url: string): string | null { - const patterns = [ - /(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/, - /youtube\.com\/embed\/([^&\n?#]+)/ - ]; - - for (const pattern of patterns) { - const match = url.match(pattern); - if (match) { - return match[1]; - } - } - - return null; -} - // Animation variants for page load const containerVariants = { hidden: { opacity: 0 }, @@ -106,8 +92,10 @@ export function TempPlaceholder() { return () => window.removeEventListener("resize", measure); }, []); return ( -
-
+ <> + +
+
- { - setMousePosition({ x: e.clientX, y: e.clientY }); - setIsEasterEggOpen(true); - }} - className="text-4xl sm:text-5xl md:text-7xl lg:text-8xl xl:text-9xl font-black mb-4 md:mb-6 font-exo-2 text-center mx-auto leading-none cursor-pointer transition-opacity hover:opacity-80" - style={{ - color: '#000000', - textShadow: '2px 2px 0px #ff4d00, 4px 4px 0px #ff4d00', - width: titleWidth ? `${titleWidth}px` : undefined - }} - variants={itemVariants} - transition={{ duration: 0.4, ease: "easeOut" }} - > - - BIOHAZARD - - + + + { + setMousePosition({ x: e.clientX, y: e.clientY }); + setIsEasterEggOpen(true); + }} + className="text-4xl sm:text-5xl md:text-7xl lg:text-8xl xl:text-9xl font-black mb-4 md:mb-6 font-exo-2 text-center mx-auto leading-none cursor-pointer transition-opacity hover:opacity-80" + style={{ + color: '#000000', + textShadow: '2px 2px 0px #ff4d00, 4px 4px 0px #ff4d00', + width: titleWidth ? `${titleWidth}px` : undefined + }} + variants={itemVariants} + transition={{ duration: 0.4, ease: "easeOut" }} + > + + BIOHAZARD + + + + + Click to reveal + + {isEasterEggOpen && ( @@ -323,23 +318,41 @@ export function TempPlaceholder() { better at VFX than we are at web design, I promise. + + Here's our reel:{" "} - - Biohazard Reel Mar 2025 - Frame.io - + + Biohazard Reel Mar 2025 - Frame.io + + + + + - - Gstar Raw - Pommelhorse - + + Gstar Raw - Pommelhorse + + + - - Post Malone - I Had Some Help
- (feat. Morgan Wallen) - (feat. Morgan Wallen) -
+ + Post Malone - I Had Some Help
+ (feat. Morgan Wallen) + (feat. Morgan Wallen) + +
+
-