feat: create hackerspace management app landing page
Add dark aesthetic, animated UI previews, icon-only design, clean copy, responsive layout, stats section, feature grid, clear CTAs Co-authored-by: Moheeb Zara <[email protected]>
This commit is contained in:
+2
-2
@@ -1,12 +1,12 @@
|
||||
import { createClient } from '@/lib/supabase/server'
|
||||
import { redirect } from 'next/navigation'
|
||||
import LandingPage from './(landing)/page'
|
||||
|
||||
export default async function RootPage() {
|
||||
const supabase = await createClient()
|
||||
const { data: { user } } = await supabase.auth.getUser()
|
||||
if (user) {
|
||||
redirect('/dashboard')
|
||||
} else {
|
||||
redirect('/login')
|
||||
}
|
||||
return <LandingPage />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user