From 0af22f0488645f688bc6f0f8e05a080a88e5013b Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 5 Aug 2025 23:41:41 +0000 Subject: [PATCH] Prettier format pending files --- client/App.tsx | 50 ++- client/components/Layout.tsx | 162 ++++++++-- client/components/LoadingScreen.tsx | 53 ++-- client/components/PageTransition.tsx | 12 +- client/components/Skeleton.tsx | 53 ++-- client/components/onboarding/Experience.tsx | 129 +++++--- client/components/onboarding/Interests.tsx | 201 ++++++------ client/components/onboarding/PersonalInfo.tsx | 58 ++-- .../onboarding/UserTypeSelection.tsx | 123 +++++--- client/components/onboarding/Welcome.tsx | 145 +++++++-- client/components/ui/button.tsx | 21 +- client/components/ui/toast.tsx | 3 +- client/global.css | 191 ++++++++--- client/pages/Blog.tsx | 136 +++++--- client/pages/Community.tsx | 207 ++++++++---- client/pages/Dashboard.tsx | 222 +++++++++---- client/pages/DevelopmentConsulting.tsx | 296 ++++++++++++------ client/pages/Documentation.tsx | 150 ++++++--- client/pages/GameDevelopment.tsx | 241 +++++++++----- client/pages/Index.tsx | 130 ++++++-- client/pages/Login.tsx | 73 +++-- client/pages/MentorshipPrograms.tsx | 291 +++++++++++------ client/pages/NotFound.tsx | 134 +++++--- client/pages/Onboarding.tsx | 42 ++- client/pages/Placeholder.tsx | 52 ++- client/pages/ResearchLabs.tsx | 214 +++++++++---- client/pages/Support.tsx | 242 +++++++++----- 27 files changed, 2503 insertions(+), 1128 deletions(-) diff --git a/client/App.tsx b/client/App.tsx index aebffbea..11af5af1 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -51,13 +51,53 @@ const App = () => ( } /> {/* Placeholder routes for navigation links */} - } /> - } /> - } /> + + } + /> + + } + /> + + } + /> {/* Legal routes */} - } /> - } /> + + } + /> + + } + /> {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} } /> diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 653f24b4..a791d12c 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -17,7 +17,7 @@ export default function Layout({ children }: LayoutProps) { ]; const scrollToTop = () => { - window.scrollTo({ top: 0, behavior: 'smooth' }); + window.scrollTo({ top: 0, behavior: "smooth" }); }; return ( @@ -32,7 +32,9 @@ export default function Layout({ children }: LayoutProps) { alt="AeThex Logo" className="h-10 w-10 transition-all duration-300 group-hover:scale-110 group-hover:rotate-12" /> - AeThex + + AeThex + @@ -46,7 +48,7 @@ export default function Layout({ children }: LayoutProps) { "text-sm font-medium transition-all duration-300 hover:text-aethex-400 hover:scale-105 relative animate-fade-in", location.pathname === item.href ? "text-aethex-500 animate-pulse-glow" - : "text-muted-foreground" + : "text-muted-foreground", )} style={{ animationDelay: `${index * 0.1}s` }} > @@ -60,10 +62,17 @@ export default function Layout({ children }: LayoutProps) { {/* CTA */}
- -
@@ -83,55 +92,154 @@ export default function Layout({ children }: LayoutProps) { alt="AeThex Logo" className="h-6 w-6 transition-all duration-300 group-hover:scale-110 group-hover:rotate-6" /> - AeThex + + AeThex +

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

{/* Services */} -
-

Services

+
+

+ Services +

    -
  • Game Development
  • -
  • Development Consulting
  • -
  • Mentorship Programs
  • -
  • Research & Labs
  • +
  • + + Game Development + +
  • +
  • + + Development Consulting + +
  • +
  • + + Mentorship Programs + +
  • +
  • + + Research & Labs + +
{/* Resources */} -
-

Resources

+
+

+ Resources +

    -
  • Documentation
  • -
  • Blog
  • -
  • Community
  • -
  • Support
  • +
  • + + Documentation + +
  • +
  • + + Blog + +
  • +
  • + + Community + +
  • +
  • + + Support + +
{/* Contact */} -
-

Contact

+
+

+ Contact +

    -
  • Queen Creek, Arizona
  • -
  • info@aethex.biz
  • -
  • (530) 784-1287
  • +
  • + Queen Creek, Arizona +
  • +
  • + info@aethex.biz +
  • +
  • + (530) 784-1287 +
-
+

© 2024 AeThex Corporation. All rights reserved.

- + Privacy Policy - + Terms of Service
diff --git a/client/components/LoadingScreen.tsx b/client/components/LoadingScreen.tsx index dc1e5944..402f284d 100644 --- a/client/components/LoadingScreen.tsx +++ b/client/components/LoadingScreen.tsx @@ -3,18 +3,18 @@ import { cn } from "@/lib/utils"; interface LoadingScreenProps { message?: string; - variant?: 'full' | 'overlay' | 'inline'; - size?: 'sm' | 'md' | 'lg'; + variant?: "full" | "overlay" | "inline"; + size?: "sm" | "md" | "lg"; showProgress?: boolean; duration?: number; } -export default function LoadingScreen({ - message = "Loading...", - variant = 'full', - size = 'md', +export default function LoadingScreen({ + message = "Loading...", + variant = "full", + size = "md", showProgress = false, - duration = 3000 + duration = 3000, }: LoadingScreenProps) { const [progress, setProgress] = useState(0); const [currentMessage, setCurrentMessage] = useState(message); @@ -22,8 +22,8 @@ export default function LoadingScreen({ useEffect(() => { if (showProgress) { const interval = setInterval(() => { - setProgress(prev => { - const newProgress = prev + (100 / (duration / 100)); + setProgress((prev) => { + const newProgress = prev + 100 / (duration / 100); return newProgress > 100 ? 100 : newProgress; }); }, 100); @@ -38,10 +38,10 @@ export default function LoadingScreen({ "Loading quantum processors...", "Calibrating neural networks...", "Synchronizing data streams...", - "Preparing your experience..." + "Preparing your experience...", ]; - if (variant === 'full') { + if (variant === "full") { let index = 0; const interval = setInterval(() => { setCurrentMessage(messages[index % messages.length]); @@ -53,26 +53,29 @@ export default function LoadingScreen({ }, [variant]); const sizeClasses = { - sm: 'h-4 w-4', - md: 'h-8 w-8', - lg: 'h-12 w-12' + sm: "h-4 w-4", + md: "h-8 w-8", + lg: "h-12 w-12", }; - if (variant === 'inline') { + if (variant === "inline") { return (
- {message} + + {message} +
); } - const containerClasses = variant === 'full' - ? "fixed inset-0 bg-background/95 backdrop-blur-sm z-50" - : "absolute inset-0 bg-background/80 backdrop-blur-sm z-40"; + const containerClasses = + variant === "full" + ? "fixed inset-0 bg-background/95 backdrop-blur-sm z-50" + : "absolute inset-0 bg-background/80 backdrop-blur-sm z-40"; return (
@@ -100,9 +103,9 @@ export default function LoadingScreen({ key={i} className="w-1 bg-aethex-400 rounded-full animate-pulse" style={{ - height: `${20 + (i * 10)}px`, + height: `${20 + i * 10}px`, animationDelay: `${i * 0.2}s`, - animationDuration: '1s' + animationDuration: "1s", }} /> ))} @@ -113,12 +116,14 @@ export default function LoadingScreen({ {showProgress && (
-
-
{Math.round(progress)}%
+
+ {Math.round(progress)}% +
)} @@ -142,7 +147,7 @@ export default function LoadingScreen({ left: `${Math.random() * 100}%`, top: `${Math.random() * 100}%`, animationDelay: `${Math.random() * 2}s`, - animationDuration: `${2 + Math.random() * 3}s` + animationDuration: `${2 + Math.random() * 3}s`, }} > {Math.random().toString(2).substr(2, 1)} diff --git a/client/components/PageTransition.tsx b/client/components/PageTransition.tsx index 39010642..3637a14f 100644 --- a/client/components/PageTransition.tsx +++ b/client/components/PageTransition.tsx @@ -14,7 +14,7 @@ export default function PageTransition({ children }: PageTransitionProps) { useEffect(() => { setIsLoading(true); setIsVisible(false); - + const timer = setTimeout(() => { setIsLoading(false); setIsVisible(true); @@ -26,13 +26,11 @@ export default function PageTransition({ children }: PageTransitionProps) { return ( <> {isLoading && ( - + )} -
+
{children}
diff --git a/client/components/Skeleton.tsx b/client/components/Skeleton.tsx index c9dbb39a..d078db9f 100644 --- a/client/components/Skeleton.tsx +++ b/client/components/Skeleton.tsx @@ -2,29 +2,30 @@ import { cn } from "@/lib/utils"; interface SkeletonProps { className?: string; - variant?: 'text' | 'avatar' | 'card' | 'button' | 'image'; + variant?: "text" | "avatar" | "card" | "button" | "image"; lines?: number; animate?: boolean; } -export function Skeleton({ className, variant = 'text', lines = 1, animate = true }: SkeletonProps) { - const baseClasses = cn( - "bg-muted rounded", - animate && "skeleton", - className - ); +export function Skeleton({ + className, + variant = "text", + lines = 1, + animate = true, +}: SkeletonProps) { + const baseClasses = cn("bg-muted rounded", animate && "skeleton", className); switch (variant) { - case 'avatar': + case "avatar": return
; - - case 'button': + + case "button": return
; - - case 'image': + + case "image": return
; - - case 'card': + + case "card": return (
@@ -32,8 +33,8 @@ export function Skeleton({ className, variant = 'text', lines = 1, animate = tru
); - - case 'text': + + case "text": default: return (
@@ -43,7 +44,7 @@ export function Skeleton({ className, variant = 'text', lines = 1, animate = tru className={cn( baseClasses, "h-4", - i === lines - 1 ? "w-2/3" : "w-full" + i === lines - 1 ? "w-2/3" : "w-full", )} /> ))} @@ -93,7 +94,10 @@ export function SkeletonUserPath() { return (
{Array.from({ length: 4 }).map((_, i) => ( -
+
@@ -120,18 +124,21 @@ export function SkeletonOnboardingStep() {
- +
{Array.from({ length: 4 }).map((_, i) => ( -
+
))}
- +
@@ -161,7 +168,7 @@ export function SkeletonLayout() {
- + {/* Content Skeleton */}
@@ -173,7 +180,7 @@ export function SkeletonLayout() {
- +
diff --git a/client/components/onboarding/Experience.tsx b/client/components/onboarding/Experience.tsx index 88bec90d..13c235b5 100644 --- a/client/components/onboarding/Experience.tsx +++ b/client/components/onboarding/Experience.tsx @@ -14,40 +14,77 @@ interface ExperienceProps { } const experienceLevels = [ - { id: 'beginner', label: 'Beginner', description: 'New to the field' }, - { id: 'intermediate', label: 'Intermediate', description: '1-3 years experience' }, - { id: 'advanced', label: 'Advanced', description: '3-7 years experience' }, - { id: 'expert', label: 'Expert', description: '7+ years experience' }, + { id: "beginner", label: "Beginner", description: "New to the field" }, + { + id: "intermediate", + label: "Intermediate", + description: "1-3 years experience", + }, + { id: "advanced", label: "Advanced", description: "3-7 years experience" }, + { id: "expert", label: "Expert", description: "7+ years experience" }, ]; const skillSuggestions = { - 'game-developer': [ - 'Unity', 'Unreal Engine', 'C#', 'C++', 'JavaScript', 'Python', 'Blender', '3D Modeling', - 'Game Design', 'Level Design', 'Animation', 'Shader Programming', 'Roblox Development' + "game-developer": [ + "Unity", + "Unreal Engine", + "C#", + "C++", + "JavaScript", + "Python", + "Blender", + "3D Modeling", + "Game Design", + "Level Design", + "Animation", + "Shader Programming", + "Roblox Development", ], - 'client': [ - 'Project Management', 'Business Strategy', 'Product Development', 'Marketing', - 'Team Leadership', 'Budget Management', 'Quality Assurance', 'User Experience' + client: [ + "Project Management", + "Business Strategy", + "Product Development", + "Marketing", + "Team Leadership", + "Budget Management", + "Quality Assurance", + "User Experience", ], - 'member': [ - 'Research', 'Innovation', 'Technology Trends', 'Community Building', 'Networking', - 'Content Creation', 'Documentation', 'Knowledge Sharing' + member: [ + "Research", + "Innovation", + "Technology Trends", + "Community Building", + "Networking", + "Content Creation", + "Documentation", + "Knowledge Sharing", + ], + customer: [ + "Gaming", + "Technology Adoption", + "User Feedback", + "Beta Testing", + "Community Participation", + "Content Consumption", + "Product Evaluation", ], - 'customer': [ - 'Gaming', 'Technology Adoption', 'User Feedback', 'Beta Testing', 'Community Participation', - 'Content Consumption', 'Product Evaluation' - ] }; -export default function Experience({ data, updateData, nextStep, prevStep }: ExperienceProps) { - const [newSkill, setNewSkill] = useState(''); +export default function Experience({ + data, + updateData, + nextStep, + prevStep, +}: ExperienceProps) { + const [newSkill, setNewSkill] = useState(""); const handleLevelChange = (level: string) => { updateData({ experience: { ...data.experience, - level - } + level, + }, }); }; @@ -56,19 +93,21 @@ export default function Experience({ data, updateData, nextStep, prevStep }: Exp updateData({ experience: { ...data.experience, - skills: [...data.experience.skills, skill] - } + skills: [...data.experience.skills, skill], + }, }); } - setNewSkill(''); + setNewSkill(""); }; const handleSkillRemove = (skillToRemove: string) => { updateData({ experience: { ...data.experience, - skills: data.experience.skills.filter(skill => skill !== skillToRemove) - } + skills: data.experience.skills.filter( + (skill) => skill !== skillToRemove, + ), + }, }); }; @@ -76,13 +115,15 @@ export default function Experience({ data, updateData, nextStep, prevStep }: Exp updateData({ experience: { ...data.experience, - previousProjects: projects - } + previousProjects: projects, + }, }); }; const isValid = data.experience.level && data.experience.skills.length > 0; - const suggestions = data.userType ? skillSuggestions[data.userType] || [] : []; + const suggestions = data.userType + ? skillSuggestions[data.userType] || [] + : []; return (
@@ -103,12 +144,14 @@ export default function Experience({ data, updateData, nextStep, prevStep }: Exp onClick={() => handleLevelChange(level.id)} className={`p-4 rounded-lg border-2 text-left transition-all duration-200 ${ data.experience.level === level.id - ? 'border-aethex-500 bg-aethex-500/10 glow-purple' - : 'border-border/50 hover:border-aethex-400/50 bg-background/50' + ? "border-aethex-500 bg-aethex-500/10 glow-purple" + : "border-border/50 hover:border-aethex-400/50 bg-background/50" }`} >
{level.label}
-
{level.description}
+
+ {level.description} +
))}
@@ -117,7 +160,7 @@ export default function Experience({ data, updateData, nextStep, prevStep }: Exp {/* Skills */}
- + {/* Current Skills */} {data.experience.skills.length > 0 && (
@@ -145,7 +188,7 @@ export default function Experience({ data, updateData, nextStep, prevStep }: Exp onChange={(e) => setNewSkill(e.target.value)} placeholder="Add a skill..." className="flex-1 px-3 py-2 text-sm rounded-md border border-border/50 bg-background/50 focus:border-aethex-400 focus:outline-none" - onKeyPress={(e) => e.key === 'Enter' && handleSkillAdd(newSkill)} + onKeyPress={(e) => e.key === "Enter" && handleSkillAdd(newSkill)} />