"use client"; import { useState } from "react"; import Image from "next/image"; const projectData = [ { title: "Red Lake Stats", description: "An interactive Javascript and Python application designed to calculate damage statistics for the Roblox game 'The Red Lake'", image: "/images/portfolio-project1.png", link: "https://fretux.ch/trlstats", }, { title: "SBB-History", description: "A website about the creation of the SBB (Swiss Train Corporation) with an interactable map!", image: "/images/portfolio-project2.png", link: "https://sbb-history.fretux.ch", }, { title: "Fretux.ch", description: "My first portfolio website, gameified for more user interaction.", image: "/images/portfolio-project3.png", link: "https://fretux.ch", }, ]; export default function ProjectsPage() { const [currentIndex, setCurrentIndex] = useState(0); const [fade, setFade] = useState(false); const handleNavigation = (direction) => { setFade(true); setTimeout(() => { setCurrentIndex((prev) => { const newIndex = direction === "next" ? (prev + 1) % projectData.length : (prev - 1 + projectData.length) % projectData.length; return newIndex; }); setFade(false); }, 300); }; const project = projectData[currentIndex]; return (

{project.title}

{project.title}

{project.description}

); }