From f545ce34960ff446e4c9cc9afc215792e9eecec5 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 6 Nov 2025 19:40:24 +0000 Subject: [PATCH] completionId: cgen-1a67889a975c439a8300417fb0a6f279 cgen-1a67889a975c439a8300417fb0a6f279 --- client/components/PageTransition.tsx | 44 ++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/client/components/PageTransition.tsx b/client/components/PageTransition.tsx index 31e4d012..25b94179 100644 --- a/client/components/PageTransition.tsx +++ b/client/components/PageTransition.tsx @@ -6,29 +6,49 @@ interface PageTransitionProps { children: React.ReactNode; } -const getArmMessage = (pathname: string): string => { +const getArmConfig = ( + pathname: string +): { message: string; accentColor: string } => { if (pathname.includes("/labs") || pathname.includes("/research")) { - return "Initializing Research Module..."; + return { + message: "Initializing Research Module...", + accentColor: "from-yellow-500 to-yellow-400", + }; } if (pathname.includes("/game-development")) { - return "Booting GameForge Engine..."; + return { + message: "Booting GameForge Engine...", + accentColor: "from-green-500 to-green-400", + }; } if (pathname.includes("/consulting")) { - return "Engaging Corp Systems..."; + return { + message: "Engaging Corp Systems...", + accentColor: "from-blue-500 to-blue-400", + }; } if (pathname.includes("/community")) { - return "Connecting Foundation Network..."; + return { + message: "Connecting Foundation Network...", + accentColor: "from-red-500 to-red-400", + }; } if (pathname.includes("/dev-link")) { - return "Loading Dev-Link Platform..."; + return { + message: "Loading Dev-Link Platform...", + accentColor: "from-cyan-500 to-cyan-400", + }; } - return "Initializing AeThex OS..."; + return { + message: "Initializing AeThex OS...", + accentColor: "from-aethex-500 to-neon-blue", + }; }; export default function PageTransition({ children }: PageTransitionProps) { const [visible, setVisible] = useState(false); const location = useLocation(); - const message = getArmMessage(location.pathname); + const config = getArmConfig(location.pathname); useEffect(() => { setVisible(false); @@ -38,7 +58,13 @@ export default function PageTransition({ children }: PageTransitionProps) { return ( <> - {!visible && } + {!visible && ( + + )}