diff --git a/index.html b/index.html index 2aa5d59..92c31c8 100644 --- a/index.html +++ b/index.html @@ -4,10 +4,55 @@ - Esiah's Universe + Esiah's Universe | Where Code meets Creativity + + + + + + + + + + + + + + + + + +
- + diff --git a/public/images/Zatyshok.webp b/public/images/Zatyshok.webp index ea86edc..17fe851 100644 Binary files a/public/images/Zatyshok.webp and b/public/images/Zatyshok.webp differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..2932db1 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://esiah.dev/sitemap.xml \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..2321898 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,12 @@ + + + https://esiah.dev/1.0 + https://esiah.dev/projects0.8 + https://esiah.dev/contact0.5 + https://esiah.dev/cohaise0.7 + https://esiah.dev/projects/neo-tokyo-rush0.6 + https://esiah.dev/projects/echoes-of-the-last-stop0.6 + https://esiah.dev/projects/shadow-purge-rite-of-the-demon0.6 + https://esiah.dev/projects/zatyshok0.6 + https://esiah.dev/projects/wyg-tiwif0.6 + \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 525fae3..fbf42b0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,54 +1,74 @@ -import React, { Suspense, lazy } from "react"; -import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import { Suspense, lazy, useState, useEffect } from "react"; +import { + BrowserRouter as Router, + Routes, + Route, + useLocation, +} from "react-router-dom"; import BackgroundWrapper from "./components/backgrounds/BackgroundWrapper"; import CardNav from "./components/CardNav"; -import Home from "./pages/Home"; -import Contact from "./pages/Contact"; -import Projects from "./pages/Projects"; +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")); -import Zatyshok from "./pages/projects/Zatyshok"; -import NeoTokyoRush from "./pages/projects/NeoTokyoRush"; -import EchoesOfTheLastStop from "./pages/projects/EchoesOfTheLastStop"; -import ShadowPurgeRiteOfTheDemon from "./pages/projects/ShadowPurgeRiteOfTheDemon"; +const Zatyshok = lazy(() => import("./pages/projects/Zatyshok")); +const NeoTokyoRush = lazy(() => import("./pages/projects/NeoTokyoRush")); +const EchoesOfTheLastStop = lazy( + () => import("./pages/projects/EchoesOfTheLastStop"), +); +const ShadowPurgeRiteOfTheDemon = lazy( + () => import("./pages/projects/ShadowPurgeRiteOfTheDemon"), +); import ScrollToTop from "./components/ScrollToTop"; -import WYGTIWIF from "./pages/projects/WYG-TIWIF"; +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); + + // On laisse l'écran au moins 600ms pour que l'animation warp soit visible + const timer = setTimeout(() => { + setIsPageLoading(false); + }, 600); + + return () => clearTimeout(timer); + }, [location.pathname]); + return ( <> + {isPageLoading && }
- - } /> - } /> - Loading Universe...} - > - - - } - /> - } /> - } /> - } - /> - } - /> - } /> - } /> - + }> + + } /> + } /> + } /> + } /> + } /> + } + /> + } + /> + } /> + } /> + +