From 1a3585f73c4ab6063a470d11d7b406fc29b84ad6 Mon Sep 17 00:00:00 2001 From: Natalia Bandurova Date: Thu, 3 Oct 2024 18:42:35 +0300 Subject: [PATCH] feat: add sign up page layout --- frontend/src/pages/LoginPage.jsx | 2 +- frontend/src/pages/SignUpPage.jsx | 7 +++++++ frontend/src/router/router.js | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 frontend/src/pages/SignUpPage.jsx diff --git a/frontend/src/pages/LoginPage.jsx b/frontend/src/pages/LoginPage.jsx index d48a115..0d8afe1 100644 --- a/frontend/src/pages/LoginPage.jsx +++ b/frontend/src/pages/LoginPage.jsx @@ -114,7 +114,7 @@ const LoginPage = () => {
Нет аккаунта? {' '} - Регистрация + Регистрация
diff --git a/frontend/src/pages/SignUpPage.jsx b/frontend/src/pages/SignUpPage.jsx new file mode 100644 index 0000000..6b6ef14 --- /dev/null +++ b/frontend/src/pages/SignUpPage.jsx @@ -0,0 +1,7 @@ +const SignUpPage = () => ( +
+

Registration Page

+
+); + +export default SignUpPage; diff --git a/frontend/src/router/router.js b/frontend/src/router/router.js index 575a48f..48d7a7d 100644 --- a/frontend/src/router/router.js +++ b/frontend/src/router/router.js @@ -5,6 +5,7 @@ import NotFoundPage from '../pages/NotFoundPage'; import App from '../App'; import PrivateRoute from './private-route'; import AnonymousRoute from './anonymous-route'; +import SignUpPage from '../pages/SignUpPage'; const router = createBrowserRouter([ { @@ -19,6 +20,10 @@ const router = createBrowserRouter([ path: 'login', element: } />, }, + { + path: 'signup', + element: } />, + }, { path: '*', element: ,