diff --git a/public/images/contact/email-prev.webp b/public/images/contact/email-prev.webp index a66d85c..f318bf3 100644 Binary files a/public/images/contact/email-prev.webp and b/public/images/contact/email-prev.webp differ diff --git a/public/images/contact/github-prev.webp b/public/images/contact/github-prev.webp index 122b39d..0a46a16 100644 Binary files a/public/images/contact/github-prev.webp and b/public/images/contact/github-prev.webp differ diff --git a/public/images/contact/insta-prev.webp b/public/images/contact/insta-prev.webp index f9285f4..7fd55ea 100644 Binary files a/public/images/contact/insta-prev.webp and b/public/images/contact/insta-prev.webp differ diff --git a/public/images/contact/linkedin-cohaise-prev.webp b/public/images/contact/linkedin-cohaise-prev.webp index bc125ff..7c7f6f5 100644 Binary files a/public/images/contact/linkedin-cohaise-prev.webp and b/public/images/contact/linkedin-cohaise-prev.webp differ diff --git a/public/images/contact/linkedin-perso-prev.webp b/public/images/contact/linkedin-perso-prev.webp index 6a35044..8b59268 100644 Binary files a/public/images/contact/linkedin-perso-prev.webp and b/public/images/contact/linkedin-perso-prev.webp differ diff --git a/public/images/projects/WaterDroneIoTHackathon.webp b/public/images/projects/WaterDroneIoTHackathon.webp new file mode 100644 index 0000000..8870722 Binary files /dev/null and b/public/images/projects/WaterDroneIoTHackathon.webp differ diff --git a/src/App.css b/src/App.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/App.tsx b/src/App.tsx index f7417ae..03bdc4d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,9 +7,9 @@ import { } from "react-router-dom"; import BackgroundWrapper from "./components/backgrounds/BackgroundWrapper"; -import CardNav from "./components/CardNav"; import LoadingScreen from "./components/LoadingScreen"; import ScrollToTop from "./components/ScrollToTop"; +import CardNav from "./components/CardNav"; const Home = lazy(() => import("./pages/Home")); const Contact = lazy(() => import("./pages/Contact")); @@ -33,11 +33,35 @@ function AppContent() { const immersivePages = ["/projects/les-voix-de-l-exil"]; const isImmersive = immersivePages.includes(location.pathname); + useEffect(() => { + const handleGlobalClick = (e: MouseEvent) => { + const target = (e.target as HTMLElement).closest("a"); + + if ( + target && + target.href && + target.origin === window.location.origin && + target.target !== "_blank" && + !e.ctrlKey && + !e.metaKey + ) { + const currentPath = window.location.pathname; + const targetPath = new URL(target.href).pathname; + if (currentPath !== targetPath) { + setIsPageLoading(true); + } + } + }; + + document.addEventListener("click", handleGlobalClick); + return () => document.removeEventListener("click", handleGlobalClick); + }, []); useEffect(() => { setIsPageLoading(true); const timer = setTimeout(() => { setIsPageLoading(false); }, 600); + return () => clearTimeout(timer); }, [location.pathname]); diff --git a/src/components/AnimatedContent.tsx b/src/components/AnimatedContent.tsx index 6771669..50c450f 100644 --- a/src/components/AnimatedContent.tsx +++ b/src/components/AnimatedContent.tsx @@ -119,8 +119,14 @@ const AnimatedContent: React.FC = ({ once: true, onEnter: () => tl.play(), }); + const resizeObserver = new ResizeObserver(() => { + ScrollTrigger.refresh(); + }); + + resizeObserver.observe(document.body); return () => { + resizeObserver.disconnect(); st.kill(); tl.kill(); }; diff --git a/src/components/FlowingMenu.tsx b/src/components/FlowingMenu.tsx index 4b612a9..ac859cc 100644 --- a/src/components/FlowingMenu.tsx +++ b/src/components/FlowingMenu.tsx @@ -3,6 +3,7 @@ import React, { useRef, useEffect, useState } from "react"; import { gsap } from "gsap"; import { ScrollToPlugin } from "gsap/ScrollToPlugin"; import "./FlowingMenu.css"; +import AnimatedContent from "./AnimatedContent"; gsap.registerPlugin(ScrollToPlugin); @@ -193,35 +194,48 @@ const MenuItem: React.FC = ({ ref={itemRef} style={{ borderColor }} > -
- !isOpen && - gsap.to(marqueeRef.current, { y: "0%", duration: 0.6, ease: "expo" }) - } - onMouseLeave={() => - gsap.to(marqueeRef.current, { - y: "101%", - duration: 0.6, - ease: "expo", - }) - } + - {text} -
- +
+ !isOpen && + gsap.to(marqueeRef.current, { + y: "0%", + duration: 0.6, + ease: "expo", + }) + } + onMouseLeave={() => + gsap.to(marqueeRef.current, { + y: "101%", + duration: 0.6, + ease: "expo", + }) + } + > + {text} +
+
- {/* Rendu dynamique du Masonry : uniquement quand l'item est ouvert */} {shouldRenderContent && Component && }
-
(null); + const animationRef = useRef(null); + + const scrollSpeed = 50; // Pixels par seconde + + useEffect(() => { + const container = scrollContainerRef.current; + if (!container || items.length === 0) return; + + const initAnimation = () => { + const totalWidth = container.scrollWidth; + const loopPoint = totalWidth / 2; + + if (animationRef.current) animationRef.current.kill(); + + // 1. Création de l'animation + animationRef.current = gsap.to(container, { + scrollLeft: loopPoint, + duration: loopPoint / scrollSpeed, + ease: "none", + repeat: -1, + onRepeat: () => { + container.scrollLeft = 0; + }, + }); + + // 2. LE CHANGEMENT : On avance l'animation dès le départ + // 0.15 signifie que l'on commence à 15% du premier trajet + animationRef.current.progress(0.15); + }; + + // On attend un court instant que le layout soit calculé + const timer = setTimeout(initAnimation, 100); + + const pause = () => animationRef.current?.pause(); + const resume = () => animationRef.current?.play(); + + container.addEventListener("mouseenter", pause); + container.addEventListener("mouseleave", resume); + container.addEventListener("touchstart", pause); + container.addEventListener("touchend", resume); + + return () => { + clearTimeout(timer); + animationRef.current?.kill(); + container.removeEventListener("mouseenter", pause); + container.removeEventListener("mouseleave", resume); + container.removeEventListener("touchstart", pause); + container.removeEventListener("touchend", resume); + }; + }, [items, scrollSpeed]); + + return ( +
+
+ {[...items, ...items].map((item, index) => ( + + {item.name} +
+ + {item.name} + + {item.label} +
+ +
+
+
+ ))} +
+
+ ); +} diff --git a/src/components/LoadingScreen.css b/src/components/LoadingScreen.css deleted file mode 100644 index 5b1c297..0000000 --- a/src/components/LoadingScreen.css +++ /dev/null @@ -1,97 +0,0 @@ -.loading-screen { - position: fixed; - inset: 0; - z-index: 999999; - background-color: #050000; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-family: "Orbitron", sans-serif; - color: var(--clr-text); - overflow: hidden; -} - -.loading-content { - position: relative; - z-index: 10; - width: 80vw; - text-align: center; -} - -.loader-title { - font-size: 2rem; - text-transform: uppercase; - letter-spacing: 4px; - margin-bottom: 24px; - color: var(--clr-accent); - text-shadow: 0 0 15px rgba(183, 28, 28, 0.6); - animation: pulse-loader 1.5s infinite ease-in-out; - text-align: center; -} - -.progress-container { - width: 100%; - height: 2px; - background: rgba(255, 255, 255, 0.05); - border-radius: 10px; - position: relative; -} - -.progress-bar { - height: 100%; - background: var(--clr-accent); - box-shadow: 0 0 10px var(--clr-accent); - transition: width 0.2s ease-out; -} - -/* Background effect */ -.space-background { - position: absolute; - inset: 0; - background: radial-gradient(circle at center, #1a0505 0%, #050000 100%); - opacity: 0.8; -} - -.stars-mini { - position: absolute; - inset: 0; - background-image: - radial-gradient(1px 1px at 20px 30px, #eee, rgba(0, 0, 0, 0)), - radial-gradient(1px 1px at 40px 70px, #fff, rgba(0, 0, 0, 0)), - radial-gradient(1px 1px at 50px 160px, #ddd, rgba(0, 0, 0, 0)), - radial-gradient(1px 1px at 80px 120px, #fff, rgba(0, 0, 0, 0)), - radial-gradient(1px 1px at 110px 210px, #fff, rgba(0, 0, 0, 0)), - radial-gradient(1px 1px at 150px 250px, #ddd, rgba(0, 0, 0, 0)); - background-repeat: repeat; - background-size: 200px 250px; - opacity: 0.3; - animation: drift 20s linear infinite; -} - -@keyframes pulse-loader { - 0%, - 100% { - opacity: 0.5; - transform: scale(0.98); - } - 50% { - opacity: 1; - transform: scale(1); - } -} - -@keyframes drift { - from { - transform: translateY(0); - } - to { - transform: translateY(500px); - } -} - -.loading-screen.fade-out { - opacity: 0; - transition: opacity 0.5s ease-out; - pointer-events: none; -} diff --git a/src/components/LoadingScreen.tsx b/src/components/LoadingScreen.tsx index 9018e48..5a59eca 100644 --- a/src/components/LoadingScreen.tsx +++ b/src/components/LoadingScreen.tsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from "react"; -import "./LoadingScreen.css"; const LoadingScreen: React.FC = () => { const [progress, setProgress] = useState(0); @@ -7,7 +6,7 @@ const LoadingScreen: React.FC = () => { useEffect(() => { const interval = window.setInterval(() => { setProgress((prev) => { - const next = prev + 25 + Math.random() * 10; + const next = prev + 5 + Math.random() * 7; if (next >= 100) { window.clearInterval(interval); return 100; @@ -20,14 +19,29 @@ const LoadingScreen: React.FC = () => { }, []); return ( -
-
-
+
+ {/* Effet d'arrière-plan (Espace + Étoiles) */} +
+ {/* Étoiles en valeurs arbitraires Tailwind */} +
-
-
Travelling to next galaxy
-
-
+ + {/* Contenu principal */} +
+

+ Travelling to next galaxy +

+ + {/* Barre de progression */} +
+
diff --git a/src/components/backgrounds/BackgroundWrapper.tsx b/src/components/backgrounds/BackgroundWrapper.tsx index 65ad53d..9cf4344 100644 --- a/src/components/backgrounds/BackgroundWrapper.tsx +++ b/src/components/backgrounds/BackgroundWrapper.tsx @@ -7,6 +7,7 @@ import TargetCursor from "../cursors/TargetCursor"; export default function BackgroundWrapper() { const location = useLocation(); const isCohaise = location.pathname === "/cohaise"; + const isHome = location.pathname === "/"; return ( <> @@ -44,7 +45,7 @@ export default function BackgroundWrapper() { pillarHeight={1} noiseIntensity={0.5} pillarRotation={20} - interactive + interactive={false} mixBlendMode="screen" quality="high" /> @@ -52,8 +53,8 @@ export default function BackgroundWrapper() { ) : (
({ + image: item.img, + link: item.link, + title: item.title, + description: item.description, + })), ]; export const mainMenuItems: MenuItem[] = [ diff --git a/src/components/data/ProjectDetails.tsx b/src/components/data/ProjectDetails.tsx index bbb44b2..b98ee39 100644 --- a/src/components/data/ProjectDetails.tsx +++ b/src/components/data/ProjectDetails.tsx @@ -1,17 +1,17 @@ import React from "react"; import HorizontalMotion from "../HorizontalMotion"; -const gameDevItems = [ +export const gameDevItems = [ { id: "1", - img: "images/projects/SPRotD.webp", + img: "/images/projects/SPRotD.webp", link: "/projects/shadow-purge-rite-of-the-demon", title: "Shadow Purge : Rite of the Demon", description: "Hack n'slash RPG made with Unity & Aseprite.", }, { id: "2", - img: "images/projects/EotLS.webp", + img: "/images/projects/EotLS.webp", link: "/projects/echoes-of-the-last-stop", title: "Echoes of the Last Stop", description: @@ -19,7 +19,7 @@ const gameDevItems = [ }, { id: "3", - img: "images/projects/NTR-Menu.webp", + img: "/images/projects/NTR-Menu.webp", link: "/projects/neo-tokyo-rush", title: "Neo Tokyo Rush", description: @@ -27,7 +27,7 @@ const gameDevItems = [ }, { id: "4", - img: "images/projects/LesVoixDeLExil.webp", + img: "/images/projects/LesVoixDeLExil.webp", link: "/projects/les-voix-de-l-exil", title: "Les Voix de L'Exil", description: @@ -35,34 +35,42 @@ const gameDevItems = [ }, ]; -const reactWebItems = [ +export const reactWebItems = [ { id: "101", - img: "images/cohaise/cohaise.webp", + img: "/images/cohaise/cohaise.webp", link: "/cohaise", title: "Co Hai Se", description: "Landing single page for my (fictionnal) compagny.", }, { id: "102", - img: "images/projects/Esiah-s-Universe.webp", + img: "/images/projects/Esiah-s-Universe.webp", link: "/", title: "Esiah's Universe", description: "A journey through code, design, and imagination.", }, { id: "103", - img: "images/projects/Coeur-UA-PAM.webp", + img: "/images/projects/Coeur-UA-PAM.webp", link: "https://coeur-ua-pam.fr/", title: "Coeur UA PAM", description: "Web site for Coeur UA PAM association.", }, + { + id: "104", + img: "/images/projects/WaterDroneIoTHackathon.webp", + link: "https://waterdrone.esiah.dev/", + title: "WaterDrone", + description: + "Web site made in 5 hours for WaterDrone 2026, an IoT Hackathon project.", + }, ]; -const wordpressItems = [ +export const wordpressItems = [ { id: "201", - img: "images/projects/Metz-Campus.webp", + img: "/images/projects/Metz-Campus.webp", link: "https://metzcampus.fr/", title: "Metz Campus", description: @@ -70,10 +78,10 @@ const wordpressItems = [ }, ]; -const desktopAppItems = [ +export const desktopAppItems = [ { id: "301", - img: "images/projects/Zatyshok.webp", + img: "/images/projects/Zatyshok.webp", link: "/projects/zatyshok", title: "Затишок", description: @@ -81,10 +89,10 @@ const desktopAppItems = [ }, ]; -const angulartWebItems = [ +export const angulartWebItems = [ { id: "401", - img: "images/projects/WYG-TIWIF.webp", + img: "/images/projects/WYG-TIWIF.webp", link: "/projects/wyg-tiwif", title: "WYG-TIWIF", description: diff --git a/src/index.css b/src/index.css index ed0374c..5846483 100644 --- a/src/index.css +++ b/src/index.css @@ -128,13 +128,13 @@ textarea { flex-direction: column; align-items: center; padding: 30vh 0px; - min-height: 100vh; + min-height: 120vh; } .main-section { text-align: center; margin-bottom: 4rem; - min-height: 500px; + min-height: 60vh; } .main-section .title { @@ -157,7 +157,7 @@ textarea { } .subtitle { - width: 80%; + width: 95%; margin: 0 auto; text-align: center; } diff --git a/src/pages/Cohaise.jsx b/src/pages/Cohaise.tsx similarity index 86% rename from src/pages/Cohaise.jsx rename to src/pages/Cohaise.tsx index 570a59d..6783d58 100644 --- a/src/pages/Cohaise.jsx +++ b/src/pages/Cohaise.tsx @@ -93,7 +93,6 @@ const Cohaise = () => { initialOpacity={0} animateOpacity scale={1} - threshold={-0.1} delay={0.5} >
@@ -103,26 +102,12 @@ const Cohaise = () => {

- - - - + +
@@ -61,49 +59,31 @@ export default function Contact() {

You can reach me there:

+ -
- - {contacts.map((contact, index) => ( - window.open(contact.url, "_blank")} - > - {contact.name} -
-
-

{contact.name}

-

{contact.label}

-
- - - ))} - +
+ + + + +
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 0540105..b6c13a7 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -18,7 +18,6 @@ export default function Home() { initialOpacity={0} animateOpacity scale={1} - threshold={-0.1} delay={0.5} >
@@ -38,7 +37,6 @@ export default function Home() { initialOpacity={0} animateOpacity scale={0.95} - threshold={0} delay={0.3} >
diff --git a/src/pages/Project.css b/src/pages/Project.css deleted file mode 100644 index 24dbe06..0000000 --- a/src/pages/Project.css +++ /dev/null @@ -1,5 +0,0 @@ -.project-container { - border-top: 1px solid var(--border-subtle); - width: 100%; - pointer-events: auto; -} diff --git a/src/pages/Projects.tsx b/src/pages/Projects.tsx index 84f1697..579da9b 100644 --- a/src/pages/Projects.tsx +++ b/src/pages/Projects.tsx @@ -8,7 +8,6 @@ import { DesktopAppGallery, AngulartWebGallery, } from "../components/data/ProjectDetails"; -import "./Project.css"; const ProjectCategories = [ { @@ -49,16 +48,15 @@ export default function Projects() { initialOpacity={0} animateOpacity scale={1} - threshold={-1} - delay={0.2} + delay={0.1} > -
+

Projects

Here you can find all my creations

-
+
{ProjectCategories.map((category, index) => (
@@ -89,8 +86,7 @@ export default function Projects() { ease="power3.out" initialOpacity={0} animateOpacity - threshold={0} - delay={0.2} + delay={0} className="w-full" >
diff --git a/src/pages/projects/EchoesOfTheLastStop.tsx b/src/pages/projects/EchoesOfTheLastStop.tsx index 9203384..0cdbe26 100644 --- a/src/pages/projects/EchoesOfTheLastStop.tsx +++ b/src/pages/projects/EchoesOfTheLastStop.tsx @@ -13,8 +13,7 @@ export default function EchoesOfTheLastStop() { initialOpacity={0} animateOpacity scale={1} - threshold={-1} - delay={0.2} + delay={0.1} >