add project and main menu items, download data, and Les Voix de L'Exil page
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 184 KiB |
|
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 162 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 264 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
@@ -9,4 +9,5 @@
|
||||
<url><loc>https://esiah.dev/projects/shadow-purge-rite-of-the-demon</loc><priority>0.6</priority></url>
|
||||
<url><loc>https://esiah.dev/projects/zatyshok</loc><priority>0.6</priority></url>
|
||||
<url><loc>https://esiah.dev/projects/wyg-tiwif</loc><priority>0.6</priority></url>
|
||||
<url><loc>https://esiah.dev/projects/les-voix-de-l-exil</loc><priority>0.6</priority></url>
|
||||
</urlset>
|
||||
@@ -8,12 +8,12 @@ import {
|
||||
|
||||
import BackgroundWrapper from "./components/backgrounds/BackgroundWrapper";
|
||||
import CardNav from "./components/CardNav";
|
||||
import LoadingScreen from "./components/LoadingScreen";
|
||||
import ScrollToTop from "./components/ScrollToTop";
|
||||
|
||||
const Home = lazy(() => import("./pages/Home"));
|
||||
const Contact = lazy(() => import("./pages/Contact"));
|
||||
const Projects = lazy(() => import("./pages/Projects"));
|
||||
import LoadingScreen from "./components/LoadingScreen";
|
||||
|
||||
const Cohaise = lazy(() => import("./pages/Cohaise"));
|
||||
const Zatyshok = lazy(() => import("./pages/projects/Zatyshok"));
|
||||
const NeoTokyoRush = lazy(() => import("./pages/projects/NeoTokyoRush"));
|
||||
@@ -23,22 +23,21 @@ const EchoesOfTheLastStop = lazy(
|
||||
const ShadowPurgeRiteOfTheDemon = lazy(
|
||||
() => import("./pages/projects/ShadowPurgeRiteOfTheDemon"),
|
||||
);
|
||||
import ScrollToTop from "./components/ScrollToTop";
|
||||
const LesVoixDeLExil = lazy(() => import("./pages/projects/LesVoixDeLExil"));
|
||||
const WYGTIWIF = lazy(() => import("./pages/projects/WYG-TIWIF"));
|
||||
|
||||
function AppContent() {
|
||||
const location = useLocation();
|
||||
const [isPageLoading, setIsPageLoading] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
// Déclenche l'écran de chargement au changement de route
|
||||
setIsPageLoading(true);
|
||||
const immersivePages = ["/projects/les-voix-de-l-exil"];
|
||||
const isImmersive = immersivePages.includes(location.pathname);
|
||||
|
||||
// On laisse l'écran au moins 600ms pour que l'animation warp soit visible
|
||||
useEffect(() => {
|
||||
setIsPageLoading(true);
|
||||
const timer = setTimeout(() => {
|
||||
setIsPageLoading(false);
|
||||
}, 600);
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
}, [location.pathname]);
|
||||
|
||||
@@ -46,7 +45,7 @@ function AppContent() {
|
||||
<>
|
||||
{isPageLoading && <LoadingScreen />}
|
||||
<ScrollToTop />
|
||||
<BackgroundWrapper />
|
||||
{!isImmersive && <BackgroundWrapper />}
|
||||
<CardNav />
|
||||
|
||||
<main>
|
||||
@@ -67,13 +66,19 @@ function AppContent() {
|
||||
/>
|
||||
<Route path="/projects/zatyshok" element={<Zatyshok />} />
|
||||
<Route path="/projects/wyg-tiwif" element={<WYGTIWIF />} />
|
||||
<Route
|
||||
path="/projects/les-voix-de-l-exil"
|
||||
element={<LesVoixDeLExil />}
|
||||
/>
|
||||
</Routes>
|
||||
</Suspense>
|
||||
</main>
|
||||
|
||||
{!isImmersive && (
|
||||
<footer>
|
||||
<p>© 2026 - Co Hai Se | All rights reserved.</p>
|
||||
</footer>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
z-index: 999;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 2em;
|
||||
margin-top: 2em;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
import { Link, useNavigate, useLocation } from "react-router-dom";
|
||||
import { gsap } from "gsap";
|
||||
import "./CardNav.css";
|
||||
import { mainMenuItems, projectMenuItems } from "./data/DataMenuItem";
|
||||
|
||||
const InfiniteMenu = lazy(() => import("./InfiniteMenu"));
|
||||
const Lanyard = lazy(() => import("./Lanyard"));
|
||||
@@ -69,73 +70,9 @@ const CardNav = ({
|
||||
|
||||
const menuItems = useMemo(() => {
|
||||
if (location.pathname.startsWith("/projects")) {
|
||||
return [
|
||||
{
|
||||
image: "/images/Projects.webp",
|
||||
link: "/projects",
|
||||
title: "All my Projects",
|
||||
description: "To discover all my creations",
|
||||
},
|
||||
{
|
||||
image: "/images/NTR.webp",
|
||||
link: "/projects/neo-tokyo-rush",
|
||||
title: "Neo Tokyo Rush",
|
||||
description: "Cyberpunk-inspired beat 'em All game",
|
||||
},
|
||||
{
|
||||
image: "/images/PortfolioE1.webp",
|
||||
link: "https://portfolio-xesiahs-projects.vercel.app/",
|
||||
title: "Protfolio 2024",
|
||||
description: "Portfolio that gathers all my first year's projects",
|
||||
},
|
||||
{
|
||||
image: "/images/Metz-Campus.webp",
|
||||
link: "_blank https://metzcampus.fr/",
|
||||
title: "Metz Campus",
|
||||
description:
|
||||
"Website crafted for the Metz Campus organization during my first-year internship.",
|
||||
},
|
||||
{
|
||||
image: "/images/Zatyshok.webp",
|
||||
link: "/projects/zatyshok",
|
||||
title: "Затишок",
|
||||
description:
|
||||
"Moodboard/Planner highly customisable application developed with love !",
|
||||
},
|
||||
{
|
||||
image: "/images/SPRotD.webp",
|
||||
link: "/projects/shadow-purge-rite-of-the-demon",
|
||||
title: "Shadow Purge - Rite of the Demon",
|
||||
description: "Hack n'slash RPG",
|
||||
},
|
||||
{
|
||||
image: "/images/EotLS.webp",
|
||||
link: "/projects/echoes-of-the-last-stop",
|
||||
title: "Echoes of the Last Stop",
|
||||
description: "Thriller game project in collaboration with my partner",
|
||||
},
|
||||
];
|
||||
return projectMenuItems;
|
||||
}
|
||||
return [
|
||||
{
|
||||
image: "/images/Projects.webp",
|
||||
link: "/projects",
|
||||
title: "All my Projects",
|
||||
description: "To discover all my creations",
|
||||
},
|
||||
{
|
||||
image: "/images/Contact.webp",
|
||||
link: "/contact",
|
||||
title: "Contact",
|
||||
description: "Any requests? Feel free to reach out!",
|
||||
},
|
||||
{
|
||||
image: "/images/Cohaise.webp",
|
||||
link: "/cohaise",
|
||||
title: "Co Hai Se",
|
||||
description: "About us",
|
||||
},
|
||||
];
|
||||
return mainMenuItems;
|
||||
}, [location.pathname]);
|
||||
|
||||
const calculateHeight = useCallback(() => {
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
import React, { useState } from "react";
|
||||
import { Download } from "lucide-react";
|
||||
import { ProjectDownloads } from "./data/DownloadData";
|
||||
|
||||
interface DownloadButtonProps {
|
||||
projectId: string;
|
||||
}
|
||||
|
||||
const DownloadButton: React.FC<DownloadButtonProps> = ({ projectId }) => {
|
||||
const projectData = ProjectDownloads[projectId];
|
||||
|
||||
if (!projectData) return null;
|
||||
|
||||
const isAvailable =
|
||||
projectData.downloadUrl &&
|
||||
projectData.downloadUrl !== "#" &&
|
||||
projectData.downloadUrl !== "";
|
||||
|
||||
const handleDownload = () => {
|
||||
if (!isAvailable) return;
|
||||
|
||||
const link = document.createElement("a");
|
||||
link.href = projectData.downloadUrl;
|
||||
|
||||
if (projectData.downloadUrl.endsWith(".zip")) {
|
||||
const fileName =
|
||||
projectData.downloadUrl.split("/").pop() || "project.zip";
|
||||
link.setAttribute("download", fileName);
|
||||
} else {
|
||||
link.setAttribute("target", "_blank");
|
||||
}
|
||||
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center mt-10 gap-3">
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
disabled={!isAvailable}
|
||||
className={`cursor-target flex items-center gap-3 px-8 py-4 font-bold rounded-full transition-all transform shadow-lg group ${
|
||||
isAvailable
|
||||
? "bg-[#b71c1c] text-white hover:bg-[#d32f2f] hover:scale-105 cursor-pointer"
|
||||
: "bg-gray-700 text-gray-400 cursor-not-allowed opacity-60"
|
||||
}`}
|
||||
>
|
||||
<Download
|
||||
className={isAvailable ? "group-hover:animate-bounce" : ""}
|
||||
size={20}
|
||||
/>
|
||||
<span>{isAvailable ? "Download Project" : "Not available"}</span>
|
||||
</button>
|
||||
|
||||
{!isAvailable && (
|
||||
<p className="text-sm text-gray-400 italic animate-pulse">
|
||||
Not available yet, come back later
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DownloadButton;
|
||||
@@ -32,35 +32,35 @@ const DEFAULT_GLOW_COLOR = "183, 28, 28";
|
||||
const cardData: CardDataItem[] = [
|
||||
{
|
||||
title: "Metz Campus",
|
||||
image: "/images/Metz-Campus.webp",
|
||||
image: "/images/projects/Metz-Campus.webp",
|
||||
description: "Web platform for students.",
|
||||
label: "WordPress Web site",
|
||||
link: "https://metzcampus.fr",
|
||||
},
|
||||
{
|
||||
title: "Coeur UA PAM",
|
||||
image: "/images/Coeur-UA-PAM.webp",
|
||||
image: "/images/projects/Coeur-UA-PAM.webp",
|
||||
description: "Web site of the Coeur UA PAM association.",
|
||||
label: "React Web site",
|
||||
link: "https://coeur-ua-pam.fr/",
|
||||
},
|
||||
{
|
||||
title: "About Co Hai Se",
|
||||
image: "/images/Cohaise.webp",
|
||||
image: "/images/cohaise/cohaise.webp",
|
||||
description: "Crafting the Web of Your Ambitions.",
|
||||
label: "Identity",
|
||||
link: "/cohaise",
|
||||
},
|
||||
{
|
||||
title: "Projects",
|
||||
image: "/images/Projects.webp",
|
||||
image: "/images/projects/Projects.webp",
|
||||
description: "Discover who am i by my creations.",
|
||||
label: "Identity",
|
||||
link: "/projects",
|
||||
},
|
||||
{
|
||||
title: "Затишок",
|
||||
image: "/images/Zatyshok.webp",
|
||||
image: "/images/projects/Zatyshok.webp",
|
||||
description:
|
||||
"Moodboard/Planner highly customisable application developed with love !",
|
||||
label: "Desktop App",
|
||||
@@ -68,7 +68,7 @@ const cardData: CardDataItem[] = [
|
||||
},
|
||||
{
|
||||
title: "Shadow Purge",
|
||||
image: "/images/SPRotD.webp",
|
||||
image: "/images/projects/SPRotD.webp",
|
||||
description: "Hack n'slash RPG.",
|
||||
label: "Gamedev",
|
||||
link: "/projects/shadow-purge-rite-of-the-demon",
|
||||
|
||||
@@ -4,6 +4,7 @@ interface SEOProps {
|
||||
title: string;
|
||||
description?: string;
|
||||
image?: string;
|
||||
favicon?: string;
|
||||
url?: string;
|
||||
type?: string;
|
||||
}
|
||||
@@ -12,11 +13,11 @@ const SEO: React.FC<SEOProps> = ({
|
||||
title,
|
||||
description,
|
||||
image = "/images/Esiah-s-Universe.webp",
|
||||
url = window.location.href,
|
||||
favicon = "/images/logo.webp",
|
||||
url = typeof window !== "undefined" ? window.location.href : "",
|
||||
type = "website",
|
||||
}) => {
|
||||
useEffect(() => {
|
||||
// Mise à jour du titre
|
||||
const baseTitle = "Esiah's Universe";
|
||||
document.title = title ? `${title} | ${baseTitle}` : baseTitle;
|
||||
|
||||
@@ -27,28 +28,49 @@ const SEO: React.FC<SEOProps> = ({
|
||||
let el = document.querySelector(selector);
|
||||
if (el) {
|
||||
el.setAttribute("content", content);
|
||||
} else {
|
||||
const newMeta = document.createElement("meta");
|
||||
if (isProperty) newMeta.setAttribute("property", name);
|
||||
else newMeta.setAttribute("name", name);
|
||||
newMeta.setAttribute("content", content);
|
||||
document.head.appendChild(newMeta);
|
||||
}
|
||||
};
|
||||
|
||||
// Mise à jour des meta descriptions (Standard, OG, Twitter)
|
||||
const updateIcon = (href: string) => {
|
||||
const rels = ["icon", "shortcut icon"];
|
||||
rels.forEach((rel) => {
|
||||
let link: HTMLLinkElement | null = document.querySelector(
|
||||
`link[rel*="${rel}"]`,
|
||||
);
|
||||
if (!link) {
|
||||
link = document.createElement("link");
|
||||
link.rel = rel;
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
link.href = href;
|
||||
// Optionnel : ajuste le type MIME selon l'extension
|
||||
if (href.endsWith(".ico")) link.type = "image/x-icon";
|
||||
else if (href.endsWith(".png")) link.type = "image/png";
|
||||
});
|
||||
};
|
||||
|
||||
updateIcon(favicon);
|
||||
|
||||
if (description) {
|
||||
updateMeta("description", description);
|
||||
updateMeta("og:description", description, true);
|
||||
updateMeta("twitter:description", description);
|
||||
}
|
||||
|
||||
// Mise à jour des titres (OG, Twitter)
|
||||
updateMeta("og:title", document.title, true);
|
||||
updateMeta("twitter:title", document.title);
|
||||
|
||||
// URL et Type
|
||||
updateMeta("og:url", url, true);
|
||||
updateMeta("og:type", type, true);
|
||||
|
||||
// Image
|
||||
updateMeta("og:image", image, true);
|
||||
|
||||
// Canonical URL
|
||||
let canonical = document.querySelector('link[rel="canonical"]');
|
||||
if (!canonical) {
|
||||
canonical = document.createElement("link");
|
||||
@@ -56,7 +78,7 @@ const SEO: React.FC<SEOProps> = ({
|
||||
document.head.appendChild(canonical);
|
||||
}
|
||||
canonical.setAttribute("href", url);
|
||||
}, [title, description, image, url, type]);
|
||||
}, [title, description, image, favicon, url, type]);
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
@@ -7,7 +7,6 @@ import TargetCursor from "../cursors/TargetCursor";
|
||||
export default function BackgroundWrapper() {
|
||||
const location = useLocation();
|
||||
const isCohaise = location.pathname === "/cohaise";
|
||||
const isHome = location.pathname === "/";
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -23,7 +22,7 @@ export default function BackgroundWrapper() {
|
||||
<TargetCursor
|
||||
spinDuration={4}
|
||||
hideDefaultCursor={true}
|
||||
parallaxOn={true}
|
||||
parallaxOn={false}
|
||||
hoverDuration={1}
|
||||
/>
|
||||
)}
|
||||
@@ -53,9 +52,9 @@ export default function BackgroundWrapper() {
|
||||
) : (
|
||||
<div className="w-full h-full relative">
|
||||
<Galaxy
|
||||
mouseRepulsion={isHome}
|
||||
mouseInteraction={isHome}
|
||||
density={1.7}
|
||||
mouseRepulsion={true}
|
||||
mouseInteraction={true}
|
||||
density={1.5}
|
||||
glowIntensity={0.4}
|
||||
saturation={0}
|
||||
hueShift={360}
|
||||
@@ -63,8 +62,8 @@ export default function BackgroundWrapper() {
|
||||
rotationSpeed={0.1}
|
||||
repulsionStrength={3.5}
|
||||
autoCenterRepulsion={0}
|
||||
starSpeed={1}
|
||||
speed={1}
|
||||
starSpeed={0.8}
|
||||
speed={0.8}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -93,15 +93,15 @@ const LightPillar: React.FC<LightPillarProps> = ({
|
||||
},
|
||||
medium: {
|
||||
iterations: 40,
|
||||
waveIterations: 2,
|
||||
waveIterations: 3,
|
||||
pixelRatio: 0.65,
|
||||
precision: "mediump",
|
||||
precision: "highp",
|
||||
stepMultiplier: 1.2,
|
||||
},
|
||||
high: {
|
||||
iterations: 80,
|
||||
iterations: 70,
|
||||
waveIterations: 4,
|
||||
pixelRatio: Math.min(window.devicePixelRatio, 2),
|
||||
pixelRatio: Math.min(window.devicePixelRatio, 1.5),
|
||||
precision: "highp",
|
||||
stepMultiplier: 1.0,
|
||||
},
|
||||
|
||||
@@ -0,0 +1,827 @@
|
||||
export interface StoryLine {
|
||||
speaker: string;
|
||||
text: string;
|
||||
characterImage?: string;
|
||||
characterPosition?: "left" | "right" | "center";
|
||||
characterFlip?: boolean;
|
||||
}
|
||||
|
||||
export interface StoryChoice {
|
||||
text: string;
|
||||
nextId: string;
|
||||
}
|
||||
|
||||
export interface StoryNode {
|
||||
id: string;
|
||||
background: string;
|
||||
lines: StoryLine[];
|
||||
choices?: StoryChoice[];
|
||||
nextId?: string;
|
||||
}
|
||||
|
||||
const basePath = "/images/les-voix-de-l-exil";
|
||||
|
||||
export const DataLVDLE: Record<string, StoryNode> = {
|
||||
intro: {
|
||||
id: "intro",
|
||||
background: `${basePath}/viewSwainWatching.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "A Noxus, au cœur de la cité où résonnent les cris des arènes et où le sang sèche sur la pierre, deux jeunes hommes rêvent de liberté. Azhari, ancien érudit devenu gladiateur, et Lysandor, héritier d’un nom lié à la guerre, aspirent à fuir l’ombre de Noxus pour un renouveau.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "Depuis les sombres remparts du Bastion Immortel, ils s’élanceront à travers les Plaines de Drazhan, traverseront la mer vers Zaun, avant peut-être d’atteindre les hauteurs étincelantes de Piltover. À chaque étape, ils feront face à l’abandon, au courage et à la promesse incertaine d’un nouveau départ.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
nextId: "citation",
|
||||
},
|
||||
citation: {
|
||||
id: "intro",
|
||||
background: `${basePath}/viewImmortalBastionFromOutside.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Lysandor du Couteau",
|
||||
text: "« Je suis prêt à naître de nouveau. »",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
nextId: "chapter0",
|
||||
},
|
||||
|
||||
chapter0: {
|
||||
id: "chapter0",
|
||||
background: `${basePath}/viewNoxusInterArene.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Cette ville... ce tombeau... Ils nous forgent à coups de chaînes et d’illusions. Depuis que j'ai foulé les pierres de cette cité, je ne me souviens plus de ce que c'est que de sourire.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Ici, on ne vit pas. On survit. Et si tu n'es pas assez fort... tu n'es plus rien.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Nous sommes des ombres ici, des armes qu'ils dressent... Moi, fils d'érudit, ne servant qu'à améliorer leur technologie. Toi, héritier d'une lignée condamnée à ne connaître que la guerre...",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Et pourtant, un autre chemin existe, Azhari... Un lieu où l'esprit triomphe du glaive. Piltover.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Alors fuyons. Laissons derrière nous cette prison de pierre. Devenons ce que nous choisissons d'être.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Es-tu prêt à renoncer à tout ? Même à ton nom ?",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Je suis prêt à naître de nouveau.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "chapter1",
|
||||
},
|
||||
|
||||
chapter1: {
|
||||
id: "chapter1",
|
||||
background: `${basePath}/viewImmortalBastionFromInside.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Si on est vus en train de quitter la place haute du bastion on risque d’éveiller les soupçons non ?",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Effectivement mais avec ma réputation on devrait pouvoir se justifier à n’importe qui ! Enfin tant que nous n’avons pas à faire à Darius...",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "HALTE VOUS DEUX ! Lysandor, te voir dans la partie basse à cette heure est surprenant… J’ai presque l’impression de voir deux jeunes âmes qui fuient Noxus... Pathétique.",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "Dites-moi, pourquoi ne devrais-je pas vous abattre sur-le-champ ?",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Nous ne fuyons pas, nous partons en mission. Une tâche confiée par un supérieur, hors des frontières.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "Une mission, hein ? Et qui est ce fameux supérieur ?",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
choices: [
|
||||
{ text: "Rammus", nextId: "chapter1_rammus" },
|
||||
{ text: "Marcus", nextId: "chapter1_marcus" },
|
||||
{ text: "Ezreal", nextId: "chapter1_ezreal" },
|
||||
],
|
||||
},
|
||||
|
||||
chapter1_marcus: {
|
||||
id: "chapter1_marcus",
|
||||
background: `${basePath}/viewImmortalBastionFromInside.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "C’est mon oncle. Il nous a envoyés pour intercepter un marchand itinérant aux abords de la ville. Il transporte une relique shurimienne… Elle ne doit pas tomber entre de mauvaises mains.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "Marcus… ça change tout.",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "Ne traînez pas. Et si j’apprends que vous mentez…",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Gloire à Noxus.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "chapter2_success",
|
||||
},
|
||||
|
||||
chapter1_ezreal: {
|
||||
id: "chapter1_ezreal",
|
||||
background: `${basePath}/viewImmortalBastionFromInside.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "Tu crois me faire avaler ça ? Ezreal ? Ce gamin de Piltover ?",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "(Murmure) On ne peut pas le combattre. Il faut fuir Azhari.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "chapter2_fail",
|
||||
},
|
||||
|
||||
chapter1_rammus: {
|
||||
id: "chapter1_rammus",
|
||||
background: `${basePath}/viewImmortalBastionFromInside.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Darius",
|
||||
text: "Tu crois me faire avaler ça ? Ce Rammus est mort depuis un mois.",
|
||||
characterImage: `${basePath}/Darius.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "(Murmure) On ne peut pas le combattre. Il faut fuir Azhari.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "chapter2_fail",
|
||||
},
|
||||
|
||||
chapter2_success: {
|
||||
id: "chapter2_success",
|
||||
background: `${basePath}/viewRandomNoxusGate.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "C’est donc ça, franchir l’Empire… Ce n’est pas une victoire. C’est un arrachement.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "On ne quitte jamais vraiment Noxus. On s’arrache à elle comme on s’arracherait un bout d’âme infectée.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Vous avez fait vite. Ou alors, vous avez fui avec l’urgence de ceux qui n’ont plus rien à perdre.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Qui es-tu ? Et comment sais-tu qui nous sommes ?",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Je suis un passeur. Rien de plus. Je sais ce que je dois savoir. Et je suis là pour vous proposer une chose simple : un passage sûr, discret… à condition de m’écouter.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Et pourquoi t’aiderait-on à prix inconnu ?",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Parce que si vous refusez, je repars. Et mon prochain arrêt s’appelle Quartiers Noirs. Là où un certain Grand Général aime qu’on lui rapporte ce que ses chiens n’ont pas su attraper.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Swain...",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Je vous propose un marché. Vous m’offrez un peu d’or, ou quelque chose de plus... symbolique. En échange, je vous accompagne au-delà des Montagnes de Varjus et j’oublie que vous êtes passés. Puis vous continuerez par bateau de Rokrund à Zaun, par vos propres moyens.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Et si on refuse ?",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Alors le nom de Lysandor, deviendra une rumeur. Puis un ordre. Et ensuite… une cible.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "On doit choisir entre payer le prix ou la traque.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
],
|
||||
choices: [
|
||||
{ text: "Payer le Contrebandier", nextId: "chapter3_pay" },
|
||||
{ text: "Refuser et fuir seuls", nextId: "chapter3_refuse" },
|
||||
],
|
||||
},
|
||||
|
||||
chapter2_fail: {
|
||||
id: "chapter2_fail",
|
||||
background: `${basePath}/viewRandomNoxusGate.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "C’est donc ça, franchir l’Empire… Ce n’est pas une victoire. C’est un arrachement.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "On ne quitte jamais vraiment Noxus. On s’arrache à elle comme on s’arracherait un bout d’âme infectée.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Vous avez fait vite. Ou alors, vous avez fui avec l’urgence de ceux qui n’ont plus rien à perdre.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Qui es-tu ? Et comment sais-tu qui nous sommes ?",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Je suis un passeur. Rien de plus. Je sais ce que je dois savoir. Et je suis là pour vous proposer une chose simple : un passage sûr, discret… à condition de m’écouter.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Et pourquoi t’aiderait-on à prix inconnu ?",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Parce que si vous refusez, je repars. Et mon prochain arrêt s’appelle Quartiers Noirs. Là où un certain Grand Général aime qu’on lui rapporte ce que ses chiens n’ont pas su attraper.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Swain...",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Je vous propose un marché. Vous m’offrez un peu d’or, ou quelque chose de plus... symbolique. En échange, je vous accompagne au-delà des Montagnes de Varjus et j’oublie que vous êtes passés. Puis vous continuerez par bateau de Rokrund à Zaun, par vos propres moyens.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Et si on refuse ?",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Contrebandier",
|
||||
text: "Alors le nom de Lysandor, deviendra une rumeur. Puis un ordre. Et ensuite… une cible.",
|
||||
characterImage: `${basePath}/Contrebandier.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "On doit choisir entre payer le prix ou la traque.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
],
|
||||
choices: [
|
||||
{ text: "Payer le Contrebandier", nextId: "chapter3_refuse" },
|
||||
{ text: "Refuser et fuir seuls", nextId: "chapter3_refuse" },
|
||||
],
|
||||
},
|
||||
|
||||
// --- CHAPITRE 3 : S'ILS ONT PAYÉ (AZHARI SURVIT) ---
|
||||
|
||||
chapter3_pay: {
|
||||
id: "chapter3_pay",
|
||||
background: `${basePath}/viewZaunDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "Grâce à l'aide du contrebandier, vous avez traversé la mer sains et saufs. Vous arrivez enfin dans les bas-fonds toxiques de Zaun. Là, une jeune fille nommée Nika vous aborde.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Je connais les chemins qui mènent à la ville haute. Je peux vous faire entrer à Piltover... si vous acceptez mon marché.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
choices: [
|
||||
{
|
||||
text: "Accepter l'aide de Nika",
|
||||
nextId: "chapter3_pay_accept",
|
||||
},
|
||||
{
|
||||
text: "Refuser et se débrouiller seuls",
|
||||
nextId: "chapter3_pay_refuse",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
chapter3_pay_accept: {
|
||||
id: "chapter3_pay_accept",
|
||||
background: `${basePath}/viewZaunDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Vraiment, vous avez accepté mon marché ?! Vous allez en suer !",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Tant qu'on rejoint bientôt Piltover ça nous va !",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "J'ai hâte d'atteindre cette nouvelle vie !",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
],
|
||||
nextId: "chapter4_fin2",
|
||||
},
|
||||
|
||||
chapter3_pay_refuse: {
|
||||
id: "chapter3_pay_refuse",
|
||||
background: `${basePath}/viewZaunDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Je ne sais pas si on peut lui faire confiance...",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "On peut essayer de se débrouiller par nous-mêmes, tu as raison !",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Vraiment vous refusez mon aide ?! Vous faites une grave erreur.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
],
|
||||
nextId: "chapter4_fin1",
|
||||
},
|
||||
|
||||
// --- CHAPITRE 3 : S'ILS ONT REFUSÉ (AZHARI EST MORT) ---
|
||||
|
||||
chapter3_refuse: {
|
||||
id: "chapter3_refuse",
|
||||
background: `${basePath}/viewZaunDownSideFocused.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "Ayant refusé de payer le contrebandier, vous avez été impitoyablement traqués par les limiers de Swain. Dans le chaos de votre fuite désespérée vers Zaun, Azhari a perdu la vie...",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Piltover... si proche, et pourtant, je suis toujours là. Six mois à Zaun, et je ne sais plus si je grimpe ou si je coule.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "Zaun change ceux qui y survivent. Elle teste, elle brise, mais parfois… elle révèle.",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "L’écho d’Azhari me suit. Comme un murmure entre les conduits. Il aurait su quoi faire...",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "Il t’a laissé ses rêves, mais la route est désormais la tienne. Ne reste pas figé dans ses pas.",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Piltover nous fascinait. La cité des idées. Mais aujourd’hui, c’est Zaun qui me confronte à la réalité.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "Là-haut, la lumière est forte. Ici, l’ombre t’enseigne. Où veux-tu ouvrir les yeux ?",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Les yeux de Nika ont croisé les miens l’autre jour. Un regard, et toutes mes certitudes vacillent. Quelque chose d’indicible…",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "Ce genre de rencontres ne sont jamais anodines. Peut-être Zaun t’envoie un message ?",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "J’y ai vu une faille dans ma douleur. Une promesse. Ou une fuite ? Je n’en sais rien.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "Piltover offre un avenir construit. Zaun, un avenir à construire. Le confort ou le combat.",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Ce choix me ronge. Rester avec ce qui commence ici… ou monter là-haut, avec ses fantômes.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "N’oublie pas : ce n’est pas la ville qui donne du sens, mais ceux qui y marchent avec toi.",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Si tu choisis l’ombre, je marcherai à tes côtés. Mais si ton cœur monte vers Piltover… je le comprendrai.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "right",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Nika… j’ignorais que tu étais encore là.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "J’ai toujours été là. Parfois, il faut juste bien ouvrir les yeux, même dans les sombres profondeurs.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
choices: [
|
||||
{
|
||||
text: "Rester à Zaun avec Nika",
|
||||
nextId: "chapter4_fin3",
|
||||
},
|
||||
{
|
||||
text: "Partir à Piltover sans Azhari",
|
||||
nextId: "chapter4_fin4",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
// FIN 1 : Azhari Alive, mais refus de l'aide de Nika -> Lysandor meurt
|
||||
chapter4_fin1: {
|
||||
id: "chapter4_fin1",
|
||||
background: `${basePath}/viewPiltoverDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Voilà où vos choix vous ont mené. Piltover t’attend… seul.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "left",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Lysandor, je suis là. Mais sans toi, la lumière de cette cité me paraît bien terne.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "epilogue1",
|
||||
},
|
||||
|
||||
epilogue1: {
|
||||
id: "epilogue1",
|
||||
background: `${basePath}/viewPiltoverFocused.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "Le vent de Piltover souffle sur un homme seul. Azhari, porteur de mémoires et de blessures, a perdu plus qu’un compagnon : un idéal. Dans la cité dorée, il s’efforce de faire vivre la voix d’un exilé tombé trop tôt.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "« Même seul, je continuerai à écrire ce que nous avons commencé. »",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
nextId: "credits",
|
||||
},
|
||||
|
||||
// FIN 2 : Azhari Alive + Accepté l'aide de Nika -> Les 3 survivent
|
||||
chapter4_fin2: {
|
||||
id: "chapter4_fin2",
|
||||
background: `${basePath}/viewPiltoverDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Trois mois de survie à Zaun... mais enfin, voici Piltover.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Cette cité est peut-être votre chance. Ou votre nouveau défi. À bientôt peut-être.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "left",
|
||||
},
|
||||
{
|
||||
speaker: "Azhari",
|
||||
text: "Ensemble, on saura y tracer notre chemin.",
|
||||
characterImage: `${basePath}/AzhariShen.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "epilogue2",
|
||||
},
|
||||
|
||||
epilogue2: {
|
||||
id: "epilogue2",
|
||||
background: `${basePath}/viewPiltoverInnovationPark.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "Après trois mois de ténèbres à Zaun, Azhari et Lysandor posent enfin le pied à Piltover. Ensemble. Leurs cicatrices ne les quittent pas, mais un lien les unit désormais : celui de ceux qui ont choisi de croire, encore.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "« Nous n’avons pas tourné le dos à Noxus. Nous avons choisi un chemin que l’ambition seule ne pouvait offrir : un avenir. »",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
nextId: "credits",
|
||||
},
|
||||
|
||||
// FIN 3 : Azhari Mort + Accepté l'offre de Nika -> Rester à Zaun
|
||||
chapter4_fin3: {
|
||||
id: "chapter4_fin3",
|
||||
background: `${basePath}/viewPiltoverDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Piltover est belle… mais je préfère bâtir ma vie ici, dans l’ombre de Zaun.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "Tu trouveras plus qu’un abri ici. Tu trouveras une famille.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "epilogue3",
|
||||
},
|
||||
epilogue3: {
|
||||
id: "epilogue3",
|
||||
background: `${basePath}/viewZaunUpSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "La poussière de Zaun recouvre les souvenirs. Nika et Lysandor y construisent un foyer discret, loin des promesses de grandeur. Dans l’ombre, ils réparent ce qui peut encore l’être.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "« Certains cherchent la lumière. D’autres deviennent la flamme dans la nuit. »",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
nextId: "credits",
|
||||
},
|
||||
|
||||
// FIN 4 : Azhari Mort + Refusé Nika -> Lysandor va seul à Piltover
|
||||
chapter4_fin4: {
|
||||
id: "chapter4_fin4",
|
||||
background: `${basePath}/viewPiltoverDownSide.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "Piltover… peut-être qu'ici, je trouverai le sens à tout ça.",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "left",
|
||||
characterFlip: true,
|
||||
},
|
||||
{
|
||||
speaker: "Teeva",
|
||||
text: "Garde ton cap, mais reste méfiant. Ici, même la lumière peut aveugler.",
|
||||
characterImage: `${basePath}/Teeva.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
{
|
||||
speaker: "Nika",
|
||||
text: "J’aurais voulu que tu restes. Mais je comprends… adieu, Lysandor.",
|
||||
characterImage: `${basePath}/Nika.webp`,
|
||||
characterPosition: "right",
|
||||
},
|
||||
],
|
||||
nextId: "credits",
|
||||
},
|
||||
epilogue4: {
|
||||
id: "epilogue4",
|
||||
background: `${basePath}/viewPiltoverMainStreet.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Narrateur",
|
||||
text: "Piltover s’élève, fière et lumineuse. Lysandor y marche seul, le cœur lesté d’adieux. Ni Noxus, ni Zaun… mais peut-être une troisième voie. Une ville où ses erreurs ne seront pas oubliées, mais dépassées.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Lysandor",
|
||||
text: "« Ce n’est pas la cité qui me changera. C’est ce que j’y ferai. »",
|
||||
characterImage: `${basePath}/LysandorDuCouteau.webp`,
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
nextId: "credits",
|
||||
},
|
||||
|
||||
// ==========================================
|
||||
// CRÉDITS (ÉPILOGUE)
|
||||
// ==========================================
|
||||
credits: {
|
||||
id: "credits",
|
||||
background: `${basePath}/viewNoxusGateInShurima.webp`,
|
||||
lines: [
|
||||
{
|
||||
speaker: "Crédits",
|
||||
text: "Toutes les images, personnages, et éléments visuels utilisés dans cette histoire sont la propriété de Riot Games, de la franchise League of Legends et du studio Fortiche.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Crédits",
|
||||
text: "Ce projet est une œuvre de fan, non officielle, réalisée dans le cadre d’un projet de fin de première année, sans but commercial. Nous remercions Riot Games pour leur univers riche et inspirant.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Crédits",
|
||||
text: "Les différents sprites de personnages ont été réalisés par I.A. et inspirées par les designs originaux du studio Fortiche.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
{
|
||||
speaker: "Crédits",
|
||||
text: "Merci d'avoir joué. Choisissez bien… Chaque décision construit votre légende.",
|
||||
characterPosition: "center",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,86 @@
|
||||
export interface MenuItem {
|
||||
image: string;
|
||||
link: string;
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export const projectMenuItems: MenuItem[] = [
|
||||
{
|
||||
image: "/images/projects/Projects.webp",
|
||||
link: "/projects",
|
||||
title: "All my Projects",
|
||||
description: "To discover all my creations",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/NTR.webp",
|
||||
link: "/projects/neo-tokyo-rush",
|
||||
title: "Neo Tokyo Rush",
|
||||
description: "Cyberpunk-inspired beat 'em All game",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/PortfolioE1.webp",
|
||||
link: "https://portfolio-xesiahs-projects.vercel.app/",
|
||||
title: "Portfolio 2024",
|
||||
description: "Portfolio that gathers all my first year's projects",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/Metz-Campus.webp",
|
||||
link: "_blank https://metzcampus.fr/",
|
||||
title: "Metz Campus",
|
||||
description:
|
||||
"Website crafted for the Metz Campus organization during my first-year internship.",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/Zatyshok.webp",
|
||||
link: "/projects/zatyshok",
|
||||
title: "Затишок",
|
||||
description: "Moodboard application",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/SPRotD.webp",
|
||||
link: "/projects/shadow-purge-rite-of-the-demon",
|
||||
title: "Shadow Purge - Rite of the Demon",
|
||||
description: "Hack n'slash RPG",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/EotLS.webp",
|
||||
link: "/projects/echoes-of-the-last-stop",
|
||||
title: "Echoes of the Last Stop",
|
||||
description: "Thriller game project in collaboration with my partner",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/LesVoixDeLExil.webp",
|
||||
link: "/projects/les-voix-de-l-exil",
|
||||
title: "Les Voix de L'Exil",
|
||||
description:
|
||||
"An interactive visual novel where your choices shape the journey.",
|
||||
},
|
||||
{
|
||||
image: "/images/projects/WYG-TIWIF.webp",
|
||||
link: "/projects/wyg-tiwif",
|
||||
title: "WYG-TIWIF",
|
||||
description: "Your social travel hub",
|
||||
},
|
||||
];
|
||||
|
||||
export const mainMenuItems: MenuItem[] = [
|
||||
{
|
||||
image: "/images/projects/Projects.webp",
|
||||
link: "/projects",
|
||||
title: "All my Projects",
|
||||
description: "To discover all my creations",
|
||||
},
|
||||
{
|
||||
image: "/images/contact/contact.webp",
|
||||
link: "/contact",
|
||||
title: "Contact",
|
||||
description: "Any requests? Feel free to reach out!",
|
||||
},
|
||||
{
|
||||
image: "/images/cohaise/cohaise.webp",
|
||||
link: "/cohaise",
|
||||
title: "Co Hai Se",
|
||||
description: "About us",
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,22 @@
|
||||
export interface ProjectDownloadData {
|
||||
id: string;
|
||||
downloadUrl: string;
|
||||
}
|
||||
|
||||
export const ProjectDownloads: Record<string, ProjectDownloadData> = {
|
||||
NTR: {
|
||||
id: "NTR",
|
||||
downloadUrl: "/downloads/Neo-Tokyo-Rush.zip",
|
||||
},
|
||||
SPRotD: { id: "SPRotD", downloadUrl: "" },
|
||||
ZATYSHOK: {
|
||||
id: "ZATYSHOK",
|
||||
downloadUrl: "https://github.com/xEsiah/zatyshok-frontend/releases/tag",
|
||||
},
|
||||
EotLS: { id: "EotLS", downloadUrl: "" },
|
||||
WYGTIWIF: {
|
||||
id: "WYGTIWIF",
|
||||
downloadUrl:
|
||||
"https://codeload.github.com/xEsiah/WYG-TIWIF/zip/refs/heads/main",
|
||||
},
|
||||
};
|
||||
@@ -4,14 +4,14 @@ import HorizontalMotion from "../HorizontalMotion";
|
||||
const gameDevItems = [
|
||||
{
|
||||
id: "1",
|
||||
img: "images/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/EotLS.webp",
|
||||
img: "images/projects/EotLS.webp",
|
||||
link: "/projects/echoes-of-the-last-stop",
|
||||
title: "Echoes of the Last Stop",
|
||||
description:
|
||||
@@ -19,32 +19,40 @@ const gameDevItems = [
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
img: "images/NTR-Menu.webp",
|
||||
img: "images/projects/NTR-Menu.webp",
|
||||
link: "/projects/neo-tokyo-rush",
|
||||
title: "Neo Tokyo Rush",
|
||||
description:
|
||||
"Cyberpunk-inspired beat 'em All game made with Unity & Aseprite.",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
img: "images/projects/LesVoixDeLExil.webp",
|
||||
link: "/projects/les-voix-de-l-exil",
|
||||
title: "Les Voix de L'Exil",
|
||||
description:
|
||||
"An interactive visual novel where your choices shape the journey.",
|
||||
},
|
||||
];
|
||||
|
||||
const reactWebItems = [
|
||||
{
|
||||
id: "101",
|
||||
img: "images/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/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/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.",
|
||||
@@ -54,7 +62,7 @@ const reactWebItems = [
|
||||
const wordpressItems = [
|
||||
{
|
||||
id: "201",
|
||||
img: "images/Metz-Campus.webp",
|
||||
img: "images/projects/Metz-Campus.webp",
|
||||
link: "https://metzcampus.fr/",
|
||||
title: "Metz Campus",
|
||||
description:
|
||||
@@ -65,7 +73,7 @@ const wordpressItems = [
|
||||
const desktopAppItems = [
|
||||
{
|
||||
id: "301",
|
||||
img: "images/Zatyshok.webp",
|
||||
img: "images/projects/Zatyshok.webp",
|
||||
link: "/projects/zatyshok",
|
||||
title: "Затишок",
|
||||
description:
|
||||
@@ -76,7 +84,7 @@ const desktopAppItems = [
|
||||
const angulartWebItems = [
|
||||
{
|
||||
id: "401",
|
||||
img: "images/WYG-TIWIF.webp",
|
||||
img: "images/projects/WYG-TIWIF.webp",
|
||||
link: "/projects/wyg-tiwif",
|
||||
title: "WYG-TIWIF",
|
||||
description:
|
||||
|
||||
@@ -59,7 +59,6 @@ body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
font-family: "Orbitron", sans-serif;
|
||||
/* overflow-x: hidden; */
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import { clsx, type ClassValue } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
@@ -57,22 +57,22 @@ const techLogos = [
|
||||
const serviceItems = [
|
||||
{
|
||||
text: "Web Development",
|
||||
image: "images/webDevelopment.webp",
|
||||
image: "images/cohaise/webDevelopment.webp",
|
||||
Component: WebService,
|
||||
},
|
||||
{
|
||||
text: "Mobile Apps",
|
||||
image: "images/mobileApps.webp",
|
||||
image: "images/cohaise/mobileApps.webp",
|
||||
Component: MobileService,
|
||||
},
|
||||
{
|
||||
text: "UI/UX Design",
|
||||
image: "images/uxUI.webp",
|
||||
image: "images/cohaise/uxUI.webp",
|
||||
Component: DesignService,
|
||||
},
|
||||
{
|
||||
text: "Custom Software",
|
||||
image: "images/customSoftware.webp",
|
||||
image: "images/cohaise/customSoftware.webp",
|
||||
Component: SoftwareService,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import AnimatedContent from "@/components/AnimatedContent";
|
||||
import SEO from "@/components/SEO";
|
||||
import DownloadButton from "@/components/DownloadButton";
|
||||
|
||||
export default function EchoesOfTheLastStop() {
|
||||
return (
|
||||
@@ -25,14 +26,17 @@ export default function EchoesOfTheLastStop() {
|
||||
<p className="subtitle">
|
||||
Thriller game project in collaboration with my partner
|
||||
</p>
|
||||
<div className="flex w-[90%] mx-auto gap-10 justify-center">
|
||||
<div className="mt-40 flex justify-center w-[90%] md:w-2/3 mx-auto">
|
||||
<img
|
||||
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
|
||||
src="/images/EotLS.webp"
|
||||
src="/images/projects/EotLS.webp"
|
||||
alt="Preview of Echoes of the Last Stop game made with Unity & Aseprite"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<DownloadButton projectId="EotLS" />
|
||||
</div>
|
||||
</AnimatedContent>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import { DataLVDLE } from "../../components/data/DataLVDLE";
|
||||
import SEO from "@/components/SEO";
|
||||
|
||||
export default function LesVoixDeLExil() {
|
||||
const [currentNodeId, setCurrentNodeId] = useState<string>("intro");
|
||||
const [currentLineIndex, setCurrentLineIndex] = useState<number>(0);
|
||||
const [displayedText, setDisplayedText] = useState<string>("");
|
||||
const [isTyping, setIsTyping] = useState<boolean>(true);
|
||||
|
||||
const [isTransitioning, setIsTransitioning] = useState<boolean>(false);
|
||||
|
||||
const currentNode = DataLVDLE[currentNodeId];
|
||||
const currentLine = currentNode.lines[currentLineIndex];
|
||||
|
||||
useEffect(() => {
|
||||
let i = 0;
|
||||
let intervalId: ReturnType<typeof setInterval>;
|
||||
setIsTyping(true);
|
||||
|
||||
const delay = currentLineIndex === 0 && currentNodeId !== "intro" ? 800 : 0;
|
||||
|
||||
if (delay === 0) setDisplayedText("");
|
||||
|
||||
const timeoutId = setTimeout(() => {
|
||||
if (delay > 0) setDisplayedText("");
|
||||
const textToType = currentLine.text;
|
||||
|
||||
intervalId = setInterval(() => {
|
||||
setDisplayedText(textToType.slice(0, i + 1));
|
||||
i++;
|
||||
if (i >= textToType.length) {
|
||||
setIsTyping(false);
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
}, 30);
|
||||
}, delay);
|
||||
|
||||
return () => {
|
||||
clearTimeout(timeoutId);
|
||||
if (intervalId) clearInterval(intervalId);
|
||||
};
|
||||
}, [currentLineIndex, currentNodeId, currentLine.text]);
|
||||
|
||||
const handleSceneTransition = (nextId: string) => {
|
||||
setIsTransitioning(true);
|
||||
setTimeout(() => {
|
||||
setCurrentNodeId(nextId);
|
||||
setCurrentLineIndex(0);
|
||||
setTimeout(() => {
|
||||
setIsTransitioning(false);
|
||||
}, 50);
|
||||
}, 700);
|
||||
};
|
||||
|
||||
const handleNextClick = () => {
|
||||
if (isTransitioning) return;
|
||||
if (isTyping) {
|
||||
setDisplayedText(currentLine.text);
|
||||
setIsTyping(false);
|
||||
} else {
|
||||
const isLastLine = currentLineIndex === currentNode.lines.length - 1;
|
||||
|
||||
if (!isLastLine) {
|
||||
setCurrentLineIndex((prev) => prev + 1);
|
||||
} else if (currentNode.nextId && !currentNode.choices) {
|
||||
handleSceneTransition(currentNode.nextId);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const handleChoice = (nextId: string, e: React.MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
handleSceneTransition(nextId);
|
||||
};
|
||||
|
||||
const isLastLineAndFinishedTyping =
|
||||
currentLineIndex === currentNode.lines.length - 1 && !isTyping;
|
||||
|
||||
const isNarration =
|
||||
currentLine.speaker === "Narrateur" || currentLine.speaker === "Crédits";
|
||||
|
||||
return (
|
||||
<>
|
||||
<SEO
|
||||
title="Les Voix de L'Exil"
|
||||
description="Plongez dans l'univers de Zaun et Piltover. Une aventure interactive où vos choix détermineront votre destin."
|
||||
favicon="/images/icon.ico"
|
||||
/>
|
||||
|
||||
<div
|
||||
className="fixed inset-0 w-full h-full overflow-hidden bg-[#555555] select-none font-[roboto] cursor-crosshair z-999999"
|
||||
onClick={handleNextClick}
|
||||
>
|
||||
<div className="w-full h-full relative pointer-events-auto">
|
||||
<div
|
||||
className="absolute inset-0 bg-cover bg-center transition-all duration-1000 ease-in-out z-0"
|
||||
style={{ backgroundImage: `url(${currentNode.background})` }}
|
||||
>
|
||||
<div className="absolute inset-0 bg-black/50" />
|
||||
</div>
|
||||
|
||||
{/* TITRE DU JEU */}
|
||||
{currentNodeId === "intro" && (
|
||||
<div className="absolute top-[15%] left-1/2 -translate-x-1/2 w-[90%] max-w-4xl font-['Cinzel',serif] z-100">
|
||||
<div className="bg-[#1e1e22b0] border-l-[5px] border-[#c3073f] p-8 shadow-[0_0_20px_rgba(0,0,0,0.5)] rounded-lg">
|
||||
<h1 className="text-4xl md:text-6xl font-bold text-white uppercase tracking-widest mb-4">
|
||||
Les Voix de L'Exil
|
||||
</h1>
|
||||
<p className="text-gray-300 text-lg md:text-xl italic text-right mt-6">
|
||||
Choisissez bien… Chaque décision construit votre légende.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* SPRITES DES PERSONNAGES */}
|
||||
{currentLine.characterImage && (
|
||||
<div
|
||||
className={`absolute bottom-0 h-[70%] md:h-[85%] transition-all duration-500 ease-out drop-shadow-2xl z-20 ${
|
||||
currentLine.characterPosition === "left"
|
||||
? "left-[-5%] md:left-10"
|
||||
: currentLine.characterPosition === "right"
|
||||
? "right-[-5%] md:right-10"
|
||||
: "left-1/2 -translate-x-1/2"
|
||||
}`}
|
||||
>
|
||||
<img
|
||||
src={currentLine.characterImage}
|
||||
alt={currentLine.speaker}
|
||||
className={`h-full w-full object-contain ${
|
||||
currentLine.characterFlip ? "-scale-x-100" : ""
|
||||
}`}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* BOÎTES DE DIALOGUES */}
|
||||
<div
|
||||
className={`absolute bottom-[10%] md:bottom-[15%] z-30 font-['Cinzel',serif] bg-[#1b1b1bb6] text-[#f0f0f0] border-2 border-[#8b0d26] shadow-[0_0_15px_rgba(139,13,38,0.6)] p-6 md:p-8 text-xl md:text-2xl w-[90%] md:w-[40%] transition-all duration-500 ${
|
||||
isNarration ? "opacity-0 pointer-events-none" : "opacity-100"
|
||||
} ${
|
||||
currentLine.characterPosition === "left"
|
||||
? "left-[5%] md:left-[20%] text-left rounded-tr-2xl rounded-tl-2xl rounded-br-2xl rounded-bl-none"
|
||||
: currentLine.characterPosition === "right"
|
||||
? "right-[5%] md:right-[20%] text-right rounded-tl-2xl rounded-tr-2xl rounded-bl-2xl rounded-br-none"
|
||||
: "left-1/2 -translate-x-1/2 text-center rounded-2xl"
|
||||
}`}
|
||||
>
|
||||
<h3 className="font-bold text-[#c3073f] mb-3 tracking-wider">
|
||||
{currentLine.speaker}
|
||||
</h3>
|
||||
<p className="leading-relaxed min-h-20">
|
||||
{!isNarration ? displayedText : ""}
|
||||
</p>
|
||||
|
||||
{currentLineIndex < currentNode.lines.length - 1 && !isTyping && (
|
||||
<div
|
||||
className={`absolute -bottom-8 ${
|
||||
currentLine.characterPosition === "right"
|
||||
? "left-6"
|
||||
: "right-6"
|
||||
} animate-bounce text-2xl text-[#c3073f]`}
|
||||
>
|
||||
▼
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* ÉCRAN DE NARRATION */}
|
||||
<div
|
||||
className={`absolute inset-0 flex flex-col justify-center items-center text-center p-10 font-['Cinzel',serif] text-white transition-opacity duration-1000 ease-in-out z-40 ${
|
||||
currentNodeId === "intro" ? "bg-black/70" : "bg-black"
|
||||
} ${
|
||||
isNarration
|
||||
? "opacity-100 pointer-events-auto"
|
||||
: "opacity-0 pointer-events-none"
|
||||
}`}
|
||||
>
|
||||
<p
|
||||
className={`max-w-4xl text-2xl md:text-4xl leading-relaxed text-[#f0f0f0] transition-opacity duration-300 ${
|
||||
currentNodeId === "intro" ? "mt-48" : ""
|
||||
} ${isNarration ? "opacity-100" : "opacity-0"}`}
|
||||
>
|
||||
{isNarration ? displayedText : ""}
|
||||
</p>
|
||||
{isNarration &&
|
||||
currentLineIndex < currentNode.lines.length - 1 &&
|
||||
!isTyping && (
|
||||
<div className="absolute bottom-10 animate-bounce text-3xl text-gray-400">
|
||||
▼
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* ÉCRAN DE CHOIX */}
|
||||
{isLastLineAndFinishedTyping && currentNode.choices && (
|
||||
<div className="absolute inset-0 bg-black/70 backdrop-blur-sm flex flex-col md:flex-row flex-wrap items-center justify-center gap-6 z-50 pointer-events-auto p-4 transition-opacity duration-500 opacity-100">
|
||||
{currentNode.choices.map((choice, idx) => (
|
||||
<button
|
||||
key={idx}
|
||||
onClick={(e) => handleChoice(choice.nextId, e)}
|
||||
className="bg-[#1e1e22] text-[#e0e0e0] font-['Cinzel',serif] font-bold text-lg md:text-xl px-8 py-4 border-2 border-[#640a1c] rounded-lg shadow-[0_0_10px_rgba(139,13,38,0.4)] hover:bg-[#8b0d26] hover:-translate-y-1 hover:shadow-[0_0_20px_rgba(139,13,38,0.8)] transition-all duration-300 min-w-50"
|
||||
>
|
||||
{choice.text}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* BOUTON REJOUER */}
|
||||
{isLastLineAndFinishedTyping &&
|
||||
!currentNode.choices &&
|
||||
!currentNode.nextId && (
|
||||
<div className="absolute inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center z-50 pointer-events-auto transition-opacity duration-500 opacity-100">
|
||||
<button
|
||||
onClick={(e) => handleChoice("intro", e)}
|
||||
className="bg-[#8b0d26] text-[#f0f0f0] font-['Cinzel',serif] font-bold text-xl px-10 py-5 border-2 border-[#640a1c] rounded-xl shadow-[0_0_15px_rgba(139,13,38,0.6)] hover:bg-[#c3073f] hover:-translate-y-1 transition-all duration-300 uppercase tracking-widest"
|
||||
>
|
||||
Rejouer l'aventure
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div
|
||||
className={`absolute inset-0 bg-black z-200 transition-opacity duration-700 ease-in-out pointer-events-none ${
|
||||
isTransitioning ? "opacity-100" : "opacity-0"
|
||||
}`}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import AnimatedContent from "@/components/AnimatedContent";
|
||||
import SEO from "@/components/SEO";
|
||||
import DownloadButton from "@/components/DownloadButton";
|
||||
|
||||
export default function NeoTokyoRush() {
|
||||
return (
|
||||
@@ -23,21 +24,24 @@ export default function NeoTokyoRush() {
|
||||
<section className="main-section">
|
||||
<h1 className="title">Neo Tokyo Rush</h1>
|
||||
<p className="subtitle">Cyberpunk-inspired beat 'em All game</p>
|
||||
<div className="flex w-[90%] mx-auto gap-10 justify-center">
|
||||
<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"
|
||||
src="/images/projects/NTR-Menu.webp"
|
||||
alt="Menu principal du jeu Neo Tokyo Rush, un beat 'em all cyberpunk développé avec 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"
|
||||
src="/images/projects/NTR-Lvl.webp"
|
||||
alt="Capture d'écran du gameplay de Neo Tokyo Rush montrant l'esthétique néon et les mécaniques de combat"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
<DownloadButton projectId="NTR" />
|
||||
</div>
|
||||
</AnimatedContent>
|
||||
);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import AnimatedContent from "@/components/AnimatedContent";
|
||||
import DownloadButton from "@/components/DownloadButton";
|
||||
import SEO from "@/components/SEO";
|
||||
|
||||
export default function ShadowPurgeRiteOfTheDemon() {
|
||||
@@ -23,14 +24,17 @@ export default function ShadowPurgeRiteOfTheDemon() {
|
||||
<section className="main-section">
|
||||
<h1 className="title">Shadow Purge : Rite of the Demon</h1>
|
||||
<p className="subtitle">Hack n'slash RPG</p>
|
||||
<div className="flex w-[90%] mx-auto gap-10 justify-center">
|
||||
<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"
|
||||
src="/images/projects/SPRotD.webp"
|
||||
alt="Preview of Shadow Purge : Rite of the Demon game made with Unity & Aseprite"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
<DownloadButton projectId="SPRotD" />
|
||||
</div>
|
||||
</AnimatedContent>
|
||||
);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import AnimatedContent from "@/components/AnimatedContent";
|
||||
import SEO from "@/components/SEO";
|
||||
import DownloadButton from "@/components/DownloadButton";
|
||||
|
||||
export default function WYGTIWIF() {
|
||||
return (
|
||||
@@ -26,6 +27,7 @@ export default function WYGTIWIF() {
|
||||
Your social travel hub. A Full Stack (MEAN) application to build
|
||||
your travel wishlist and follow other users' journeys.
|
||||
</p>
|
||||
<div className="flex w-[90%] mx-auto gap-10 justify-center">
|
||||
<a
|
||||
href="https://github.com/xEsiah/WYG-TIWIF"
|
||||
target="_blank"
|
||||
@@ -34,11 +36,13 @@ export default function WYGTIWIF() {
|
||||
>
|
||||
<img
|
||||
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
|
||||
src="/images/WYG-TIWIF.webp"
|
||||
src="/images/projects/WYG-TIWIF.webp"
|
||||
alt="Preview of WYG-TIWIF app made with Angular"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
<DownloadButton projectId="WYGTIWIF" />
|
||||
</div>
|
||||
</AnimatedContent>
|
||||
);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import AnimatedContent from "@/components/AnimatedContent";
|
||||
import SEO from "@/components/SEO";
|
||||
import DownloadButton from "@/components/DownloadButton";
|
||||
|
||||
export default function Zatyshok() {
|
||||
return (
|
||||
@@ -34,11 +35,12 @@ export default function Zatyshok() {
|
||||
>
|
||||
<img
|
||||
className="w-full rounded-[20px] hover:opacity-80 transition-opacity"
|
||||
src="/images/Zatyshok.webp"
|
||||
src="/images/projects/Zatyshok.webp"
|
||||
alt="Preview of Zatyshok desktop app made with Electron"
|
||||
/>
|
||||
</a>
|
||||
</section>
|
||||
<DownloadButton projectId="ZATYSHOK" />
|
||||
</div>
|
||||
</AnimatedContent>
|
||||
);
|
||||
|
||||
@@ -8,7 +8,7 @@ const __dirname = path.dirname(__filename);
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1000,
|
||||
chunkSizeWarningLimit: 3500,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
|
||||