Prettier format pending files

This commit is contained in:
Builder.io 2025-09-27 20:24:47 +00:00
parent 037b5f2e42
commit 9c46918d94
6 changed files with 91 additions and 29 deletions

View file

@ -5,23 +5,33 @@ export default function About() {
<Layout>
<div className="min-h-screen bg-aethex-gradient py-12">
<div className="container mx-auto px-4 max-w-4xl space-y-8">
<h1 className="text-3xl font-bold text-gradient-purple">About AeThex</h1>
<h1 className="text-3xl font-bold text-gradient-purple">
About AeThex
</h1>
<p className="text-muted-foreground">
AeThex crafts digital realities through cutting-edge engineering and design. Our team builds products,
tools, and experiences that empower developers, creators, and organizations.
AeThex crafts digital realities through cutting-edge engineering and
design. Our team builds products, tools, and experiences that
empower developers, creators, and organizations.
</p>
<section className="grid md:grid-cols-3 gap-6">
<div className="p-6 rounded-xl bg-card/50 border border-border/50">
<h2 className="font-semibold mb-2">Mission</h2>
<p className="text-sm text-muted-foreground">Deliver world-class software that turns bold ideas into reality.</p>
<p className="text-sm text-muted-foreground">
Deliver world-class software that turns bold ideas into reality.
</p>
</div>
<div className="p-6 rounded-xl bg-card/50 border border-border/50">
<h2 className="font-semibold mb-2">What we do</h2>
<p className="text-sm text-muted-foreground">Apps, platforms, research, and consulting across web, game, and AI.</p>
<p className="text-sm text-muted-foreground">
Apps, platforms, research, and consulting across web, game, and
AI.
</p>
</div>
<div className="p-6 rounded-xl bg-card/50 border border-border/50">
<h2 className="font-semibold mb-2">Values</h2>
<p className="text-sm text-muted-foreground">Quality, transparency, long-term partnerships.</p>
<p className="text-sm text-muted-foreground">
Quality, transparency, long-term partnerships.
</p>
</div>
</section>
</div>

View file

@ -5,16 +5,25 @@ export default function Contact() {
<Layout>
<div className="min-h-screen bg-aethex-gradient py-12">
<div className="container mx-auto px-4 max-w-3xl space-y-8">
<h1 className="text-3xl font-bold text-gradient-purple">Contact Us</h1>
<p className="text-muted-foreground">Have a project or question? Reach out and well get back within 12 business days.</p>
<h1 className="text-3xl font-bold text-gradient-purple">
Contact Us
</h1>
<p className="text-muted-foreground">
Have a project or question? Reach out and well get back within 12
business days.
</p>
<div className="grid gap-6">
<div className="p-6 rounded-xl bg-card/50 border border-border/50">
<h2 className="font-semibold mb-2">Email</h2>
<p className="text-sm text-muted-foreground">support@aethex.biz</p>
<p className="text-sm text-muted-foreground">
support@aethex.biz
</p>
</div>
<div className="p-6 rounded-xl bg-card/50 border border-border/50">
<h2 className="font-semibold mb-2">Community</h2>
<p className="text-sm text-muted-foreground">Join the community hub to ask questions and collaborate.</p>
<p className="text-sm text-muted-foreground">
Join the community hub to ask questions and collaborate.
</p>
</div>
</div>
</div>

View file

@ -6,15 +6,21 @@ export default function GetStarted() {
<Layout>
<div className="min-h-screen bg-aethex-gradient py-12">
<div className="container mx-auto px-4 max-w-4xl space-y-8">
<h1 className="text-3xl font-bold text-gradient-purple">Get Started</h1>
<h1 className="text-3xl font-bold text-gradient-purple">
Get Started
</h1>
<ol className="list-decimal list-inside space-y-3 text-muted-foreground">
<li>Create your account or sign in.</li>
<li>Complete onboarding to tailor your experience.</li>
<li>Explore your personalized dashboard and projects.</li>
</ol>
<div className="flex gap-3 pt-4">
<Link to="/onboarding" className="text-aethex-400 hover:underline">Start Onboarding</Link>
<Link to="/dashboard" className="text-aethex-400 hover:underline">Open Dashboard</Link>
<Link to="/onboarding" className="text-aethex-400 hover:underline">
Start Onboarding
</Link>
<Link to="/dashboard" className="text-aethex-400 hover:underline">
Open Dashboard
</Link>
</div>
</div>
</div>

View file

@ -9,7 +9,10 @@ import Experience from "@/components/onboarding/Experience";
import Interests from "@/components/onboarding/Interests";
import Welcome from "@/components/onboarding/Welcome";
import { useAuth } from "@/contexts/AuthContext";
import { aethexUserService, aethexAchievementService } from "@/lib/aethex-database-adapter";
import {
aethexUserService,
aethexAchievementService,
} from "@/lib/aethex-database-adapter";
import { aethexToast } from "@/lib/aethex-toast";
export type UserType = "game-developer" | "client" | "member" | "customer";
@ -120,8 +123,10 @@ export default function Onboarding() {
const existing = await aethexUserService.getCurrentUser();
const payload = {
username: `${data.personalInfo.firstName || user.email?.split("@")[0] || "user"}`,
full_name: `${data.personalInfo.firstName} ${data.personalInfo.lastName}`.trim(),
user_type: (userTypeMap[data.userType || "member"] as any) || "community_member",
full_name:
`${data.personalInfo.firstName} ${data.personalInfo.lastName}`.trim(),
user_type:
(userTypeMap[data.userType || "member"] as any) || "community_member",
experience_level: (data.experience.level as any) || "beginner",
bio: data.experience.previousProjects || undefined,
} as any;
@ -133,13 +138,18 @@ export default function Onboarding() {
}
const interests = Array.from(
new Set([...(data.interests.primaryGoals || []), ...(data.interests.preferredServices || [])]),
new Set([
...(data.interests.primaryGoals || []),
...(data.interests.preferredServices || []),
]),
);
if (interests.length) {
await aethexUserService.addUserInterests(user.id, interests);
}
await aethexAchievementService.checkAndAwardOnboardingAchievement(user.id);
await aethexAchievementService.checkAndAwardOnboardingAchievement(
user.id,
);
navigate("/dashboard", { replace: true });
} catch (e) {
@ -224,7 +234,11 @@ export default function Onboarding() {
) : (
<div className="animate-fade-in">
{currentStep === steps.length - 1 ? (
<Welcome data={data} onFinish={finishOnboarding} isFinishing={isFinishing} />
<Welcome
data={data}
onFinish={finishOnboarding}
isFinishing={isFinishing}
/>
) : (
<CurrentStepComponent
data={data}

View file

@ -5,15 +5,26 @@ export default function Privacy() {
<Layout>
<div className="min-h-screen bg-aethex-gradient py-12">
<div className="container mx-auto px-4 max-w-4xl space-y-6">
<h1 className="text-3xl font-bold text-gradient-purple">Privacy Policy</h1>
<p className="text-sm text-muted-foreground">We respect your privacy. This page outlines how we collect, use, and protect your data.</p>
<h1 className="text-3xl font-bold text-gradient-purple">
Privacy Policy
</h1>
<p className="text-sm text-muted-foreground">
We respect your privacy. This page outlines how we collect, use, and
protect your data.
</p>
<section className="space-y-3">
<h2 className="font-semibold">Data We Collect</h2>
<p className="text-sm text-muted-foreground">Account details, usage analytics, and content you provide.</p>
<p className="text-sm text-muted-foreground">
Account details, usage analytics, and content you provide.
</p>
<h2 className="font-semibold">How We Use Data</h2>
<p className="text-sm text-muted-foreground">To provide services, improve features, and ensure security.</p>
<p className="text-sm text-muted-foreground">
To provide services, improve features, and ensure security.
</p>
<h2 className="font-semibold">Your Choices</h2>
<p className="text-sm text-muted-foreground">You can update or delete your profile and opt-out of marketing.</p>
<p className="text-sm text-muted-foreground">
You can update or delete your profile and opt-out of marketing.
</p>
</section>
</div>
</div>

View file

@ -5,15 +5,27 @@ export default function Terms() {
<Layout>
<div className="min-h-screen bg-aethex-gradient py-12">
<div className="container mx-auto px-4 max-w-4xl space-y-6">
<h1 className="text-3xl font-bold text-gradient-purple">Terms of Service</h1>
<p className="text-sm text-muted-foreground">By using AeThex services, you agree to the following terms.</p>
<h1 className="text-3xl font-bold text-gradient-purple">
Terms of Service
</h1>
<p className="text-sm text-muted-foreground">
By using AeThex services, you agree to the following terms.
</p>
<section className="space-y-3">
<h2 className="font-semibold">Use of Service</h2>
<p className="text-sm text-muted-foreground">You agree not to misuse or attempt to disrupt our services.</p>
<p className="text-sm text-muted-foreground">
You agree not to misuse or attempt to disrupt our services.
</p>
<h2 className="font-semibold">Accounts</h2>
<p className="text-sm text-muted-foreground">Keep your credentials secure. You're responsible for activity under your account.</p>
<p className="text-sm text-muted-foreground">
Keep your credentials secure. You're responsible for activity
under your account.
</p>
<h2 className="font-semibold">Liability</h2>
<p className="text-sm text-muted-foreground">Services are provided as-is without warranties to the fullest extent permitted by law.</p>
<p className="text-sm text-muted-foreground">
Services are provided as-is without warranties to the fullest
extent permitted by law.
</p>
</section>
</div>
</div>