import React, { FC } from 'react'; import { motion } from 'framer-motion'; import { FadeIn } from '../components/FadeIn'; import { LiveProjectButton } from '../components/LiveProjectButton'; interface ProjectCardProps { index: number; title: string; category: string; client: string; col1Img1: string; col1Img2: string; col2Img: string; isPersonal: boolean; } /** * Project Card component with sticky stacking effect. */ const ProjectCard: FC = ({ index, title, category, client, col1Img1, col1Img2, col2Img, isPersonal }) => { // Scale calculation: targetScale = 1 - (totalCards - 1 - index) * 0.03. // Since we have 3 cards (index 0, 1, 2), totalCards = 3. // Index 0: 1 - (3 - 1 - 0) * 0.03 = 1 - 0.06 = 0.94 // Index 1: 1 - (3 - 1 - 1) * 0.03 = 1 - 0.03 = 0.97 // Index 2: 1 - (3 - 1 - 2) * 0.03 = 1 - 0 = 1.0 // We will use a simpler scale factor based on index for demonstration, or rely on Framer Motion's useScroll/useTransform if this were a full implementation. // For static code, we'll use a slight scale variation. const scale = 0.9 + (index * 0.03); return (
{/* Top Row */}
{category}

{title}

{client}

Live Project
{/* Bottom Image Grid */}
{/* Left Column (2 stacked images) */}
Project Image 1 Project Image 2
{/* Right Column (1 tall image) */}
Project Image 3
); }; /** * Projects Section component. */ export const ProjectsSection: FC = () => { const projects = [ { title: "Nextlevel Studio", category: "Client", client: "Nextlevel Studio", col1Img1: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055344_5eff02e0-87a5-41ce-b64f-eb08da8f33db.png&w=1280&q=85", col1Img2: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055431_11d841fd-8b41-46a5-82e4-b04f2407a7d8.png&w=1280&q=85", col2Img: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055451_e317bf2d-28d4-48cc-86b0-6f72f25b6327.png&w=1280&q=85", isPersonal: false, }, { title: "Aura Brand Identity", category: "Personal", client: "Aura Brand Identity", col1Img1: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055654_911201c5-36d9-4bc6-bac7-331adfce159f.png&w=1280&q=85", col1Img2: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055723_5ceda0b8-d9c2-4665-b2e3-83ba19ba76d1.png&w=1280&q=85", col2Img: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055753_adc5dcbd-a8e6-49c0-b43a-9b030d835cea.png&w=1280&q=85", isPersonal: true, }, { title: "Solaris Digital", category: "Client", client: "Solaris Digital", col1Img1: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055759_963cfb0b-4bd1-4b0f-9d0a-09bd6cf95b2f.png&w=1280&q=85", col1Img2: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_060108_438f781a-9846-4dcc-89ab-c4e6cb830f5b.png&w=1280&q=85", col2Img: "https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260412_055818_9d062121-ad7e-46b9-999a-1a6a692ef1ee.png&w=1280&q=85", isPersonal: false, }, ]; return (
{/* Sticky Container for Stacking Effect */}
{projects.map((project, index) => ( ))}
); };