'use client' import { motion, useScroll, useTransform } from 'framer-motion' import Image from 'next/image' import { projects } from '@/data/projects' import { useState, useEffect } from 'react' export default function ProjectsPage() { const { scrollY } = useScroll() const [isAtBottom, setIsAtBottom] = useState(false) useEffect(() => { const handleScroll = () => { const windowHeight = window.innerHeight const documentHeight = document.documentElement.scrollHeight const scrollPosition = window.scrollY + windowHeight setIsAtBottom(scrollPosition > documentHeight - 100) } window.addEventListener('scroll', handleScroll) return () => window.removeEventListener('scroll', handleScroll) }, []) const cargoFontSize = useTransform(scrollY, [0, 300], ["10vw", "4vw"]) const archFontSize = useTransform(scrollY, [0, 300], ["8vw", "3vw"]) const bottomPadding = useTransform(scrollY, [0, 300], ["2.5rem", "1rem"]) return (
{projects.map((project, idx) => (
{project.title}
{project.year} — {project.location}
{project.title}
))}
A.N.T ARCHITECTURE
) }