import Image from "next/image"; import Link from "next/link"; import { getSession } from "@/lib/auth"; export default async function Home() { const session = await getSession(); const isLoggedIn = !!session; return (
{/* Hero Section */}
Car dashboard illustration

{isLoggedIn ? "Welcome Back!" : "Track Your Car’s Fuel & Mileage"}

{isLoggedIn ? "Jump right into your dashboard to log fill-ups, view stats, and manage your cars." : "Effortlessly log fill-ups, monitor fuel costs, and analyze your driving habits—all in one beautiful dashboard."}

{isLoggedIn ? ( Go to Dashboard ) : ( <> Login Register )}
{/* Features Section */}

Log Fill-Ups

Quickly add fuel entries and keep your records organized.

📊

Analyze Stats

Visualize your fuel consumption, costs, and mileage trends.

🚗

Manage Cars

Track multiple vehicles and switch between them easily.

{/* Testimonial Section */}

This app made it so easy to track my car’s fuel expenses and spot trends. Highly recommended for anyone who wants to save money and understand their driving habits!

— Happy Driver
{/* Footer */}
); }