import { useEffect, useState } from "react"; import { ThemeToggle } from "../components/ThemeToggle"; import { authClient } from "../lib/auth-client"; interface HomePageProps { navigate: ( route: | "/" | "/login" | "/signup" | "/pricing" | "/dashboard" | "/forgot-password" | "/reset-password", ) => void; } export default function HomePage({ navigate }: HomePageProps) { const [isLoggedIn, setIsLoggedIn] = useState(false); const [isLoading, setIsLoading] = useState(true); useEffect(() => { authClient.getSession().then((result) => { setIsLoggedIn(!!result.data?.user); setIsLoading(false); }); }, []); return (
{/* Navigation */} {/* Hero Section */}

Build your SaaS faster than ever

A production-ready template with authentication, payments, and everything you need to launch your next project in minutes, not months.

{/* Features Section */}

Everything you need to ship

Focus on building your product, not reinventing authentication, payments, or infrastructure.

{/* Feature 1 */}

Authentication

Secure email/password auth with sessions, powered by Better Auth.

{/* Feature 2 */}

Payments

Stripe integration for subscriptions, one-time payments, and billing.

{/* Feature 3 */}

Database

Cloudflare D1 database with Drizzle ORM for type-safe queries.

{/* Feature 4 */}

Edge Deployment

Deploy globally on Cloudflare Workers for blazing fast performance.

{/* Pricing Preview Section */}

Simple, transparent pricing

Start free and upgrade as you grow. No hidden fees, no surprises.

Free

$0/mo

Perfect for getting started

Pro

$19/mo

For growing businesses

Enterprise

$99/mo

For large scale operations

{/* Footer */}
); }