import { useState } from "react"; import { Link, useLocation, useNavigate } from "react-router-dom"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import SupabaseStatus from "./SupabaseStatus"; import { useAuth } from "@/contexts/AuthContext"; import ArmSwitcher from "./ArmSwitcher"; import NotificationBell from "@/components/notifications/NotificationBell"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from "@/components/ui/sheet"; import { User, Settings, LogOut, Sparkles, UserCircle, Menu, BookOpen, Shield, } from "lucide-react"; interface LayoutProps { children: React.ReactNode; hideFooter?: boolean; } const ARMS = [ { id: "staff", label: "Staff", color: "#7c3aed", href: "/staff" }, { id: "labs", label: "Labs", color: "#FBBF24", href: "/labs" }, { id: "gameforge", label: "GameForge", color: "#22C55E", href: "/gameforge" }, { id: "corp", label: "Corp", color: "#3B82F6", href: "/corp" }, { id: "foundation", label: "Foundation", color: "#EF4444", href: "/foundation", }, { id: "devlink", label: "Dev-Link", color: "#06B6D4", href: "/dev-link" }, { id: "nexus", label: "Nexus", color: "#A855F7", href: "/nexus" }, ]; const ARM_LOGOS: Record = { staff: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fc0414efd7af54ef4b821a05d469150d0?format=webp&width=800", labs: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fd93f7113d34347469e74421c3a3412e5?format=webp&width=800", gameforge: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fcd3534c1caa0497abfd44224040c6059?format=webp&width=800", corp: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fae654ecc18b241bdab273893e8231970?format=webp&width=800", foundation: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fc02cb1bf5056479bbb3ea4bd91f0d472?format=webp&width=800", devlink: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F9a96b43cbd7b49bb9d5434580319c793?format=webp&width=800", nexus: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F6df123b87a144b1fb99894d94198d97b?format=webp&width=800", }; export default function CodeLayout({ children, hideFooter }: LayoutProps) { const location = useLocation(); const navigate = useNavigate(); const { user, profile, signOut, loading, profileComplete } = useAuth(); const navigation = [ { name: "Home", href: "/" }, { name: "Realms", href: "/realms" }, { name: "Get Started", href: "/onboarding" }, { name: "Engage", href: "/engage" }, { name: "Roadmap", href: "/roadmap" }, { name: "Projects", href: "/projects" }, { name: "Teams", href: "/teams" }, { name: "Squads", href: "/squads" }, { name: "Mentee Hub", href: "/mentee-hub" }, { name: "Directory", href: "/directory" }, { name: "Developers", href: "/developers" }, { name: "Creators", href: "/creators" }, { name: "Opportunities", href: "/opportunities" }, { name: "About", href: "/about" }, { name: "Contact", href: "/contact" }, ]; const publicNavigation = [ { name: "Home", href: "/" }, { name: "About", href: "/about" }, { name: "Blog", href: "/blog" }, { name: "Community", href: "/community" }, { name: "Contact", href: "/contact" }, { name: "Documentation", href: "/docs" }, ]; const userNavigation = [ { name: "Dashboard", href: "/dashboard" }, { name: "Realms", href: "/realms" }, { name: "Teams", href: "/teams" }, { name: "Squads", href: "/squads" }, { name: "Mentee Hub", href: "/mentee-hub" }, { name: "Feed", href: "/feed" }, { name: "Engage", href: "/engage" }, { name: "Roadmap", href: "/roadmap" }, { name: "Projects", href: "/projects" }, { name: "Developers", href: "/developers" }, { name: "Creators", href: "/creators" }, { name: "Opportunities", href: "/opportunities" }, { name: "My Applications", href: "/profile/applications" }, { name: "Home", href: "/" }, { name: "About", href: "/about" }, { name: "Contact", href: "/contact" }, ]; const passportHref = profile?.username ? `/passport/${profile.username}` : "/passport/me"; const navItems: { name: string; href: string }[] = []; const scrollToTop = () => { window.scrollTo({ top: 0, behavior: "smooth" }); }; return (
{/* Logo */}
{/* Desktop - Regular Link */} AeThex Logo {/* Mobile - Spinning Logo Button */}
{/* Navigation */}
{children}
{!hideFooter && (
{/* Company Info */}
AeThex Logo AeThex

Pushing the boundaries of technology through cutting-edge research and breakthrough discoveries.

Queen Creek, Arizona

info@aethex.biz

(346) 556-7100

{/* Services */}

Services

  • Game Development
  • Development Consulting
  • Mentorship Programs
  • Research & Labs
{/* Company */}

Company

  • About AeThex
  • Opportunities
  • Community Hub
  • Changelog
  • System Status
  • Investors
{/* Resources */}

Resources

  • Documentation
  • Tutorials
  • Blog
  • Support Center
  • Transparency
  • Press Kit

© 2024 AeThex Corporation. All rights reserved.

Privacy Policy Terms of Service
)} {/* Supabase Configuration Status */}
); }