Update src/app/page.tsx
This commit is contained in:
117
src/app/page.tsx
117
src/app/page.tsx
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import { useState } from "react";
|
||||
import { useState, useEffect } from "react";
|
||||
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
|
||||
import HeroCentered from "@/components/sections/hero/HeroCentered";
|
||||
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
|
||||
@@ -15,23 +15,33 @@ import TimelineProcessFlow from "@/components/cardStack/layouts/timelines/Timeli
|
||||
import { Moon, Sun } from "lucide-react";
|
||||
|
||||
const lightTheme = {
|
||||
"--background": "#ffffff", "--card": "#f9f9f9", "--foreground": "#000000", "--primary-cta": "#000000", "--secondary-cta": "#f9f9f9", "--accent": "#e2e2e2", "--background-accent": "#c4c4c4", "--primary-cta-text": "#ffffff", "--secondary-cta-text": "#000000"};
|
||||
"--background": "#ffffff", "--card": "#f9f9f9", "--foreground": "#000000", "--primary-cta": "#000000", "--secondary-cta": "#f9f9f9", "--accent": "#e2e2e2", "--background-accent": "#c4c4c4", "--primary-cta-text": "#ffffff", "--secondary-cta-text": "#000000"
|
||||
};
|
||||
|
||||
const darkTheme = {
|
||||
"--background": "#0a0a0a", "--card": "#1a1a1a", "--foreground": "#ffffff", "--primary-cta": "#ffffff", "--secondary-cta": "#1a1a1a", "--accent": "#737373", "--background-accent": "#737373", "--primary-cta-text": "#0a0a0a", "--secondary-cta-text": "#ffffff"};
|
||||
"--background": "#0a0a0a", "--card": "#1a1a1a", "--foreground": "#ffffff", "--primary-cta": "#ffffff", "--secondary-cta": "#1a1a1a", "--accent": "#737373", "--background-accent": "#737373", "--primary-cta-text": "#0a0a0a", "--secondary-cta-text": "#ffffff"
|
||||
};
|
||||
|
||||
export default function LandingPage() {
|
||||
const [isDarkMode, setIsDarkMode] = useState(false);
|
||||
const [mounted, setMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setMounted(true);
|
||||
}, []);
|
||||
|
||||
const theme = isDarkMode ? darkTheme : lightTheme;
|
||||
|
||||
const toggleTheme = () => {
|
||||
setIsDarkMode(!isDarkMode);
|
||||
Object.entries(theme).forEach(([key, value]) => {
|
||||
const newTheme = !isDarkMode ? darkTheme : lightTheme;
|
||||
Object.entries(newTheme).forEach(([key, value]) => {
|
||||
document.documentElement.style.setProperty(key, value);
|
||||
});
|
||||
};
|
||||
|
||||
if (!mounted) return null;
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="text-stagger"
|
||||
@@ -54,7 +64,7 @@ export default function LandingPage() {
|
||||
{ name: "How It Works", id: "process" },
|
||||
{ name: "Features", id: "features" },
|
||||
{ name: "FAQ", id: "faq" },
|
||||
{ name: "Contact", id: "contact" },
|
||||
{ name: "Contact", id: "contact" }
|
||||
]}
|
||||
/>
|
||||
<button
|
||||
@@ -78,16 +88,19 @@ export default function LandingPage() {
|
||||
background={{ variant: "animated-grid" }}
|
||||
avatars={[
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-confident-sof-1772511922535-4e334974.png", alt: "User 1"},
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-confident-sof-1772511922535-4e334974.png", alt: "User 1"
|
||||
},
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-startup-found-1772511922841-7e2c6104.png", alt: "User 2"},
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-startup-found-1772511922841-7e2c6104.png", alt: "User 2"
|
||||
},
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-technical-lea-1772511921950-aa22b771.png", alt: "User 3"},
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-technical-lea-1772511921950-aa22b771.png", alt: "User 3"
|
||||
}
|
||||
]}
|
||||
avatarText="Trusted by 500+ developers"
|
||||
buttons={[
|
||||
{ text: "Try it free", href: "#contact" },
|
||||
{ text: "See demo", href: "#process" },
|
||||
{ text: "See demo", href: "#process" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
/>
|
||||
@@ -100,9 +113,11 @@ export default function LandingPage() {
|
||||
description="Aether DB is an AI-powered database schema generator that transforms natural language descriptions into production-ready PostgreSQL databases. Designed for award-winning teams who demand excellence, it eliminates manual schema design, reduces development time by 90%, and ensures enterprise-level security and performance from day one."
|
||||
metrics={[
|
||||
{
|
||||
value: "90%", title: "Faster development cycles"},
|
||||
value: "90%", title: "Faster development cycles"
|
||||
},
|
||||
{
|
||||
value: "100%", title: "Type-safe across your stack"},
|
||||
value: "100%", title: "Type-safe across your stack"
|
||||
}
|
||||
]}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/an-illustration-showing-the-transformati-1772511922816-9b8b2394.png"
|
||||
imageAlt="Transformation from manual to automated database setup"
|
||||
@@ -155,7 +170,7 @@ export default function LandingPage() {
|
||||
Simply tell Aether DB about your application in plain English. Describe your entities, relationships, and business logic as naturally as you would to a colleague.
|
||||
</p>
|
||||
</>
|
||||
),
|
||||
)
|
||||
},
|
||||
{
|
||||
id: "2", reverse: true,
|
||||
@@ -191,7 +206,7 @@ export default function LandingPage() {
|
||||
Our advanced AI engine analyzes your description, identifies all entities, relationships, and constraints, then generates an optimized schema plan.
|
||||
</p>
|
||||
</>
|
||||
),
|
||||
)
|
||||
},
|
||||
{
|
||||
id: "3", reverse: false,
|
||||
@@ -235,7 +250,7 @@ export default function LandingPage() {
|
||||
Aether DB generates production-ready PostgreSQL schemas with proper indexes, constraints, and row-level security policies automatically.
|
||||
</p>
|
||||
</>
|
||||
),
|
||||
)
|
||||
},
|
||||
{
|
||||
id: "4", reverse: true,
|
||||
@@ -272,7 +287,7 @@ export default function LandingPage() {
|
||||
Get Zod schemas, TypeScript types, API endpoint definitions, and seed data—all perfectly synchronized with your database schema.
|
||||
</p>
|
||||
</>
|
||||
),
|
||||
)
|
||||
},
|
||||
{
|
||||
id: "5", reverse: false,
|
||||
@@ -315,8 +330,8 @@ export default function LandingPage() {
|
||||
Your production-ready infrastructure is complete. Deploy with confidence knowing your database is secure, optimized, and enterprise-ready.
|
||||
</p>
|
||||
</>
|
||||
),
|
||||
},
|
||||
)
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -328,11 +343,13 @@ export default function LandingPage() {
|
||||
description="Stop spending days planning architecture, writing migrations, and syncing types across your codebase."
|
||||
negativeCard={{
|
||||
items: [
|
||||
"Hours planning database schema", "Writing and debugging SQL migrations", "Manually creating TypeScript types", "Syncing types across frontend and backend", "Managing relational integrity by hand", "Setting up RLS policies manually"],
|
||||
"Hours planning database schema", "Writing and debugging SQL migrations", "Manually creating TypeScript types", "Syncing types across frontend and backend", "Managing relational integrity by hand", "Setting up RLS policies manually"
|
||||
]
|
||||
}}
|
||||
positiveCard={{
|
||||
items: [
|
||||
"Instant schema generation", "Zero-migration SQL setup", "Auto-generated TypeScript types", "Perfect type sync everywhere", "Automatic constraint validation", "Built-in security policies"],
|
||||
"Instant schema generation", "Zero-migration SQL setup", "Auto-generated TypeScript types", "Perfect type sync everywhere", "Automatic constraint validation", "Built-in security policies"
|
||||
]
|
||||
}}
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
@@ -353,16 +370,19 @@ export default function LandingPage() {
|
||||
metrics={[
|
||||
{
|
||||
id: "1", value: "10x", title: "Faster development", items: [
|
||||
"Database setup in minutes", "Reduce development cycles", "Ship features faster"],
|
||||
"Database setup in minutes", "Reduce development cycles", "Ship features faster"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "2", value: "0", title: "Type mismatches", items: [
|
||||
"Auto-generated consistency", "End-to-end type safety", "Catch errors early"],
|
||||
"Auto-generated consistency", "End-to-end type safety", "Catch errors early"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "3", value: "100%", title: "Schema coverage", items: [
|
||||
"Complete documentation", "All relationships mapped", "Never miss a constraint"],
|
||||
},
|
||||
"Complete documentation", "All relationships mapped", "Never miss a constraint"
|
||||
]
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -381,22 +401,26 @@ export default function LandingPage() {
|
||||
id: "1", name: "Sarah Chen", handle: "@sarahchen", testimonial:
|
||||
"Aether DB cut our database setup time from 2 days to 10 minutes. The generated TypeScript types alone saved us countless hours of debugging.", rating: 5,
|
||||
imageSrc:
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-confident-sof-1772511922535-4e334974.png", imageAlt: "Sarah Chen"},
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-confident-sof-1772511922535-4e334974.png", imageAlt: "Sarah Chen"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Marcus Rodriguez", handle: "@mrodriguez", testimonial:
|
||||
"Finally, a tool that understands what developers actually need. No more manual schema creation, no more type mismatches. Just describe what you want.", rating: 5,
|
||||
imageSrc:
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-startup-found-1772511922841-7e2c6104.png", imageAlt: "Marcus Rodriguez"},
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-startup-found-1772511922841-7e2c6104.png", imageAlt: "Marcus Rodriguez"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Emma Thompson", handle: "@emmathompson", testimonial:
|
||||
"The RLS policies and security constraints are production-ready out of the box. This is enterprise-grade infrastructure in minutes.", rating: 5,
|
||||
imageSrc:
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-technical-lea-1772511921950-aa22b771.png", imageAlt: "Emma Thompson"},
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-technical-lea-1772511921950-aa22b771.png", imageAlt: "Emma Thompson"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Alex Kumar", handle: "@alexkumar", testimonial:
|
||||
"We went from prototyping to production faster than ever. Aether DB handles the boring database stuff so we can focus on features.", rating: 5,
|
||||
imageSrc:
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-product-manag-1772511922206-877ffab8.png", imageAlt: "Alex Kumar"},
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQ53gfKdS0YSH1q5OGpM06AnUi/professional-headshot-of-a-product-manag-1772511922206-877ffab8.png", imageAlt: "Alex Kumar"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -413,22 +437,28 @@ export default function LandingPage() {
|
||||
faqs={[
|
||||
{
|
||||
id: "1", title: "How does Aether DB generate database schemas?", content:
|
||||
"Simply describe your application in plain English. Our AI understands your requirements and generates optimized PostgreSQL schemas with proper indexes, constraints, foreign keys, and RLS policies. You get production-ready code instantly."},
|
||||
"Simply describe your application in plain English. Our AI understands your requirements and generates optimized PostgreSQL schemas with proper indexes, constraints, foreign keys, and RLS policies. You get production-ready code instantly."
|
||||
},
|
||||
{
|
||||
id: "2", title: "What exactly do I get when I use Aether DB?", content:
|
||||
"You receive: PostgreSQL schema with indexes and constraints, Zod schemas for validation, TypeScript types for your entire database, RESTful API endpoint definitions with typed request/response bodies, realistic seed data with relational integrity, and an AI explanation of every architectural decision."},
|
||||
"You receive: PostgreSQL schema with indexes and constraints, Zod schemas for validation, TypeScript types for your entire database, RESTful API endpoint definitions with typed request/response bodies, realistic seed data with relational integrity, and an AI explanation of every architectural decision."
|
||||
},
|
||||
{
|
||||
id: "3", title: "Is the generated code production-ready?", content:
|
||||
"Yes. All generated schemas include proper foreign key relationships, unique constraints, check constraints, row-level security policies, and performance indexes. The code is audited and optimized for production environments."},
|
||||
"Yes. All generated schemas include proper foreign key relationships, unique constraints, check constraints, row-level security policies, and performance indexes. The code is audited and optimized for production environments."
|
||||
},
|
||||
{
|
||||
id: "4", title: "Can I customize the generated schema?", content:
|
||||
"Absolutely. The generated code is yours to modify. You can edit schemas, adjust constraints, add custom columns, or refine RLS policies. Aether DB gives you the foundation—you maintain full control."},
|
||||
"Absolutely. The generated code is yours to modify. You can edit schemas, adjust constraints, add custom columns, or refine RLS policies. Aether DB gives you the foundation—you maintain full control."
|
||||
},
|
||||
{
|
||||
id: "5", title: "What databases are supported?", content:
|
||||
"Currently, Aether DB generates PostgreSQL schemas. MySQL and other database support is coming soon."},
|
||||
"Currently, Aether DB generates PostgreSQL schemas. MySQL and other database support is coming soon."
|
||||
},
|
||||
{
|
||||
id: "6", title: "Do you store my project descriptions?", content:
|
||||
"We take privacy seriously. Your project descriptions are processed but not stored in our system. Enterprise users can opt for on-premise deployment."},
|
||||
"We take privacy seriously. Your project descriptions are processed but not stored in our system. Enterprise users can opt for on-premise deployment."
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -458,31 +488,32 @@ export default function LandingPage() {
|
||||
items: [
|
||||
{ label: "What is Aether DB", href: "#what-is" },
|
||||
{ label: "How It Works", href: "#process" },
|
||||
{ label: "Features", href: "#features" },
|
||||
],
|
||||
{ label: "Features", href: "#features" }
|
||||
]
|
||||
},
|
||||
{
|
||||
items: [
|
||||
{
|
||||
label: "Documentation", href: "https://docs.aether-db.com"},
|
||||
label: "Documentation", href: "https://docs.aether-db.com"
|
||||
},
|
||||
{ label: "API Reference", href: "https://docs.aether-db.com/api" },
|
||||
{ label: "GitHub", href: "https://github.com/aether-db" },
|
||||
],
|
||||
{ label: "GitHub", href: "https://github.com/aether-db" }
|
||||
]
|
||||
},
|
||||
{
|
||||
items: [
|
||||
{ label: "Blog", href: "https://blog.aether-db.com" },
|
||||
{ label: "Twitter", href: "https://twitter.com/aether_db" },
|
||||
{ label: "Discord", href: "https://discord.gg/aether-db" },
|
||||
],
|
||||
{ label: "Discord", href: "https://discord.gg/aether-db" }
|
||||
]
|
||||
},
|
||||
{
|
||||
items: [
|
||||
{ label: "Privacy Policy", href: "#" },
|
||||
{ label: "Terms of Service", href: "#" },
|
||||
{ label: "Contact", href: "#contact" },
|
||||
],
|
||||
},
|
||||
{ label: "Contact", href: "#contact" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user