feat: add InfiniteCarousel component and Cohaise page with service details and tech logos

This commit is contained in:
2026-03-29 21:51:06 +02:00
parent e69d0c322c
commit 6a2bbecc84
28 changed files with 274 additions and 364 deletions
+25 -1
View File
@@ -7,9 +7,9 @@ import {
} from "react-router-dom";
import BackgroundWrapper from "./components/backgrounds/BackgroundWrapper";
import CardNav from "./components/CardNav";
import LoadingScreen from "./components/LoadingScreen";
import ScrollToTop from "./components/ScrollToTop";
import CardNav from "./components/CardNav";
const Home = lazy(() => import("./pages/Home"));
const Contact = lazy(() => import("./pages/Contact"));
@@ -33,11 +33,35 @@ function AppContent() {
const immersivePages = ["/projects/les-voix-de-l-exil"];
const isImmersive = immersivePages.includes(location.pathname);
useEffect(() => {
const handleGlobalClick = (e: MouseEvent) => {
const target = (e.target as HTMLElement).closest("a");
if (
target &&
target.href &&
target.origin === window.location.origin &&
target.target !== "_blank" &&
!e.ctrlKey &&
!e.metaKey
) {
const currentPath = window.location.pathname;
const targetPath = new URL(target.href).pathname;
if (currentPath !== targetPath) {
setIsPageLoading(true);
}
}
};
document.addEventListener("click", handleGlobalClick);
return () => document.removeEventListener("click", handleGlobalClick);
}, []);
useEffect(() => {
setIsPageLoading(true);
const timer = setTimeout(() => {
setIsPageLoading(false);
}, 600);
return () => clearTimeout(timer);
}, [location.pathname]);