Adding animation and v1 of all pages done

This commit is contained in:
2026-03-05 11:48:38 +01:00
parent f8c0aba318
commit acf53601ef
76 changed files with 1146 additions and 191 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/images/logo.png" /> <link rel="icon" type="image/png" href="/images/logo.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Esiah's Universe</title> <title>Esiah's Universe</title>
</head> </head>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

+4
View File
@@ -12,10 +12,13 @@ import Zatyshok from "./pages/projects/Zatyshok";
import NeoTokyoRush from "./pages/projects/NeoTokyoRush"; import NeoTokyoRush from "./pages/projects/NeoTokyoRush";
import EchoesOfTheLastStop from "./pages/projects/EchoesOfTheLastStop"; import EchoesOfTheLastStop from "./pages/projects/EchoesOfTheLastStop";
import ShadowPurgeRiteOfTheDemon from "./pages/projects/ShadowPurgeRiteOfTheDemon"; import ShadowPurgeRiteOfTheDemon from "./pages/projects/ShadowPurgeRiteOfTheDemon";
import ScrollToTop from "./components/ScrollToTop";
import WYGTIWIF from "./pages/projects/WYG-TIWIF";
function AppContent() { function AppContent() {
return ( return (
<> <>
<ScrollToTop />
<BackgroundWrapper /> <BackgroundWrapper />
<CardNav /> <CardNav />
@@ -44,6 +47,7 @@ function AppContent() {
element={<ShadowPurgeRiteOfTheDemon />} element={<ShadowPurgeRiteOfTheDemon />}
/> />
<Route path="/projects/zatyshok" element={<Zatyshok />} /> <Route path="/projects/zatyshok" element={<Zatyshok />} />
<Route path="/projects/wyg-tiwif" element={<WYGTIWIF />} />
</Routes> </Routes>
</main> </main>
+153
View File
@@ -0,0 +1,153 @@
import React, { useRef, useEffect } from "react";
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);
interface AnimatedContentProps extends React.HTMLAttributes<HTMLDivElement> {
children: React.ReactNode;
container?: Element | string | null;
distance?: number;
direction?: "vertical" | "horizontal" | "none";
reverse?: boolean;
duration?: number;
ease?: string;
initialOpacity?: number;
animateOpacity?: boolean;
scale?: number;
threshold?: number;
delay?: number;
disappearAfter?: number;
disappearDuration?: number;
disappearEase?: string;
onComplete?: () => void;
onDisappearanceComplete?: () => void;
}
const AnimatedContent: React.FC<AnimatedContentProps> = ({
children,
container,
distance = 100,
direction = "vertical",
reverse = false,
duration = 0.8,
ease = "power3.out",
initialOpacity = 0,
animateOpacity = true,
scale = 1,
threshold = 0.1,
delay = 0,
disappearAfter = 0,
disappearDuration = 0.5,
disappearEase = "power3.in",
onComplete,
onDisappearanceComplete,
className = "",
...props
}) => {
const ref = useRef<HTMLDivElement>(null);
useEffect(() => {
const el = ref.current;
if (!el) return;
let scrollerTarget: Element | string | null =
container || document.getElementById("snap-main-container") || null;
if (typeof scrollerTarget === "string") {
scrollerTarget = document.querySelector(scrollerTarget);
}
const startPct = (1 - threshold) * 100;
const setConfig: gsap.TweenVars = {
opacity: animateOpacity ? initialOpacity : 1,
visibility: "visible",
};
const toConfig: gsap.TweenVars = {
opacity: 1,
duration,
ease,
};
if (direction !== "none") {
const axis = direction === "horizontal" ? "x" : "y";
const offset = reverse ? -distance : distance;
setConfig[axis] = offset;
toConfig[axis] = 0;
}
if (scale !== 1) {
setConfig.scale = scale;
toConfig.scale = 1;
}
gsap.set(el, setConfig);
const tl = gsap.timeline({
paused: true,
delay,
onComplete: () => {
if (onComplete) onComplete();
if (disappearAfter > 0) {
const disappearConfig: gsap.TweenVars = {
opacity: animateOpacity ? initialOpacity : 0,
delay: disappearAfter,
duration: disappearDuration,
ease: disappearEase,
onComplete: () => onDisappearanceComplete?.(),
};
if (direction !== "none") {
const axis = direction === "horizontal" ? "x" : "y";
disappearConfig[axis] = reverse ? distance : -distance;
}
if (scale !== 1) {
disappearConfig.scale = 0.8;
}
gsap.to(el, disappearConfig);
}
},
});
tl.to(el, toConfig);
const st = ScrollTrigger.create({
trigger: el,
scroller: scrollerTarget || window,
start: `top ${startPct}%`,
once: true,
onEnter: () => tl.play(),
});
return () => {
st.kill();
tl.kill();
};
}, [
container,
distance,
direction,
reverse,
duration,
ease,
initialOpacity,
animateOpacity,
scale,
threshold,
delay,
disappearAfter,
disappearDuration,
disappearEase,
onComplete,
onDisappearanceComplete,
]);
return (
<div ref={ref} className={`invisible ${className}`} {...props}>
{children}
</div>
);
};
export default AnimatedContent;
+11 -11
View File
@@ -6,7 +6,7 @@ import Lanyard from "./Lanyard";
import "./CardNav.css"; import "./CardNav.css";
const CardNav = ({ const CardNav = ({
logo = "/images/logo.png", logo = "/images/logo.webp",
logoAlt = "Esiah Logo", logoAlt = "Esiah Logo",
className = "", className = "",
ease = "power3.out", ease = "power3.out",
@@ -62,44 +62,44 @@ const CardNav = ({
if (location.pathname.startsWith("/projects")) { if (location.pathname.startsWith("/projects")) {
return [ return [
{ {
image: "/images/Projects.png", image: "/images/Projects.webp",
link: "/projects", link: "/projects",
title: "All my Projects", title: "All my Projects",
description: "To discover all my creations", description: "To discover all my creations",
}, },
{ {
image: "/images/NTR.png", image: "/images/NTR.webp",
link: "/projects/neo-tokyo-rush", link: "/projects/neo-tokyo-rush",
title: "Neo Tokyo Rush", title: "Neo Tokyo Rush",
description: "Cyberpunk-inspired beat 'em All game", description: "Cyberpunk-inspired beat 'em All game",
}, },
{ {
image: "/images/PortfolioE1.png", image: "/images/PortfolioE1.webp",
link: "https://portfolio-xesiahs-projects.vercel.app/", link: "https://portfolio-xesiahs-projects.vercel.app/",
title: "Protfolio 2024", title: "Protfolio 2024",
description: "Portfolio that gathers all my first year's projects", description: "Portfolio that gathers all my first year's projects",
}, },
{ {
image: "/images/MC.png", image: "/images/Metz-Campus.webp",
link: "_blank https://metzcampus.fr/", link: "_blank https://metzcampus.fr/",
title: "Metz Campus", title: "Metz Campus",
description: description:
"Website crafted for the Metz Campus organization during my first-year internship.", "Website crafted for the Metz Campus organization during my first-year internship.",
}, },
{ {
image: "/images/Zatyshok.png", image: "/images/Zatyshok.webp",
link: "/projects/zatyshok", link: "/projects/zatyshok",
title: "Затишок", title: "Затишок",
description: "Moodboard application", description: "Moodboard application",
}, },
{ {
image: "/images/SPRotD.png", image: "/images/SPRotD.webp",
link: "/projects/shadow-purge-rite-of-the-demon", link: "/projects/shadow-purge-rite-of-the-demon",
title: "Shadow Purge - Rite of the Demon", title: "Shadow Purge - Rite of the Demon",
description: "Hack n'slash RPG", description: "Hack n'slash RPG",
}, },
{ {
image: "/images/EotLS.png", image: "/images/EotLS.webp",
link: "/projects/echoes-of-the-last-stop", link: "/projects/echoes-of-the-last-stop",
title: "Echoes of the Last Stop", title: "Echoes of the Last Stop",
description: "Thriller game project in collaboration with my partner", description: "Thriller game project in collaboration with my partner",
@@ -108,19 +108,19 @@ const CardNav = ({
} }
return [ return [
{ {
image: "/images/Projects.png", image: "/images/Projects.webp",
link: "/projects", link: "/projects",
title: "All my Projects", title: "All my Projects",
description: "To discover all my creations", description: "To discover all my creations",
}, },
{ {
image: "/images/Contact.jpg", image: "/images/Contact.webp",
link: "/contact", link: "/contact",
title: "Contact", title: "Contact",
description: "Any requests? Feel free to reach out!", description: "Any requests? Feel free to reach out!",
}, },
{ {
image: "/images/Cohaise.jpg", image: "/images/Cohaise.webp",
link: "/cohaise", link: "/cohaise",
title: "Co Hai Se", title: "Co Hai Se",
description: "About us", description: "About us",
+2 -7
View File
@@ -3,10 +3,9 @@
--text-dim: rgba(255, 255, 255, 0.5); --text-dim: rgba(255, 255, 255, 0.5);
} }
/* 1. CONFIGURATION LAYOUT & POINTER EVENTS */
.menu-wrap { .menu-wrap {
width: 100vw; width: 100vw;
margin-left: calc(-50vw + 50%); /* Full width hack */ margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
margin-top: 8rem; margin-top: 8rem;
margin-bottom: 8rem; margin-bottom: 8rem;
@@ -15,7 +14,6 @@
position: relative; position: relative;
left: 0; left: 0;
will-change: height; will-change: height;
/* CRUCIAL : La souris passe à travers pour atteindre le background (parallaxe) */
pointer-events: none; pointer-events: none;
} }
@@ -25,7 +23,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 0; padding: 0;
/* CRUCIAL : La souris passe à travers */
pointer-events: none; pointer-events: none;
} }
@@ -34,7 +31,6 @@
overflow: hidden; overflow: hidden;
border-top: 1px solid var(--border-subtle); border-top: 1px solid var(--border-subtle);
transition: background-color 0.4s ease; transition: background-color 0.4s ease;
/* CRUCIAL : La souris passe à travers */
pointer-events: none; pointer-events: none;
} }
@@ -42,7 +38,6 @@
border-bottom: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
} }
/* 2. ÉLÉMENTS INTERACTIFS (On réactive la souris) */
.menu__item-link { .menu__item-link {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -190,7 +185,7 @@
width: 350px; width: 350px;
height: 100px; height: 100px;
margin: 0 3vw; margin: 0 3vw;
border-radius: 4px; border-radius: 50px;
filter: grayscale(100%) contrast(1.2); filter: grayscale(100%) contrast(1.2);
opacity: 0.8; opacity: 0.8;
background-size: cover; background-size: cover;
@@ -1,11 +1,29 @@
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-vars */
import { useRef, useEffect, useState } from "react"; import React, { useRef, useEffect, useState } from "react";
import { gsap } from "gsap"; import { gsap } from "gsap";
import "./FlowingMenu.css";
import { ScrollToPlugin } from "gsap/ScrollToPlugin"; import { ScrollToPlugin } from "gsap/ScrollToPlugin";
import "./FlowingMenu.css";
gsap.registerPlugin(ScrollToPlugin); gsap.registerPlugin(ScrollToPlugin);
function FlowingMenu({ // --- Définition des Types pour éviter l'erreur 'never[]' ---
export interface FlowingMenuItem {
text: string;
image: string;
Component?: React.ComponentType;
}
interface FlowingMenuProps {
items?: FlowingMenuItem[];
speed?: number;
textColor?: string;
bgColor?: string;
marqueeBgColor?: string;
marqueeTextColor?: string;
borderColor?: string;
}
const FlowingMenu: React.FC<FlowingMenuProps> = ({
items = [], items = [],
speed = 15, speed = 15,
textColor = "#fff", textColor = "#fff",
@@ -13,11 +31,11 @@ function FlowingMenu({
marqueeBgColor = "rgba(0,0,0,0.8)", marqueeBgColor = "rgba(0,0,0,0.8)",
marqueeTextColor = "#fff", marqueeTextColor = "#fff",
borderColor = "rgba(255,255,255,0.1)", borderColor = "rgba(255,255,255,0.1)",
}) { }) => {
const [activeIdx, setActiveIdx] = useState(null); const [activeIdx, setActiveIdx] = useState<number | null>(null);
const [isTransitioning, setIsTransitioning] = useState(false); const [isTransitioning, setIsTransitioning] = useState(false);
const toggleItem = (idx) => { const toggleItem = (idx: number) => {
if (isTransitioning) return; if (isTransitioning) return;
if (activeIdx === idx) { if (activeIdx === idx) {
setActiveIdx(null); setActiveIdx(null);
@@ -51,20 +69,24 @@ function FlowingMenu({
borderColor={borderColor} borderColor={borderColor}
/> />
))} ))}
<div <div style={{ height: "0px", width: "100%", pointerEvents: "none" }} />
style={{
height: "0px",
transition: "height 0.5s ease",
width: "100%",
pointerEvents: "none",
}}
/>
</nav> </nav>
</div> </div>
); );
};
// --- Sous-composant MenuItem ---
interface MenuItemProps extends FlowingMenuItem {
speed: number;
textColor: string;
marqueeBgColor: string;
marqueeTextColor: string;
borderColor: string;
isOpen: boolean;
onClick: () => void;
} }
function MenuItem({ const MenuItem: React.FC<MenuItemProps> = ({
text, text,
image, image,
speed, speed,
@@ -75,59 +97,65 @@ function MenuItem({
isOpen, isOpen,
onClick, onClick,
Component, Component,
}) { }) => {
const itemRef = useRef(null); const itemRef = useRef<HTMLDivElement>(null);
const marqueeRef = useRef(null); const marqueeRef = useRef<HTMLDivElement>(null);
const marqueeInnerRef = useRef(null); const marqueeInnerRef = useRef<HTMLDivElement>(null);
const contentRef = useRef(null); const contentRef = useRef<HTMLDivElement>(null);
const [repetitions, setRepetitions] = useState(2); const [repetitions, setRepetitions] = useState(2);
// État local pour retarder le montage du composant Masonry le temps que l'animation commence
const [shouldRenderContent, setShouldRenderContent] = useState(false);
useEffect(() => {
if (isOpen) {
setShouldRenderContent(true);
} else {
// On attend la fin de l'animation de fermeture pour démonter
const timer = setTimeout(() => setShouldRenderContent(false), 500);
return () => clearTimeout(timer);
}
}, [isOpen]);
useEffect(() => { useEffect(() => {
const calculateRepetitions = () => { const calculateRepetitions = () => {
if (!marqueeInnerRef.current) return; if (!marqueeInnerRef.current) return;
const singlePart = marqueeInnerRef.current.querySelector(
const singlePart = ".marquee__part",
marqueeInnerRef.current.querySelector(".marquee__part"); ) as HTMLElement;
if (!singlePart) return; if (!singlePart) return;
const partWidth = singlePart.offsetWidth; const partWidth = singlePart.offsetWidth;
const windowWidth = window.innerWidth; const windowWidth = window.innerWidth;
if (partWidth > 0) { if (partWidth > 0) {
const needed = Math.ceil(windowWidth / partWidth) + 4; setRepetitions(Math.ceil(windowWidth / partWidth) + 4);
setRepetitions(needed);
} }
}; };
calculateRepetitions(); calculateRepetitions();
window.addEventListener("resize", calculateRepetitions); window.addEventListener("resize", calculateRepetitions);
return () => window.removeEventListener("resize", calculateRepetitions); return () => window.removeEventListener("resize", calculateRepetitions);
}, [text]); }, [text]);
useEffect(() => { useEffect(() => {
const marqueeContent = if (!marqueeInnerRef.current) return;
marqueeInnerRef.current?.querySelector(".marquee__part"); const marqueeContent = marqueeInnerRef.current.querySelector(
".marquee__part",
) as HTMLElement;
if (!marqueeContent) return; if (!marqueeContent) return;
const contentWidth = marqueeContent.offsetWidth; const contentWidth = marqueeContent.offsetWidth;
if (contentWidth === 0) return;
const tl = gsap.to(marqueeInnerRef.current, { const tl = gsap.to(marqueeInnerRef.current, {
x: -contentWidth, x: -contentWidth,
duration: speed, duration: speed,
ease: "none", ease: "none",
repeat: -1, repeat: -1,
}); });
return () => {
return () => tl.kill(); tl.kill();
};
}, [speed, repetitions]); }, [speed, repetitions]);
useEffect(() => { useEffect(() => {
if (isOpen && itemRef.current) { if (isOpen && itemRef.current) {
const isMobile = window.innerWidth < 768; const isMobile = window.innerWidth < 768;
gsap.killTweensOf([contentRef.current, window, marqueeRef.current]);
gsap.to(contentRef.current, { gsap.to(contentRef.current, {
height: "auto", height: "auto",
opacity: 1, opacity: 1,
@@ -150,7 +178,6 @@ function MenuItem({
ease: "power2.out", ease: "power2.out",
}); });
} else { } else {
gsap.killTweensOf(contentRef.current);
gsap.to(contentRef.current, { gsap.to(contentRef.current, {
height: 0, height: 0,
opacity: 0, opacity: 0,
@@ -160,20 +187,6 @@ function MenuItem({
} }
}, [isOpen]); }, [isOpen]);
const handleMouseEnter = () => {
if (window.matchMedia("(pointer: coarse)").matches) return;
if (isOpen) return;
gsap.to(marqueeRef.current, { y: "0%", duration: 0.6, ease: "expo" });
gsap.set(marqueeInnerRef.current, { force3D: true });
};
const handleMouseLeave = () => {
if (window.matchMedia("(pointer: coarse)").matches) return;
gsap.to(marqueeRef.current, { y: "101%", duration: 0.6, ease: "expo" });
};
return ( return (
<div <div
className={`menu__item ${isOpen ? "is-open" : ""}`} className={`menu__item ${isOpen ? "is-open" : ""}`}
@@ -181,27 +194,41 @@ function MenuItem({
style={{ borderColor }} style={{ borderColor }}
> >
<div <div
className={`menu__item-link ${isOpen ? "link-active" : ""}`} className="menu__item-link"
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
onClick={onClick} onClick={onClick}
onMouseEnter={() =>
!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} {text}
</div> </div>
<div <div
className="service-details-wrapper" className="service-details-wrapper"
ref={contentRef} ref={contentRef}
style={{ height: 0, overflow: "hidden", opacity: 0 }} style={{ height: 0, overflow: "hidden", opacity: 0 }}
> >
<div className="details-inner">{Component && <Component />}</div> <div className="details-inner px-4 py-8 md:px-12 md:py-12 w-full">
{/* Rendu dynamique du Masonry : uniquement quand l'item est ouvert */}
{shouldRenderContent && Component && <Component />}
</div>
</div> </div>
<div className="marquee" ref={marqueeRef}>
<div
className="marquee"
ref={marqueeRef}
style={{ transform: "translate3d(0, 101%, 0)" }}
>
<div className="marquee__inner-wrap"> <div className="marquee__inner-wrap">
<div <div className="marquee__inner" ref={marqueeInnerRef}>
className="marquee__inner"
ref={marqueeInnerRef}
aria-hidden="true"
>
{[...Array(repetitions)].map((_, idx) => ( {[...Array(repetitions)].map((_, idx) => (
<div <div
className="marquee__part" className="marquee__part"
@@ -220,6 +247,6 @@ function MenuItem({
</div> </div>
</div> </div>
); );
} };
export default FlowingMenu; export default FlowingMenu;
+131
View File
@@ -0,0 +1,131 @@
import { useEffect, useRef, FC } from "react";
import { gsap } from "gsap";
import SpotlightCard from "./SpotlightCard";
import { useNavigate } from "react-router-dom";
export interface ProjectItem {
id: string;
img: string;
link: string;
title?: string;
description?: string;
}
interface HorizontalMotionProps {
items: ProjectItem[];
gradientColor?: string;
}
const HorizontalMotion: FC<HorizontalMotionProps> = ({
items = [],
gradientColor = "transparent",
}) => {
const containerRef = useRef<HTMLDivElement>(null);
const rowRefs = useRef<(HTMLDivElement | null)[]>([]);
const mouseXRef = useRef<number>(window.innerWidth / 2);
const navigate = useNavigate();
const handleCardClick = (link: string) => {
if (!link) return;
const cleanLink = link.replace("_blank", "").trim();
if (link.includes("_blank") || cleanLink.startsWith("http")) {
window.open(cleanLink, "_blank", "noopener,noreferrer");
} else {
navigate(cleanLink);
}
};
useEffect(() => {
gsap.ticker.lagSmoothing(0);
const handleMouseMove = (e: MouseEvent): void => {
mouseXRef.current = e.clientX;
};
const updateMotion = (): void => {
// Sur mobile, on désactive ou réduit fortement le mouvement pour éviter les bugs de scroll
const isMobile = window.innerWidth < 768;
const maxMoveAmount = isMobile ? 30 : 150;
const baseDuration = 0.8;
const inertiaFactors = [0.6, 0.4, 0.3, 0.2];
rowRefs.current.forEach((row, index) => {
if (row) {
const direction = index % 2 === 0 ? 1 : -1;
const moveAmount =
((mouseXRef.current / window.innerWidth) * maxMoveAmount -
maxMoveAmount / 2) *
direction;
gsap.to(row, {
x: moveAmount,
duration:
baseDuration + inertiaFactors[index % inertiaFactors.length],
ease: "power3.out",
overwrite: "auto",
});
}
});
};
const removeAnimationLoop = gsap.ticker.add(updateMotion);
window.addEventListener("mousemove", handleMouseMove);
return () => {
window.removeEventListener("mousemove", handleMouseMove);
removeAnimationLoop();
};
}, []);
if (items.length === 0) return null;
return (
<div
ref={containerRef}
className="relative w-full max-w-[100vw] overflow-hidden rounded-xl md:rounded-3xl bg-black/20"
style={{
background: `radial-gradient(circle, ${gradientColor} 0%, transparent 100%)`,
}}
>
<section className="w-full flex flex-col justify-center">
{items.map((item, index) => (
<div
key={item.id}
className="relative w-[110%] md:w-[120%] -left-[5%] md:-left-[10%] h-40 md:h-62.5 lg:h-80 flex items-center justify-center p-1 md:p-2 will-change-transform"
ref={(el) => {
if (el) rowRefs.current[index] = el;
}}
>
<div
className="w-full h-full max-w-[100vw] md:max-w-350 cursor-pointer group px-2 md:px-0"
onClick={() => handleCardClick(item.link)}
>
<SpotlightCard
className="w-full h-full p-0! border border-white/5 rounded-xl md:rounded-3xl shadow-xl overflow-hidden"
spotlightColor="rgba(255, 255, 255, 0.1)"
>
<div
className="absolute inset-0 bg-cover bg-center transition-transform duration-1000 group-hover:scale-105"
style={{ backgroundImage: `url(${item.img})` }}
/>
<div className="cursor-target absolute inset-0 bg-linear-to-t md:bg-linear-to-r from-black/95 via-black/50 to-transparent opacity-90 group-hover:opacity-100 transition-opacity duration-500" />
<div className="pointer-events-none absolute inset-y-0 left-0 flex flex-col justify-end md:justify-center w-full md:w-2/3 p-4 md:p-12 z-10">
<h3 className="cursor-target text-xl md:text-4xl lg:text-5xl font-bold text-white mb-1 md:mb-4 translate-y-2 md:group-hover:translate-y-0 transition-transform duration-500 ease-out drop-shadow-lg">
{item.title}
</h3>
<p className="cursor-target text-white/80 text-[10px] md:text-base lg:text-lg opacity-100 md:opacity-0 group-hover:opacity-100 transition-all duration-500 md:delay-75 max-w-xl line-clamp-2">
{item.description}
</p>
</div>
</SpotlightCard>
</div>
</div>
))}
</section>
</div>
);
};
export default HorizontalMotion;
+2 -2
View File
@@ -133,8 +133,8 @@ function Band({ isMobile }: BandProps) {
const rot = new THREE.Vector3(); const rot = new THREE.Vector3();
const { nodes, materials } = useGLTF("/3d/card.glb") as any; const { nodes, materials } = useGLTF("/3d/card.glb") as any;
const texture = useTexture("/3d/lanyard.png"); const texture = useTexture("/3d/lanyard.webp");
const badgeTexture = useTexture("/3d/badge_texture.png"); const badgeTexture = useTexture("/3d/badge_texture.webp");
const [curve] = useState( const [curve] = useState(
() => () =>
+18 -18
View File
@@ -32,45 +32,45 @@ const DEFAULT_GLOW_COLOR = "183, 28, 28";
const cardData: CardDataItem[] = [ const cardData: CardDataItem[] = [
{ {
title: "Metz Campus", title: "Metz Campus",
image: "/images/MC.png", image: "/images/Metz-Campus.webp",
description: "Web platform for students.", description: "Web platform for students.",
label: "Web site", label: "WordPress Web site",
link: "https://metzcampus.fr", link: "https://metzcampus.fr",
}, },
{ {
title: "Neo Tokyo Rush", title: "Coeur UA PAM",
image: "/images/NTR.png", image: "/images/Coeur-UA-PAM.webp",
description: "Cyberpunk beat 'em All.", description: "Web site of the Coeur UA PAM association.",
label: "Gamedev", label: "React Web site",
link: "/projects/neo-tokyo-rush", link: "https://coeur-ua-pam.fr/",
}, },
{ {
title: "About Co Hai Se", title: "About Co Hai Se",
image: "/images/Cohaise.jpg", image: "/images/Cohaise.webp",
description: "Crafting the Web of Your Ambitions.", description: "Crafting the Web of Your Ambitions.",
label: "Identity", label: "Identity",
link: "/cohaise", link: "/cohaise",
}, },
{ {
title: "Contact", title: "Projects",
image: "/images/Contact.jpg", image: "/images/Projects.webp",
description: "Reach out to me.", description: "Discover who am i by my creations.",
label: "Network", label: "Identity",
link: "/contact", link: "/projects",
}, },
{ {
title: "Затишок", title: "Затишок",
image: "/images/Zatyshok.png", image: "/images/Zatyshok.webp",
description: "Moodboard developed with love.", description: "Moodboard developed with love !",
label: "Desktop App", label: "Desktop App",
link: "/projects/zatyshok", link: "/projects/zatyshok",
}, },
{ {
title: "Shadow Purge", title: "Shadow Purge",
image: "/images/SPRotD.png", image: "/images/SPRotD.webp",
description: "Hack n'slash RPG.", description: "Hack n'slash RPG.",
label: "Gamedev", label: "Gamedev",
link: "/projects/shadow-purge", link: "/projects/shadow-purge-rite-of-the-demon",
}, },
]; ];
@@ -255,7 +255,7 @@ export default function MagicBento({
]; ];
return ( return (
<div className="w-full max-w-260 mx-auto p-4"> <div className="w-full max-w-300 mx-auto p-4">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3"> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3">
{cardData.map((card, i) => ( {cardData.map((card, i) => (
<ParticleCard <ParticleCard
+12
View File
@@ -0,0 +1,12 @@
import { useEffect } from "react";
import { useLocation } from "react-router-dom";
export default function ScrollToTop() {
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo(0, 0);
}, [pathname]);
return null;
}
+191
View File
@@ -0,0 +1,191 @@
import React, { useRef, useLayoutEffect, useState } from "react";
import {
motion,
useScroll,
useSpring,
useTransform,
useMotionValue,
useVelocity,
useAnimationFrame,
} from "motion/react";
interface VelocityMapping {
input: [number, number];
output: [number, number];
}
interface VelocityTextProps {
children: React.ReactNode;
baseVelocity: number;
scrollContainerRef?: React.RefObject<HTMLElement>;
className?: string;
damping?: number;
stiffness?: number;
numCopies?: number;
velocityMapping?: VelocityMapping;
parallaxClassName?: string;
scrollerClassName?: string;
parallaxStyle?: React.CSSProperties;
scrollerStyle?: React.CSSProperties;
}
interface ScrollVelocityProps {
scrollContainerRef?: React.RefObject<HTMLElement>;
texts: string[];
velocity?: number;
className?: string;
damping?: number;
stiffness?: number;
numCopies?: number;
velocityMapping?: VelocityMapping;
parallaxClassName?: string;
scrollerClassName?: string;
parallaxStyle?: React.CSSProperties;
scrollerStyle?: React.CSSProperties;
}
function useElementWidth<T extends HTMLElement>(
ref: React.RefObject<T | null>,
): number {
const [width, setWidth] = useState(0);
useLayoutEffect(() => {
function updateWidth() {
if (ref.current) {
setWidth(ref.current.offsetWidth);
}
}
updateWidth();
window.addEventListener("resize", updateWidth);
return () => window.removeEventListener("resize", updateWidth);
}, [ref]);
return width;
}
export const ScrollVelocity: React.FC<ScrollVelocityProps> = ({
scrollContainerRef,
texts = [],
velocity = 100,
className = "",
damping = 50,
stiffness = 400,
numCopies = 6,
velocityMapping = { input: [0, 1000], output: [0, 5] },
parallaxClassName,
scrollerClassName,
parallaxStyle,
scrollerStyle,
}) => {
function VelocityText({
children,
baseVelocity = velocity,
scrollContainerRef,
className = "",
damping,
stiffness,
numCopies,
velocityMapping,
parallaxClassName,
scrollerClassName,
parallaxStyle,
scrollerStyle,
}: VelocityTextProps) {
const baseX = useMotionValue(0);
const scrollOptions = scrollContainerRef
? { container: scrollContainerRef }
: {};
const { scrollY } = useScroll(scrollOptions);
const scrollVelocity = useVelocity(scrollY);
const smoothVelocity = useSpring(scrollVelocity, {
damping: damping ?? 50,
stiffness: stiffness ?? 400,
});
const velocityFactor = useTransform(
smoothVelocity,
velocityMapping?.input || [0, 1000],
velocityMapping?.output || [0, 5],
{ clamp: false },
);
const copyRef = useRef<HTMLSpanElement>(null);
const copyWidth = useElementWidth(copyRef);
function wrap(min: number, max: number, v: number): number {
const range = max - min;
const mod = (((v - min) % range) + range) % range;
return mod + min;
}
const x = useTransform(baseX, (v) => {
if (copyWidth === 0) return "0px";
return `${wrap(-copyWidth, 0, v)}px`;
});
const directionFactor = useRef<number>(1);
useAnimationFrame((t, delta) => {
let moveBy = directionFactor.current * baseVelocity * (delta / 1000);
if (velocityFactor.get() < 0) {
directionFactor.current = -1;
} else if (velocityFactor.get() > 0) {
directionFactor.current = 1;
}
moveBy += directionFactor.current * moveBy * velocityFactor.get();
baseX.set(baseX.get() + moveBy);
});
const spans = [];
for (let i = 0; i < numCopies!; i++) {
spans.push(
<span
className={`shrink-0 ${className}`}
key={i}
ref={i === 0 ? copyRef : null}
>
{children}
</span>,
);
}
return (
<div
className={`${parallaxClassName} relative overflow-hidden`}
style={parallaxStyle}
>
<motion.div
className={`${scrollerClassName} flex whitespace-nowrap text-center font-sans text-4xl font-bold tracking-[-0.02em] drop-shadow md:text-[5rem] md:leading-20`}
style={{ x, ...scrollerStyle }}
>
{spans}
</motion.div>
</div>
);
}
return (
<section>
{texts.map((text: string, index: number) => (
<VelocityText
key={index}
className={className}
baseVelocity={index % 2 !== 0 ? -velocity : velocity}
scrollContainerRef={scrollContainerRef}
damping={damping}
stiffness={stiffness}
numCopies={numCopies}
velocityMapping={velocityMapping}
parallaxClassName={parallaxClassName}
scrollerClassName={scrollerClassName}
parallaxStyle={parallaxStyle}
scrollerStyle={scrollerStyle}
>
{text}&nbsp;
</VelocityText>
))}
</section>
);
};
export default ScrollVelocity;
+70
View File
@@ -0,0 +1,70 @@
import React, { useRef, useState } from "react";
interface Position {
x: number;
y: number;
}
interface SpotlightCardProps extends React.PropsWithChildren {
className?: string;
spotlightColor?: `rgba(${number}, ${number}, ${number}, ${number})`;
}
const SpotlightCard: React.FC<SpotlightCardProps> = ({
children,
className = "",
spotlightColor = "rgba(255, 255, 255, 0.15)", // Un peu plus subtil par défaut
}) => {
const divRef = useRef<HTMLDivElement>(null);
const [isFocused, setIsFocused] = useState<boolean>(false);
const [position, setPosition] = useState<Position>({ x: 0, y: 0 });
const [opacity, setOpacity] = useState<number>(0);
const handleMouseMove: React.MouseEventHandler<HTMLDivElement> = (e) => {
if (!divRef.current || isFocused) return;
const rect = divRef.current.getBoundingClientRect();
setPosition({ x: e.clientX - rect.left, y: e.clientY - rect.top });
};
const handleFocus = () => {
setIsFocused(true);
setOpacity(0.8);
};
const handleBlur = () => {
setIsFocused(false);
setOpacity(0);
};
const handleMouseEnter = () => {
setOpacity(0.8);
};
const handleMouseLeave = () => {
setOpacity(0);
};
return (
<div
ref={divRef}
onMouseMove={handleMouseMove}
onFocus={handleFocus}
onBlur={handleBlur}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
className={`relative rounded-3xl border border-white/5 bg-black/40 backdrop-blur-md overflow-hidden p-8 transition-colors duration-500 hover:border-white/20 ${className}`}
>
<div
className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-700 ease-out"
style={{
opacity,
background: `radial-gradient(600px circle at ${position.x}px ${position.y}px, ${spotlightColor}, transparent 100%)`,
}}
/>
{children}
</div>
);
};
export default SpotlightCard;
+114
View File
@@ -0,0 +1,114 @@
import React from "react";
import HorizontalMotion from "../HorizontalMotion";
const gameDevItems = [
{
id: "1",
img: "images/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/EotLS.webp",
link: "/projects/echoes-of-the-last-stop",
title: "Echoes of the Last Stop",
description:
"Story-driven thriller game with branching narratives in collaboration with my partner made with Unity & Aseprite.",
},
{
id: "3",
img: "images/NTR-Menu.webp",
link: "/projects/neo-tokyo-rush",
title: "Neo Tokyo Rush",
description:
"Cyberpunk-inspired beat 'em All game made with Unity & Aseprite.",
},
];
const reactWebItems = [
{
id: "101",
img: "images/Cohaise.webp",
link: "/cohaise",
title: "Co Hai Se",
description: "Landing single page for my (fictionnal) compagny.",
},
{
id: "102",
img: "images/Esiah-s-Universe.webp",
link: "/",
title: "Esiah's Universe",
description: "A journey through code, design, and imagination.",
},
{
id: "103",
img: "images/Coeur-UA-PAM.webp",
link: "https://coeur-ua-pam.fr/",
title: "Coeur UA PAM",
description: "Web site for Coeur UA PAM association.",
},
];
const wordpressItems = [
{
id: "201",
img: "images/Metz-Campus.webp",
link: "https://metzcampus.fr/",
title: "Metz Campus",
description:
"Website made during my 1st year internship for Metz Campus organisation.",
},
];
const desktopAppItems = [
{
id: "301",
img: "images/Zatyshok.webp",
link: "/projects/zatyshok",
title: "Затишок",
description: "Moodboard application created for my partner !",
},
];
const angulartWebItems = [
{
id: "401",
img: "images/WYG-TIWIF.webp",
link: "/projects/wyg-tiwif",
title: "WYG-TIWIF",
description:
"Your social travel hub. A Full Stack (MEAN) application to build your travel wishlist and follow other users' journeys.",
},
];
export const GameDevGallery = () => (
<div className="w-full mt-8">
<HorizontalMotion items={gameDevItems} />
</div>
);
export const ReactWebGallery = () => (
<div className="w-full mt-8">
<HorizontalMotion items={reactWebItems} />
</div>
);
export const WordpressGallery = () => (
<div className="w-full mt-8">
<HorizontalMotion items={wordpressItems} />
</div>
);
export const DesktopAppGallery = () => (
<div className="w-full mt-8">
<HorizontalMotion items={desktopAppItems} />
</div>
);
export const AngulartWebGallery = () => (
<div className="w-full mt-8">
<HorizontalMotion items={angulartWebItems} />
</div>
);
@@ -1,6 +1,5 @@
import React from "react"; import React from "react";
// Un sous-composant pour éviter de répéter le style des tags/li
const ServiceTag = ({ children }: { children: React.ReactNode }) => ( const ServiceTag = ({ children }: { children: React.ReactNode }) => (
<li className="px-6 py-2.5 border border-white/15 rounded-full text-[0.9rem] uppercase tracking-wider text-white bg-transparent transition-all duration-300 hover:bg-white hover:text-black hover:border-white cursor-default"> <li className="px-6 py-2.5 border border-white/15 rounded-full text-[0.9rem] uppercase tracking-wider text-white bg-transparent transition-all duration-300 hover:bg-white hover:text-black hover:border-white cursor-default">
{children} {children}
+13 -2
View File
@@ -114,6 +114,12 @@ textarea {
pointer-events: none; pointer-events: none;
} }
.bento-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* ========================================================================== /* ==========================================================================
UTILITAIRES DE PAGE (Layout) UTILITAIRES DE PAGE (Layout)
========================================================================== */ ========================================================================== */
@@ -129,8 +135,7 @@ textarea {
.main-section { .main-section {
text-align: center; text-align: center;
margin-bottom: 4rem; margin-bottom: 4rem;
max-width: 800px; min-height: 500px;
min-height: 300px;
} }
.main-section .title { .main-section .title {
@@ -152,6 +157,12 @@ textarea {
letter-spacing: 2px; letter-spacing: 2px;
} }
.subtitle {
width: 80%;
margin: 0 auto;
text-align: center;
}
.loading { .loading {
text-align: center; text-align: center;
font-size: 28px; font-size: 28px;
+45 -18
View File
@@ -2,12 +2,14 @@ import LightPillar from "../components/backgrounds/LightPillar";
import SplashCursor from "../components/cursors/SplashCursor"; import SplashCursor from "../components/cursors/SplashCursor";
import LogoLoop from "../components/LogoLoop"; import LogoLoop from "../components/LogoLoop";
import FlowingMenu from "../components/FlowingMenu"; import FlowingMenu from "../components/FlowingMenu";
import AnimatedContent from "../components/AnimatedContent";
import { import {
WebService, WebService,
MobileService, MobileService,
DesignService, DesignService,
SoftwareService, SoftwareService,
} from "../components/ServiceDetails"; } from "../components/data/ServiceDetails";
import { import {
SiReact, SiReact,
@@ -54,22 +56,22 @@ const techLogos = [
const serviceItems = [ const serviceItems = [
{ {
text: "Web Development", text: "Web Development",
image: "images/webDevelopment.jpg", image: "images/webDevelopment.webp",
Component: WebService, Component: WebService,
}, },
{ {
text: "Mobile Apps", text: "Mobile Apps",
image: "images/mobileApps.jpg", image: "images/mobileApps.webp",
Component: MobileService, Component: MobileService,
}, },
{ {
text: "UI/UX Design", text: "UI/UX Design",
image: "images/uxUI.jpg", image: "images/uxUI.webp",
Component: DesignService, Component: DesignService,
}, },
{ {
text: "Custom Software", text: "Custom Software",
image: "images/customSoftware.jpg", image: "images/customSoftware.webp",
Component: SoftwareService, Component: SoftwareService,
}, },
]; ];
@@ -77,19 +79,44 @@ const serviceItems = [
const Cohaise = () => { const Cohaise = () => {
return ( return (
<div className="layout-page" style={{ overflowX: "hidden" }}> <div className="layout-page" style={{ overflowX: "hidden" }}>
<section className="main-section"> <AnimatedContent
<h1 className="cohaise-title">Co Hai Se</h1> distance={50}
<p className="subtitle"> direction="vertical"
Your project starts with an idea. It comes to life with Cohaise. reverse={false}
</p> duration={2}
</section> ease="power3.out"
initialOpacity={0}
<FlowingMenu animateOpacity
items={serviceItems} scale={1}
speed={50} threshold={-0.1}
textColor="#ffffff" delay={0.5}
borderColor="rgba(255,255,255,0.15)" >
/> <section className="main-section">
<h1 className="cohaise-title">Co Hai Se</h1>
<p className="subtitle">
Your project starts with an idea. It comes to life with Cohaise.
</p>
</section>
</AnimatedContent>
<AnimatedContent
distance={160}
direction="horizontal"
reverse={false}
duration={2}
ease="power3.out"
initialOpacity={0}
animateOpacity
scale={1}
threshold={0.2}
delay={0.1}
>
<FlowingMenu
items={serviceItems}
speed={50}
textColor="#ffffff"
borderColor="rgba(255,255,255,0.15)"
/>
</AnimatedContent>
<LogoLoop <LogoLoop
logos={techLogos} logos={techLogos}
+68 -41
View File
@@ -1,6 +1,7 @@
import { ExternalLink } from "lucide-react"; import { ExternalLink } from "lucide-react";
import CardSwap, { Card } from "../components/CardSwap"; import CardSwap, { Card } from "../components/CardSwap";
import "./Contact.css"; import "./Contact.css";
import AnimatedContent from "@/components/AnimatedContent";
export default function Contact() { export default function Contact() {
const contacts = [ const contacts = [
@@ -8,72 +9,98 @@ export default function Contact() {
name: "GitHub", name: "GitHub",
label: "@xEsiah", label: "@xEsiah",
url: "https://github.com/xEsiah", url: "https://github.com/xEsiah",
image: "/images/contact/github-prev.jpg", image: "/images/contact/github-prev.webp",
}, },
{ {
name: "LinkedIn", name: "LinkedIn",
label: "Personal Profile", label: "Personal Profile",
url: "https://www.linkedin.com/in/xesiah/", url: "https://www.linkedin.com/in/xesiah/",
image: "/images/contact/linkedin-perso-prev.jpg", image: "/images/contact/linkedin-perso-prev.webp",
}, },
{ {
name: "LinkedIn", name: "LinkedIn",
label: "Co Hai Se", label: "Co Hai Se",
url: "https://linkedin.com/company/cohaise", url: "https://linkedin.com/company/cohaise",
image: "/images/contact/linkedin-cohaise-prev.jpg", image: "/images/contact/linkedin-cohaise-prev.webp",
}, },
{ {
name: "Instagram", name: "Instagram",
label: "@xesiahh", label: "@xesiahh",
url: "https://instagram.com/xesiahh/", url: "https://instagram.com/xesiahh/",
image: "/images/contact/insta-prev.jpg", image: "/images/contact/insta-prev.webp",
}, },
{ {
name: "eMail", name: "eMail",
label: "[email protected]", label: "[email protected]",
url: "mailto:[email protected]", url: "mailto:[email protected]",
image: "/images/contact/email-prev.jpg", image: "/images/contact/email-prev.webp",
}, },
]; ];
return ( return (
<div className="layout-page"> <div className="layout-page">
<section className="main-section"> <AnimatedContent
<h1 className="title">Contact</h1> distance={50}
<p className="subtitle">You can reach me there:</p> direction="vertical"
</section> reverse={false}
duration={2}
<div className="contact-container w-full overflow-hidden flex justify-center py-20"> ease="power3.out"
<CardSwap initialOpacity={0}
maxWidth={1100} animateOpacity
aspectRatio={window.innerWidth < 768 ? 0.9 : 1.4} scale={1}
cardDistance={60} threshold={-0.1}
verticalDistance={70} delay={0.2}
> >
{contacts.map((contact, index) => ( <section className="main-section">
<Card <h1 className="title">Contact</h1>
key={index} <p className="subtitle">You can reach me there:</p>
className="contact-card border border-white/10 rounded-2xl overflow-hidden shadow-2xl" </section>
onClick={() => window.open(contact.url, "_blank")} </AnimatedContent>
> <AnimatedContent
<img distance={100}
src={contact.image} direction="vertical"
alt={contact.name} reverse={false}
className="contact-card-img" duration={1.5}
/> ease="power3.out"
<div className="contact-card-overlay" /> initialOpacity={0}
<div className="contact-card-info"> animateOpacity
<h3 className="cursor-target">{contact.name}</h3> scale={1}
<p className="cursor-target">{contact.label}</p> threshold={0.2}
</div> delay={0.1}
<ExternalLink className="w-full flex justify-center"
className="contact-card-icon cursor-target" >
size={28} <div className="contact-container w-full overflow-hidden flex justify-center ">
/> <CardSwap
</Card> maxWidth={1100}
))} aspectRatio={window.innerWidth < 768 ? 0.9 : 1.4}
</CardSwap> cardDistance={60}
</div> verticalDistance={70}
>
{contacts.map((contact, index) => (
<Card
key={index}
className="contact-card border border-white/10 rounded-2xl overflow-hidden shadow-2xl"
onClick={() => window.open(contact.url, "_blank")}
>
<img
src={contact.image}
alt={contact.name}
className="contact-card-img"
/>
<div className="contact-card-overlay" />
<div className="contact-card-info">
<h3 className="cursor-target">{contact.name}</h3>
<p className="cursor-target">{contact.label}</p>
</div>
<ExternalLink
className="contact-card-icon cursor-target"
size={28}
/>
</Card>
))}
</CardSwap>
</div>
</AnimatedContent>
</div> </div>
); );
} }
+48 -21
View File
@@ -1,30 +1,57 @@
import MagicBento from "../components/MagicBento"; import MagicBento from "../components/MagicBento";
import AnimatedContent from "../components/AnimatedContent";
export default function Home() { export default function Home() {
return ( return (
<div className="layout-page"> <div className="layout-page">
<section className="main-section"> <AnimatedContent
<h1 className="title">Esiah’s Universe</h1> distance={50}
<p className="subtitle"> direction="vertical"
A journey through code, design, and imagination. reverse={false}
</p> duration={2}
</section> ease="power3.out"
initialOpacity={0}
animateOpacity
scale={1}
threshold={-0.1}
delay={0.5}
>
<section className="main-section">
<h1 className="title">Esiah’s Universe</h1>
<p className="subtitle">
A journey through code, design, and imagination.
</p>
</section>
</AnimatedContent>
<h2>Overview</h2> <AnimatedContent
<section className="bento-container"> distance={80}
<MagicBento direction="vertical"
enableStars={true} reverse={false}
enableSpotlight={true} duration={1}
enableBorderGlow={true} ease="power3.out"
enableTilt={true} initialOpacity={0}
enableMagnetism={true} animateOpacity
clickEffect={true} scale={0.95}
spotlightRadius={150} threshold={0.2}
particleCount={200} delay={0.3}
glowColor="183, 28, 28" >
disableAnimations={false} <section className="bento-container">
/> <h2>Overview</h2>
</section> <MagicBento
enableStars={true}
enableSpotlight={true}
enableBorderGlow={true}
enableTilt={true}
enableMagnetism={true}
clickEffect={true}
spotlightRadius={150}
particleCount={200}
glowColor="183, 28, 28"
disableAnimations={false}
/>
</section>
</AnimatedContent>
</div> </div>
); );
} }
+5
View File
@@ -0,0 +1,5 @@
.project-container {
border-top: 1px solid var(--border-subtle);
width: 100%;
pointer-events: auto;
}
+99 -5
View File
@@ -1,10 +1,104 @@
import AnimatedContent from "../components/AnimatedContent";
import ScrollVelocity from "../components/ScrollVelocity";
import {
GameDevGallery,
ReactWebGallery,
WordpressGallery,
DesktopAppGallery,
AngulartWebGallery,
} from "../components/data/ProjectDetails";
import "./Project.css";
const ProjectCategories = [
{
text: "Game Development",
Component: GameDevGallery,
},
{
text: "React Websites",
Component: ReactWebGallery,
},
{
text: "WordPress & Elementor",
Component: WordpressGallery,
},
{
text: "Desktop Apps",
Component: DesktopAppGallery,
},
{
text: "Angular Apps",
Component: AngulartWebGallery,
},
];
export default function Projects() { export default function Projects() {
return ( return (
<div className="layout-page"> <div className="layout-page w-full overflow-x-hidden">
<section className="main-section"> <AnimatedContent
<h1 className="title">Projects</h1> distance={50}
<p className="subtitle">Here you can find all my creations</p> direction="vertical"
</section> reverse={false}
duration={2}
ease="power3.out"
initialOpacity={0}
animateOpacity
scale={1}
threshold={-0.1}
delay={0.2}
>
<section className="main-section mb-20">
<h1 className="title">Projects</h1>
<p className="subtitle">Here you can find all my creations</p>
</section>
</AnimatedContent>
<div className="project-container flex flex-col gap-32 pb-32 w-full max-w-[100vw] overflow-x-hidden">
{ProjectCategories.map((category, index) => (
// 3. IMPORTANT: on empêche la div de dépasser 100% de la largeur
<div key={index} className="w-full max-w-full overflow-hidden">
<AnimatedContent
distance={100}
direction="horizontal"
reverse={index % 2 !== 0}
duration={1.5}
ease="power3.out"
initialOpacity={0}
animateOpacity
threshold={0.2}
delay={0}
// 4. On s'assure que l'AnimatedContent ne crée pas de scroll
className="w-full max-w-full overflow-hidden"
>
<div className="mb-8 pointer-events-none w-full">
<ScrollVelocity
texts={[category.text]}
velocity={index % 2 === 0 ? 110 : -110}
// 5. On réduit la taille du texte géant sur mobile (text-4xl au lieu de 6xl)
className="custom-scroll-text text-4xl md:text-8xl font-bold uppercase tracking-tighter text-white/90 whitespace-nowrap"
/>
</div>
</AnimatedContent>
<AnimatedContent
distance={0}
direction="none"
duration={1.5}
ease="power3.out"
initialOpacity={0}
animateOpacity
threshold={0.2}
delay={0.2}
className="w-full"
>
{/* 6. On met un padding raisonnable pour éviter que les cartes touchent les bords sur mobile */}
<div className="w-full px-2 md:px-6">
<category.Component />
</div>
</AnimatedContent>
</div>
))}
</div>
</div> </div>
); );
} }
@@ -6,6 +6,13 @@ export default function EchoesOfTheLastStop() {
<p className="subtitle"> <p className="subtitle">
Thriller game project in collaboration with my partner Thriller game project in collaboration with my partner
</p> </p>
<a className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto cursor-target">
<img
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
src="/images/EotLS.webp"
alt="Preview of Echoes of the Last Stop game made with Unity & Aseprite"
/>
</a>
</section> </section>
</div> </div>
); );
+14
View File
@@ -4,6 +4,20 @@ export default function NeoTokyoRush() {
<section className="main-section"> <section className="main-section">
<h1 className="title">Neo Tokyo Rush</h1> <h1 className="title">Neo Tokyo Rush</h1>
<p className="subtitle">Cyberpunk-inspired beat 'em All game</p> <p className="subtitle">Cyberpunk-inspired beat 'em All game</p>
<a className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto cursor-target">
<img
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
src="/images/NTR-Menu.webp"
alt="Preview of Neo Tokyo Rush game made with Unity"
/>
</a>
<a className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto cursor-target">
<img
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
src="/images/NTR-Lvl.webp"
alt="Preview of Neo Tokyo Rush game made with Unity"
/>
</a>
</section> </section>
</div> </div>
); );
@@ -4,6 +4,13 @@ export default function ShadowPurgeRiteOfTheDemon() {
<section className="main-section"> <section className="main-section">
<h1 className="title">Shadow Purge : Rite of the Demon</h1> <h1 className="title">Shadow Purge : Rite of the Demon</h1>
<p className="subtitle">Hack n'slash RPG</p> <p className="subtitle">Hack n'slash RPG</p>
<a className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto cursor-target">
<img
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
src="/images/SPRotD.webp"
alt="Preview of Shadow Purge : Rite of the Demon game made with Unity & Aseprite"
/>
</a>
</section> </section>
</div> </div>
); );
+25
View File
@@ -0,0 +1,25 @@
export default function WYGTIWIF() {
return (
<div className="layout-page">
<section className="main-section">
<h1 className="title">WYG TIWIF</h1>
<p className="subtitle">
Your social travel hub. A Full Stack (MEAN) application to build your
travel wishlist and follow other users' journeys.
</p>
<a
href="https://github.com/xEsiah/WYG-TIWIF"
target="_blank"
rel="noopener noreferrer"
className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto cursor-target"
>
<img
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
src="/images/WYG-TIWIF.webp"
alt="Preview of WYG-TIWIF app made with Angular"
/>
</a>
</section>
</div>
);
}
+15 -1
View File
@@ -3,7 +3,21 @@ export default function Zatyshok() {
<div className="layout-page"> <div className="layout-page">
<section className="main-section"> <section className="main-section">
<h1 className="title">Затишок</h1> <h1 className="title">Затишок</h1>
<p className="subtitle">Moodboard application</p> <p className="subtitle">
Moodboard application created for my partner !
</p>
<a
href="https://github.com/xEsiah/zatyshok-frontend"
target="_blank"
rel="noopener noreferrer"
className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto cursor-target"
>
<img
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
src="/images/Zatyshok.webp"
alt="Preview of Zatyshok desktop app made with Electron"
/>
</a>
</section> </section>
</div> </div>
); );
+1
View File
@@ -10,3 +10,4 @@ declare module "*.jpg";
declare module "*.jpeg"; declare module "*.jpeg";
declare module "*.svg"; declare module "*.svg";
declare module "*.glb"; declare module "*.glb";
declare module "*webp";