"use client"; import * as React from "react"; import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Label } from "@/components/ui/label"; import { RadioGroup, RadioGroupItem, } from "@/components/ui/radio-group"; export default function Home() { const options = [ "KW2", "KW3", "KW9", "KW14", "KW8", "KW15", ] const correctAnswer = "KW8"; const nextLink = "https://three.christian.miniquiz.your-apps.dev"; const [selectedAnswer, setSelectedAnswer] = React.useState(null); const [showNextLink, setShowNextLink] = React.useState(false); const router = useRouter(); const handleAnswerChange = (value: string) => { setSelectedAnswer(value); }; const handleSubmit = () => { if (!selectedAnswer) { alert("Bitte wähle eine Antwort aus!") return; } if (selectedAnswer !== correctAnswer) { alert("Falsche Antwort!") return; } alert("Richtige Antwort!") setShowNextLink(true); }; const handleNext = () => { router.push(nextLink); }; return (

18. Geburtstag

In welcher Kalenderwoche finden die Faschingsferien in Bayern 2026 statt?

{options.map((option) => (
))}
{showNextLink && ( )}

WICHTIG! Merke dir die Antwort. Du wirst die Überraschung selber enthüllen.

) }