'use client' import React, { useState } from 'react' import { useRouter } from 'next/navigation' import { Code, Users, Clock, ArrowRight } from 'lucide-react' export default function ExamLandingPage() { const router = useRouter() const [examCode, setExamCode] = useState('') const joinExam = () => { if (examCode.trim()) { router.push(`/coding/exam/${examCode.trim().toUpperCase()}`) } else { alert('Please enter a valid exam code') } } const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === 'Enter') { joinExam() } } return (
Join a coding exam with your exam code
Enter your 6-character exam code to start
Compete with other students in real-time coding challenges
Complete coding problems within the allocated time limit
Code in Python, Java, JavaScript, C++, and more
Get your 6-character exam code from your instructor
Enter the exam code in the field above and click "Join"
Wait for the instructor to start the exam
Code your solution and submit before time runs out