import type { Metadata } from 'next' import Link from 'next/link' import Image from 'next/image' import { auth } from '@/lib/auth' import { redirect } from 'next/navigation' import type { Route } from 'next' export const metadata: Metadata = { title: 'Monaco Ocean Protection Challenge' } export default async function HomePage() { const session = await auth() // Redirect authenticated users to their appropriate dashboard if (session?.user) { if ( session.user.role === 'SUPER_ADMIN' || session.user.role === 'PROGRAM_ADMIN' ) { redirect('/admin') } else if (session.user.role === 'JURY_MEMBER') { redirect('/jury') } else if (session.user.role === 'MENTOR') { redirect('/mentor' as Route) } else if (session.user.role === 'OBSERVER') { redirect('/observer') } } return (
{/* Header */}
MOPC - Monaco Ocean Protection Challenge Sign In
{/* Hero Section */}

Monaco Ocean Protection Challenge

Supporting innovative solutions for ocean conservation through fair and transparent project evaluation.

Jury Portal Learn More
{/* Features Section */}

Platform Features

Secure Evaluation

Jury members access only their assigned projects with complete confidentiality.

Real-time Progress

Track evaluation progress and manage voting windows with comprehensive dashboards.

Mobile First

Evaluate projects anywhere with a fully responsive design optimized for all devices.

{/* Footer */}
) }