2022-05-31 15:14:15 +03:00
|
|
|
import React from 'react'
|
2023-01-13 13:02:48 +03:00
|
|
|
import {BrowserRouter as Router, Route, Routes, Navigate} from 'react-router-dom';
|
2021-05-25 14:50:01 +03:00
|
|
|
|
2021-08-20 11:52:23 +03:00
|
|
|
|
2023-01-13 13:02:48 +03:00
|
|
|
import AuthForPartners from "./pages/AuthForPartners/AuthForPartners";
|
|
|
|
import AuthForDevelopers from "./pages/AuthForDevelopers/AuthForDevelopers";
|
2021-09-28 12:46:16 +03:00
|
|
|
import HomePage from './pages/HomePage'
|
|
|
|
import CandidatePage from './pages/CandidatePage'
|
|
|
|
import CalendarPage from './pages/CalendarPage'
|
|
|
|
import ReportPage from './pages/ReportFormPage.js'
|
2022-12-26 15:12:01 +03:00
|
|
|
import ProfileCalendarPage from './pages/ProfileCalendarPage.js'
|
2021-09-28 12:46:16 +03:00
|
|
|
import FormPage from './pages/FormPage.js'
|
|
|
|
import SingleReportPage from './pages/SingleReportPage'
|
2023-01-13 13:02:48 +03:00
|
|
|
import {QuizPage} from './pages/quiz/QuizPage'
|
|
|
|
import {InterjacentPage} from './pages/quiz/InterjacentPage'
|
|
|
|
import {QuizTestPage} from './pages/quiz/QuizTestPage'
|
|
|
|
import {InstructionPage} from './pages/quiz/InstructionPage'
|
|
|
|
import {ResultPage} from './pages/quiz/ResultPage'
|
|
|
|
import {Profile} from './pages/Profile/Profile.js'
|
|
|
|
import {Summary} from './pages/Summary/Summary'
|
|
|
|
|
|
|
|
import './fonts/stylesheet.css'
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
|
|
|
|
2021-05-26 13:35:57 +03:00
|
|
|
|
2022-06-01 19:59:54 +03:00
|
|
|
const App = () => {
|
2021-09-28 12:46:16 +03:00
|
|
|
return (
|
2023-01-13 13:02:48 +03:00
|
|
|
<>
|
|
|
|
<h1>IT Аутстаффинг в России</h1>
|
|
|
|
<Router>
|
|
|
|
|
|
|
|
<Routes>
|
|
|
|
<Route exact path='/' element={<HomePage/>}/>
|
|
|
|
|
|
|
|
<Route exact path='/authdev' element={<AuthForDevelopers/>}/>
|
|
|
|
<Route exact path='/auth' element={<AuthForPartners/>}/>
|
|
|
|
|
|
|
|
<Route exact path='/candidate/:id' element={<CandidatePage/>}/>
|
|
|
|
<Route exact path='/candidate/:id/form' element={<FormPage/>}/>
|
|
|
|
<Route path='/:userId/calendar' element={<CalendarPage/>}/>
|
|
|
|
|
|
|
|
<Route exact path='/report' element={<ReportPage/>}/>
|
|
|
|
<Route path='/report/:id' element={<SingleReportPage/>}/>
|
|
|
|
|
2023-01-16 19:12:44 +03:00
|
|
|
<Route exact path='quiz'>
|
|
|
|
<Route index element={<QuizPage/>}/>
|
|
|
|
<Route path='interjacent' element={<InterjacentPage/>}/>
|
|
|
|
<Route path='test' element={<QuizTestPage/>}/>
|
|
|
|
<Route path='instruction' element={<InstructionPage/>}/>
|
|
|
|
<Route path='result' element={<ResultPage/>}/>
|
|
|
|
</Route>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
2023-01-16 19:12:44 +03:00
|
|
|
<Route exact path='profile'>
|
|
|
|
<Route index element={<Profile/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
<Route exact path='calendar' element={<ProfileCalendarPage/>}/>
|
|
|
|
<Route exact path='summary' element={<Summary/>}/>
|
|
|
|
</Route>
|
|
|
|
|
|
|
|
<Route path="*" element={<Navigate to="/" replace/>}/>
|
|
|
|
</Routes>
|
|
|
|
</Router>
|
|
|
|
</>
|
2021-08-04 13:04:05 +03:00
|
|
|
)
|
2023-01-13 13:02:48 +03:00
|
|
|
};
|
2021-05-25 14:50:01 +03:00
|
|
|
|
2021-08-04 13:04:05 +03:00
|
|
|
export default App
|