2024-12-11 15:35:36 +07:00
|
|
|
import * as React from 'react';
|
2024-12-17 17:36:53 +07:00
|
|
|
import { StrictMode } from 'react';
|
|
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
|
|
|
|
import './css/global.css';
|
|
|
|
import HomePage from './pages/homePage.jsx';
|
2024-12-11 15:35:36 +07:00
|
|
|
import WarningPage from './pages/warningPage.jsx';
|
|
|
|
import NamePage from './pages/namePage.jsx';
|
2024-12-30 01:19:31 +07:00
|
|
|
import IntroductionPage from './pages/introductionPage.jsx';
|
2025-04-10 23:56:31 +07:00
|
|
|
import PlayVideo from './pages/components/playVideo.jsx'
|
2025-05-06 15:36:55 +07:00
|
|
|
import VitualNovelHandler from './pages/vistualNovelHandler.jsx';
|
2025-05-24 21:53:10 +07:00
|
|
|
import EndPage from './pages/endPage.jsx';
|
2025-06-24 00:30:49 +07:00
|
|
|
import LanguageSelection from './pages/languageSelection.jsx';
|
2024-11-21 01:04:20 +07:00
|
|
|
|
|
|
|
createRoot(document.getElementById('root')).render(
|
|
|
|
<StrictMode>
|
2024-12-11 15:35:36 +07:00
|
|
|
<BrowserRouter>
|
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<HomePage />} />
|
|
|
|
<Route path="/warn" element={<WarningPage />} />
|
2025-06-22 16:34:58 +00:00
|
|
|
<Route path="/name" element={<NamePage />} />
|
2025-04-10 23:56:31 +07:00
|
|
|
<Route path='/video' element={<PlayVideo />} />
|
2024-12-30 01:19:31 +07:00
|
|
|
<Route path="/introduction" element={<IntroductionPage />} />
|
2025-06-23 14:06:09 +07:00
|
|
|
<Route path='/vs/:char/:lang/:step' element={<VitualNovelHandler />} />
|
2025-05-24 21:53:10 +07:00
|
|
|
<Route path='/end' element={<EndPage />} />
|
2025-06-24 00:30:49 +07:00
|
|
|
<Route path='/lang' element={<LanguageSelection />} />
|
2024-12-30 01:19:31 +07:00
|
|
|
|
2024-12-17 17:36:53 +07:00
|
|
|
<Route path="*" element={<Navigate to="/" replace />} />
|
2024-12-11 15:35:36 +07:00
|
|
|
</Routes>
|
|
|
|
</BrowserRouter>
|
2024-11-21 01:04:20 +07:00
|
|
|
</StrictMode>,
|
2024-12-17 17:36:53 +07:00
|
|
|
);
|