diff --git a/src/app/page.tsx b/src/app/page.tsx index 2b14b73..540fcb3 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,8 +1,47 @@ -export default function Home() { +import { createClient } from '@/lib/supabase/server' +import { redirect } from 'next/navigation' +import Link from 'next/link' +import { Button } from '@/components/ui/button' + +export default async function Home() { + const supabase = await createClient() + const { data: { user } } = await supabase.auth.getUser() + + // If logged in, redirect to dashboard + if (user) { + redirect('/dashboard') + } + + // Landing page for non-authenticated users return ( -
-

Leopost

-

Setup in corso...

+
+
+

+ Leopost +

+

+ Il tuo social media manager potenziato dall'AI. +
+ Minimo sforzo, massima resa. +

+ +
+ + + + + + +
+ +

+ Nessuna carta richiesta. Piano gratuito disponibile. +

+
) }