diff --git a/client/pages/Foundation.tsx b/client/pages/Foundation.tsx index 10cc2547..a581dbbb 100644 --- a/client/pages/Foundation.tsx +++ b/client/pages/Foundation.tsx @@ -12,9 +12,38 @@ import { GraduationCap, } 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 Foundation() { const navigate = useNavigate(); + const [isLoading, setIsLoading] = useState(true); + const toastShownRef = useRef(false); + + useEffect(() => { + const timer = setTimeout(() => { + setIsLoading(false); + if (!toastShownRef.current) { + aethexToast.system("Foundation network connected"); + toastShownRef.current = true; + } + }, 900); + + return () => clearTimeout(timer); + }, []); + + if (isLoading) { + return ( + + ); + } const openSourceProjects = [ {