feat: added templates for user profile + competition constructor (if will be), started working on synchronizing front and back session

This commit is contained in:
rngsurrounded
2025-03-02 19:09:27 +09:00
parent 71736c04aa
commit d892fb2696
25 changed files with 1398 additions and 51 deletions
+24 -1
View File
@@ -1,5 +1,5 @@
import { Routes, Route } from "react-router";
import "./styles/globals.css";
import { Routes, Route } from "react-router";
import { NavbarLayout } from "./widgets/navbar-layout";
@@ -8,6 +8,8 @@ import Competition from "./pages/Competition";
import CompetitionSession from "./pages/CompetitionSession";
import LoginPage from "./pages/Login";
import { AuthLayout } from "./widgets/auth-layout";
import CompetitionConstructor from "./pages/CompetitionConstructor";
import UserProfile from "./pages/UserProfile";
const App = () => {
return (
@@ -24,6 +26,27 @@ const App = () => {
path="/competition/:id/tasks/:taskId"
element={<CompetitionSession />}
/>
<Route
path="/constructor/:id"
element={<CompetitionConstructor />}
/>
<Route
path="/constructor/new"
element={<CompetitionConstructor />}
/>
<Route
path="/constructor/:id/tasks/:taskId"
element={<CompetitionConstructor />}
/>
<Route
path="/profile"
element={<UserProfile />}
/>
</Route>
</Routes>
);