diff --git a/client/pages/Corp.tsx b/client/pages/Corp.tsx index 664e26c5..755609b0 100644 --- a/client/pages/Corp.tsx +++ b/client/pages/Corp.tsx @@ -11,9 +11,38 @@ import { ArrowRight, } from "lucide-react"; import { useNavigate } from "react-router-dom"; +import { useEffect, useState, useRef } from "react"; +import LoadingScreen from "@/components/LoadingScreen"; +import { aethexToast } from "@/lib/aethex-toast"; export default function Corp() { const navigate = useNavigate(); + const [isLoading, setIsLoading] = useState(true); + const toastShownRef = useRef(false); + + useEffect(() => { + const timer = setTimeout(() => { + setIsLoading(false); + if (!toastShownRef.current) { + aethexToast.system("Corp systems engaged"); + toastShownRef.current = true; + } + }, 900); + + return () => clearTimeout(timer); + }, []); + + if (isLoading) { + return ( + + ); + } const highlights = [ {