"use client"; import Link from "next/link"; import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { doesSessionExist } from "supertokens-web-js/recipe/session"; export default function HomePage() { const router = useRouter(); const [isLoading, setIsLoading] = useState(true); const [isLoggedIn, setIsLoggedIn] = useState(false); useEffect(() => { // Check if user is already logged in doesSessionExist().then((exists) => { setIsLoggedIn(exists); setIsLoading(false); // If logged in, redirect to projects if (exists) { router.push("/marks-account/projects"); } }).catch(() => { setIsLoading(false); }); }, [router]); if (isLoading) { return (

Loading...

); } return (
{/* Logo */}
Vib'n
{/* Welcome Card */} Welcome to Vib'n Your AI-powered development platform

Track, manage, and deploy your AI-coded projects with ease.

🚀

Fast Deployment

Deploy to Coolify with one click

🤖

AI-Powered

Track AI coding sessions

📊

Analytics

Monitor project progress

{/* Features */}

✅ Self-hosted • ✅ Open source • ✅ Powered by Coolify

); }