diff --git a/src/app/page.tsx b/src/app/page.tsx index 9f85280..4e4e79b 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,101 @@ -import { redirect } from "next/navigation"; +import type { Metadata } from 'next' -export default function Home() { - redirect("/login"); +import { LandingNav } from '@/components/landing/nav' +import { Hero } from '@/components/landing/hero' +import { FeaturesGrid } from '@/components/landing/features-grid' +import { HowItWorks } from '@/components/landing/how-it-works' +import { FeatureSpotlight } from '@/components/landing/feature-spotlight' +import { FAQ } from '@/components/landing/faq' +import { CtaBanner } from '@/components/landing/cta-banner' +import { Footer } from '@/components/landing/footer' +import { InboxMock } from '@/components/landing/mock/inbox-mock' +import { PipelineMock } from '@/components/landing/mock/pipeline-mock' +import { AutomationMock } from '@/components/landing/mock/automation-mock' +import { AnalyticsMock } from '@/components/landing/mock/analytics-mock' + +export const metadata: Metadata = { + title: 'WaCRM — Run your WhatsApp business from one inbox', + description: + 'Shared inbox, contact hub, sales pipelines, broadcasts, and no-code automations for WhatsApp. Built on the official WhatsApp Business API.', +} + +// Marketing landing. Visible at / for everyone (auth redirect that +// used to send anonymous visitors to /login was removed). Authed users +// still see this page; the nav swaps its CTA to "Go to Dashboard". +export default function LandingPage() { + return ( +
+ Bring your WhatsApp conversations, contacts, and deals into one place. +
++ {eyebrow} +
++ {body} +
+ {bullets && bullets.length > 0 && ( ++ {f.description} +
++ Shared inbox, contact hub, sales pipelines, broadcasts, and + no-code automations — in one place. Get your team on the same + page without switching tools. +
+ ++ {s.body} +
+{c.preview}
++ {eyebrow} +
+ )} +{description}
+ )} +