From 5b49ee2db59bf220fb8b72da9bf8d43ad5b4169f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 19:43:17 +0000 Subject: [PATCH] completionId: cgen-daa6710eb0674a09b6404a442e919e17 cgen-daa6710eb0674a09b6404a442e919e17 --- client/pages/Foundation.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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 = [ {