+
{cardData.map((card, i) => (
{
+ window.scrollTo(0, 0);
+ }, [pathname]);
+
+ return null;
+}
diff --git a/src/components/ScrollVelocity.tsx b/src/components/ScrollVelocity.tsx
new file mode 100644
index 0000000..0d0f73e
--- /dev/null
+++ b/src/components/ScrollVelocity.tsx
@@ -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;
+ 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;
+ 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(
+ ref: React.RefObject,
+): 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 = ({
+ 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(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(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(
+
+ {children}
+ ,
+ );
+ }
+
+ return (
+
+
+ {spans}
+
+
+ );
+ }
+
+ return (
+
+ {texts.map((text: string, index: number) => (
+
+ {text}
+
+ ))}
+
+ );
+};
+
+export default ScrollVelocity;
diff --git a/src/components/SpotlightCard.tsx b/src/components/SpotlightCard.tsx
new file mode 100644
index 0000000..1748c70
--- /dev/null
+++ b/src/components/SpotlightCard.tsx
@@ -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 = ({
+ children,
+ className = "",
+ spotlightColor = "rgba(255, 255, 255, 0.15)", // Un peu plus subtil par défaut
+}) => {
+ const divRef = useRef(null);
+ const [isFocused, setIsFocused] = useState(false);
+ const [position, setPosition] = useState({ x: 0, y: 0 });
+ const [opacity, setOpacity] = useState(0);
+
+ const handleMouseMove: React.MouseEventHandler = (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 (
+
+ );
+};
+
+export default SpotlightCard;
diff --git a/src/components/data/ProjectDetails.tsx b/src/components/data/ProjectDetails.tsx
new file mode 100644
index 0000000..3a747a6
--- /dev/null
+++ b/src/components/data/ProjectDetails.tsx
@@ -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 = () => (
+
+
+
+);
+
+export const ReactWebGallery = () => (
+
+
+
+);
+
+export const WordpressGallery = () => (
+
+
+
+);
+
+export const DesktopAppGallery = () => (
+
+
+
+);
+
+export const AngulartWebGallery = () => (
+
+
+
+);
diff --git a/src/components/ServiceDetails.tsx b/src/components/data/ServiceDetails.tsx
similarity index 97%
rename from src/components/ServiceDetails.tsx
rename to src/components/data/ServiceDetails.tsx
index 9c804ce..acbd6a9 100644
--- a/src/components/ServiceDetails.tsx
+++ b/src/components/data/ServiceDetails.tsx
@@ -1,6 +1,5 @@
import React from "react";
-// Un sous-composant pour éviter de répéter le style des tags/li
const ServiceTag = ({ children }: { children: React.ReactNode }) => (
{children}
diff --git a/src/index.css b/src/index.css
index 5638536..86a0cc1 100644
--- a/src/index.css
+++ b/src/index.css
@@ -114,6 +114,12 @@ textarea {
pointer-events: none;
}
+.bento-container {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
/* ==========================================================================
UTILITAIRES DE PAGE (Layout)
========================================================================== */
@@ -129,8 +135,7 @@ textarea {
.main-section {
text-align: center;
margin-bottom: 4rem;
- max-width: 800px;
- min-height: 300px;
+ min-height: 500px;
}
.main-section .title {
@@ -152,6 +157,12 @@ textarea {
letter-spacing: 2px;
}
+.subtitle {
+ width: 80%;
+ margin: 0 auto;
+ text-align: center;
+}
+
.loading {
text-align: center;
font-size: 28px;
diff --git a/src/pages/Cohaise.jsx b/src/pages/Cohaise.jsx
index c34a17a..8c8bc16 100644
--- a/src/pages/Cohaise.jsx
+++ b/src/pages/Cohaise.jsx
@@ -2,12 +2,14 @@ import LightPillar from "../components/backgrounds/LightPillar";
import SplashCursor from "../components/cursors/SplashCursor";
import LogoLoop from "../components/LogoLoop";
import FlowingMenu from "../components/FlowingMenu";
+import AnimatedContent from "../components/AnimatedContent";
+
import {
WebService,
MobileService,
DesignService,
SoftwareService,
-} from "../components/ServiceDetails";
+} from "../components/data/ServiceDetails";
import {
SiReact,
@@ -54,22 +56,22 @@ const techLogos = [
const serviceItems = [
{
text: "Web Development",
- image: "images/webDevelopment.jpg",
+ image: "images/webDevelopment.webp",
Component: WebService,
},
{
text: "Mobile Apps",
- image: "images/mobileApps.jpg",
+ image: "images/mobileApps.webp",
Component: MobileService,
},
{
text: "UI/UX Design",
- image: "images/uxUI.jpg",
+ image: "images/uxUI.webp",
Component: DesignService,
},
{
text: "Custom Software",
- image: "images/customSoftware.jpg",
+ image: "images/customSoftware.webp",
Component: SoftwareService,
},
];
@@ -77,19 +79,44 @@ const serviceItems = [
const Cohaise = () => {
return (
-
- Co Hai Se
-
- Your project starts with an idea. It comes to life with Cohaise.
-
-
-
-
+
+
+ Co Hai Se
+
+ Your project starts with an idea. It comes to life with Cohaise.
+
+
+
+
+
+
-
- Contact
- You can reach me there:
-
-
-
-
- {contacts.map((contact, index) => (
- window.open(contact.url, "_blank")}
- >
-
-
-
-
{contact.name}
-
{contact.label}
-
-
-
- ))}
-
-
+
+
+ Contact
+ You can reach me there:
+
+
+
+
+
+ {contacts.map((contact, index) => (
+ window.open(contact.url, "_blank")}
+ >
+
+
+
+
{contact.name}
+
{contact.label}
+
+
+
+ ))}
+
+
+
);
}
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 3a60f9e..10bbb8a 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -1,30 +1,57 @@
import MagicBento from "../components/MagicBento";
+import AnimatedContent from "../components/AnimatedContent";
export default function Home() {
return (
-
- Esiah’s Universe
-
- A journey through code, design, and imagination.
-
-
+
+
+ Esiah’s Universe
+
+ A journey through code, design, and imagination.
+
+
+
-
Overview
-
+
+
+
);
}
diff --git a/src/pages/Project.css b/src/pages/Project.css
new file mode 100644
index 0000000..24dbe06
--- /dev/null
+++ b/src/pages/Project.css
@@ -0,0 +1,5 @@
+.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 172307a..bd4ee55 100644
--- a/src/pages/Projects.tsx
+++ b/src/pages/Projects.tsx
@@ -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() {
return (
-
-
- Projects
- Here you can find all my creations
-
+
+
+
+ Projects
+ Here you can find all my creations
+
+
+
+
+ {ProjectCategories.map((category, index) => (
+ // 3. IMPORTANT: on empêche la div de dépasser 100% de la largeur
+
+
+
+
+
+
+
+
+ {/* 6. On met un padding raisonnable pour éviter que les cartes touchent les bords sur mobile */}
+
+
+
+
+
+ ))}
+
);
}
diff --git a/src/pages/projects/EchoesOfTheLastStop.tsx b/src/pages/projects/EchoesOfTheLastStop.tsx
index e4645bb..222d441 100644
--- a/src/pages/projects/EchoesOfTheLastStop.tsx
+++ b/src/pages/projects/EchoesOfTheLastStop.tsx
@@ -6,6 +6,13 @@ export default function EchoesOfTheLastStop() {
Thriller game project in collaboration with my partner
+
+
+
);
diff --git a/src/pages/projects/NeoTokyoRush.tsx b/src/pages/projects/NeoTokyoRush.tsx
index b3349df..491a865 100644
--- a/src/pages/projects/NeoTokyoRush.tsx
+++ b/src/pages/projects/NeoTokyoRush.tsx
@@ -4,6 +4,20 @@ export default function NeoTokyoRush() {
Neo Tokyo Rush
Cyberpunk-inspired beat 'em All game
+
+
+
+
+
+
);
diff --git a/src/pages/projects/ShadowPurgeRiteOfTheDemon.tsx b/src/pages/projects/ShadowPurgeRiteOfTheDemon.tsx
index 32bf06b..d7d0578 100644
--- a/src/pages/projects/ShadowPurgeRiteOfTheDemon.tsx
+++ b/src/pages/projects/ShadowPurgeRiteOfTheDemon.tsx
@@ -4,6 +4,13 @@ export default function ShadowPurgeRiteOfTheDemon() {
Shadow Purge : Rite of the Demon
Hack n'slash RPG
+
+
+
);
diff --git a/src/pages/projects/WYG-TIWIF.tsx b/src/pages/projects/WYG-TIWIF.tsx
new file mode 100644
index 0000000..d8bd3c1
--- /dev/null
+++ b/src/pages/projects/WYG-TIWIF.tsx
@@ -0,0 +1,25 @@
+export default function WYGTIWIF() {
+ return (
+
+
+ WYG TIWIF
+
+ Your social travel hub. A Full Stack (MEAN) application to build your
+ travel wishlist and follow other users' journeys.
+
+
+
+
+
+
+ );
+}
diff --git a/src/pages/projects/Zatyshok.tsx b/src/pages/projects/Zatyshok.tsx
index 3739e78..775ae18 100644
--- a/src/pages/projects/Zatyshok.tsx
+++ b/src/pages/projects/Zatyshok.tsx
@@ -3,7 +3,21 @@ export default function Zatyshok() {
Затишок
- Moodboard application
+
+ Moodboard application created for my partner !
+
+
+
+
);
diff --git a/vite-env.d.ts b/vite-env.d.ts
index 7582bad..81d69cb 100644
--- a/vite-env.d.ts
+++ b/vite-env.d.ts
@@ -10,3 +10,4 @@ declare module "*.jpg";
declare module "*.jpeg";
declare module "*.svg";
declare module "*.glb";
+declare module "*webp";