import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'
import Layout from './components/Layout'
import BioPage from './pages/BioPage'
import CardapioPage from './pages/CardapioPage'
import KaraokePage from './pages/KaraokePage'
import JogosPage from './pages/JogosPage'
import TarefaDeBebado from './pages/TarefaDeBebado'
import EuNunca from './pages/EuNunca'
import QuemEMaisProvavel from './pages/QuemEMaisProvavel'
import DedoNoCopo from './pages/DedoNoCopo'

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<Layout />}>
          <Route index element={<BioPage />} />
          <Route path="cardapio" element={<CardapioPage />} />
          <Route path="karaoke" element={<KaraokePage />} />
          <Route path="jogos" element={<JogosPage />} />
          <Route path="jogos/tarefa-de-bebado" element={<TarefaDeBebado />} />
          <Route path="jogos/eu-nunca" element={<EuNunca />} />
          <Route path="jogos/quem-e-mais-provavel" element={<QuemEMaisProvavel />} />
          <Route path="jogos/dedo-no-copo" element={<DedoNoCopo />} />
          <Route path="*" element={<Navigate to="/" replace />} />
        </Route>
      </Routes>
    </BrowserRouter>
  )
}
