import Layout from "@/components/Layout"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent } from "@/components/ui/card"; import { Heart, ExternalLink, ArrowRight, Gamepad2, Users, Code, GraduationCap, Sparkles, Trophy, Compass, ExternalLink, } from "lucide-react"; import { useEffect, useState } from "react"; import LoadingScreen from "@/components/LoadingScreen"; export default function Foundation() { const [isLoading, setIsLoading] = useState(true); const [showTldr, setShowTldr] = useState(false); const [showExitModal, setShowExitModal] = useState(false); const toastShownRef = useRef(false); useEffect(() => { const timer = setTimeout(() => { setIsLoading(false); }, 900); return () => clearTimeout(timer); }, []); // Countdown timer for auto-redirect useEffect(() => { if (isLoading) return; const interval = setInterval(() => { setCountdown((prev) => { if (prev <= 1) { window.location.href = "https://aethex.foundation"; return 0; } return prev - 1; }); }, 1000); return () => clearInterval(interval); }, [isLoading]); const handleRedirect = () => { window.location.href = "https://aethex.foundation"; }; // Exit intent detection useEffect(() => { const handleMouseLeave = (e: MouseEvent) => { if (e.clientY <= 0 && !showExitModal) { setShowExitModal(true); } }; document.addEventListener('mouseleave', handleMouseLeave); return () => document.removeEventListener('mouseleave', handleMouseLeave); }, [showExitModal]); if (isLoading) { return ( ); } return (
{/* Persistent Info Banner */}

Foundation is hosted at{" "} aethex.foundation

{/* Hero Section */}
Foundation Logo
501(c)(3) Non-Profit Organization

AeThex Foundation

Building community, empowering developers, and advancing game development through open-source innovation and mentorship.

{/* TL;DR Section */}
{showTldr && (

TL;DR

  • 501(c)(3) non-profit focused on game development
  • GameForge flagship program (30-day sprints)
  • Open-source Axiom Protocol for game dev
  • Master-apprentice mentorship model
  • Community hub at aethex.foundation
)}
{/* Flagship: GameForge Section */}
🚀 GameForge: Our Flagship Program

30-day mentorship sprints where developers ship real games

Non-Profit Guardian

AeThex Foundation

The heart of our ecosystem. Dedicated to community, mentorship, and advancing game development through open-source innovation.

{/* Redirect Notice */}
Foundation Has Moved

The AeThex Foundation now has its own dedicated home. Visit our new site for programs, resources, and community updates.

Redirecting automatically in {countdown} seconds...

{/* Quick Links */} {/* Footer Note */}

The AeThex Foundation is a 501(c)(3) non-profit organization dedicated to advancing game development education and community.

{/* Exit Intent Modal */} {showExitModal && (

Join Our Community

Be part of the AeThex Foundation 501(c)(3) - where developers learn, grow, and ship together.

)}
); }