Update src/app/page.tsx
This commit is contained in:
223
src/app/page.tsx
223
src/app/page.tsx
@@ -2,6 +2,8 @@
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import { useState, useEffect } from "react";
|
||||
import gsap from "gsap";
|
||||
import ScrollTrigger from "gsap/dist/ScrollTrigger";
|
||||
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
|
||||
import HeroCentered from "@/components/sections/hero/HeroCentered";
|
||||
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
|
||||
@@ -12,32 +14,124 @@ import FaqBase from "@/components/sections/faq/FaqBase";
|
||||
import ContactSplit from "@/components/sections/contact/ContactSplit";
|
||||
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
|
||||
import TimelineProcessFlow from "@/components/cardStack/layouts/timelines/TimelineProcessFlow";
|
||||
import { Moon, Sun } from "lucide-react";
|
||||
import { Moon, Sun, Sparkles } from "lucide-react";
|
||||
|
||||
gsap.registerPlugin(ScrollTrigger);
|
||||
|
||||
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);
|
||||
|
||||
const theme = isDarkMode ? darkTheme : lightTheme;
|
||||
|
||||
useEffect(() => {
|
||||
setMounted(true);
|
||||
}, []);
|
||||
|
||||
const theme = isDarkMode ? darkTheme : lightTheme;
|
||||
useEffect(() => {
|
||||
if (!mounted) return;
|
||||
|
||||
// Apply theme colors
|
||||
Object.entries(theme).forEach(([key, value]) => {
|
||||
document.documentElement.style.setProperty(key, value);
|
||||
});
|
||||
|
||||
// Enhanced GSAP animations
|
||||
gsap.utils.toArray("[data-section]").forEach((section: any) => {
|
||||
// Fade in sections on scroll
|
||||
gsap.fromTo(
|
||||
section,
|
||||
{ opacity: 0, y: 50 },
|
||||
{
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
duration: 1,
|
||||
scrollTrigger: {
|
||||
trigger: section,
|
||||
start: "top 80%", toggleActions: "play none none reverse", once: false,
|
||||
},
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
// Animate text elements with stagger
|
||||
gsap.utils.toArray("h1, h2, h3").forEach((element: any) => {
|
||||
gsap.fromTo(
|
||||
element,
|
||||
{ opacity: 0, y: 20 },
|
||||
{
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
duration: 0.8,
|
||||
scrollTrigger: {
|
||||
trigger: element,
|
||||
start: "top 85%", toggleActions: "play none none reverse"},
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
// Animate cards with parallax effect
|
||||
gsap.utils.toArray("[class*='card']").forEach((card: any) => {
|
||||
gsap.fromTo(
|
||||
card,
|
||||
{ opacity: 0, scale: 0.95, y: 30 },
|
||||
{
|
||||
opacity: 1,
|
||||
scale: 1,
|
||||
y: 0,
|
||||
duration: 0.6,
|
||||
scrollTrigger: {
|
||||
trigger: card,
|
||||
start: "top 75%", toggleActions: "play none none reverse"},
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
// Hover effects on buttons
|
||||
gsap.utils.toArray("button[type='submit'], a[href*='#']").forEach((btn: any) => {
|
||||
btn.addEventListener("mouseenter", () => {
|
||||
gsap.to(btn, { scale: 1.05, duration: 0.3 });
|
||||
});
|
||||
btn.addEventListener("mouseleave", () => {
|
||||
gsap.to(btn, { scale: 1, duration: 0.3 });
|
||||
});
|
||||
});
|
||||
|
||||
// Parallax scroll for hero section
|
||||
const heroSection = document.getElementById("hero");
|
||||
if (heroSection) {
|
||||
gsap.to(heroSection, {
|
||||
backgroundPosition: "50% 50%", ease: "none", scrollTrigger: {
|
||||
trigger: heroSection,
|
||||
start: "top top", end: "bottom top", scrub: 1,
|
||||
markers: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// Floating animation for decorative elements
|
||||
gsap.utils.toArray("[data-float]").forEach((element: any) => {
|
||||
gsap.to(element, {
|
||||
y: -20,
|
||||
duration: 3,
|
||||
repeat: -1,
|
||||
yoyo: true,
|
||||
ease: "sine.inOut"});
|
||||
});
|
||||
|
||||
return () => {
|
||||
ScrollTrigger.getAll().forEach((trigger) => trigger.kill());
|
||||
};
|
||||
}, [mounted, isDarkMode]);
|
||||
|
||||
const toggleTheme = () => {
|
||||
setIsDarkMode(!isDarkMode);
|
||||
const newTheme = !isDarkMode ? darkTheme : lightTheme;
|
||||
Object.entries(newTheme).forEach(([key, value]) => {
|
||||
document.documentElement.style.setProperty(key, value);
|
||||
});
|
||||
};
|
||||
|
||||
if (!mounted) return null;
|
||||
@@ -64,7 +158,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
|
||||
@@ -81,26 +175,31 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="hero" data-section="hero">
|
||||
<div id="hero" data-section="hero" className="relative overflow-hidden">
|
||||
<div className="absolute inset-0 pointer-events-none">
|
||||
<div className="absolute top-10 left-10 w-32 h-32 opacity-20" data-float>
|
||||
<Sparkles className="w-full h-full" />
|
||||
</div>
|
||||
<div className="absolute bottom-20 right-10 w-24 h-24 opacity-20" data-float>
|
||||
<Sparkles className="w-full h-full" />
|
||||
</div>
|
||||
</div>
|
||||
<HeroCentered
|
||||
title="Stop Writing SQL. Start Building."
|
||||
description="Aether DB turns plain English into production-ready database schemas in seconds. Just describe your application, and get PostgreSQL schemas, TypeScript types, API definitions, and more—instantly."
|
||||
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"
|
||||
/>
|
||||
@@ -113,11 +212,9 @@ 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"
|
||||
@@ -170,7 +267,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,
|
||||
@@ -206,7 +303,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,
|
||||
@@ -250,7 +347,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,
|
||||
@@ -287,7 +384,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,
|
||||
@@ -330,8 +427,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>
|
||||
@@ -343,13 +440,11 @@ 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"
|
||||
@@ -370,19 +465,16 @@ 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>
|
||||
@@ -401,26 +493,22 @@ 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>
|
||||
@@ -437,28 +525,22 @@ 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>
|
||||
@@ -488,32 +570,31 @@ 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