From 923a84e488ad1dd5c3f4012fea0faee78505a8cb Mon Sep 17 00:00:00 2001 From: Victor Batischev Date: Tue, 19 Mar 2024 14:07:41 +0300 Subject: [PATCH] remove tracker registration --- src/components/AuthBlock/AuthBlock.jsx | 2 +- .../AuthForCandidate/AuthForCandidate.jsx | 7 - src/pages/TrackerIntro/TrackerIntro.jsx | 2 +- .../TrackerRegistration.jsx | 163 ------------------ .../trackerRegistration.scss | 150 ---------------- src/pages/roles/GuestPage.jsx | 6 - 6 files changed, 2 insertions(+), 328 deletions(-) delete mode 100644 src/pages/TrackerRegistration/TrackerRegistration.jsx delete mode 100644 src/pages/TrackerRegistration/trackerRegistration.scss diff --git a/src/components/AuthBlock/AuthBlock.jsx b/src/components/AuthBlock/AuthBlock.jsx index 1a367caa..99842b49 100644 --- a/src/components/AuthBlock/AuthBlock.jsx +++ b/src/components/AuthBlock/AuthBlock.jsx @@ -108,7 +108,7 @@ export const AuthBlock = ({ title, description, img, resetModal }) => { > {isLoading ? : "Войти"} - + Регистрация diff --git a/src/pages/AuthForCandidate/AuthForCandidate.jsx b/src/pages/AuthForCandidate/AuthForCandidate.jsx index 50eed96b..f375b8ba 100644 --- a/src/pages/AuthForCandidate/AuthForCandidate.jsx +++ b/src/pages/AuthForCandidate/AuthForCandidate.jsx @@ -111,13 +111,6 @@ export const AuthForCandidate = () => {
-

Хочу в команду IT-специалистов diff --git a/src/pages/TrackerIntro/TrackerIntro.jsx b/src/pages/TrackerIntro/TrackerIntro.jsx index 4983133e..0d870f54 100644 --- a/src/pages/TrackerIntro/TrackerIntro.jsx +++ b/src/pages/TrackerIntro/TrackerIntro.jsx @@ -57,7 +57,7 @@ export const TrackerIntro = () => { Управление большим количеством проектов и гибкая настройка структуры под любые процессы

- + Начать работу

diff --git a/src/pages/TrackerRegistration/TrackerRegistration.jsx b/src/pages/TrackerRegistration/TrackerRegistration.jsx deleted file mode 100644 index 5c8f4345..00000000 --- a/src/pages/TrackerRegistration/TrackerRegistration.jsx +++ /dev/null @@ -1,163 +0,0 @@ -import React, { useState } from "react"; -import { Navigate } from "react-router-dom"; - -import { useFormValidation } from "@hooks/useFormValidation"; -import { useNotification } from "@hooks/useNotification"; - -import { AuthHeader } from "@components/Common/AuthHeader/AuthHeader"; -import BaseButton from "@components/Common/BaseButton/BaseButton"; -import { Footer } from "@components/Common/Footer/Footer"; -import { Loader } from "@components/Common/Loader/Loader"; -import ModalLayout from "@components/Common/ModalLayout/ModalLayout"; -import { ModalTrackerRegistration } from "@components/Modal/ModalTrackerRegistration/ModalTrackerRegistration"; -import SideBar from "@components/SideBar/SideBar"; - -import arrowInfo from "assets/icons/trackerIntroInfo.svg"; -import authImg from "assets/images/partnerProfile/authCandidateFormImg.png"; -import registrationImg from "assets/images/trackerRegistrationImg.png"; - -import "./trackerRegistration.scss"; - -export const TrackerRegistration = () => { - const [modalConfirmOpen, setModalConfirm] = useState(false); - const [loader, setLoader] = useState(false); - const [isPartner, setIsPartner] = useState(false); - const fields = { - username: "", - email: "", - password: "", - secondPassword: "" - }; - - const apiEndpoint = "/register/sign-up"; - - const { showNotification } = useNotification(); - const showNotificationError = (error) => { - showNotification({ - show: true, - text: error, - type: "error" - }); - }; - const showNotificationTrue = () => { - showNotification({ - show: true, - text: "Аккаунт успешно создан", - type: "success" - }); - }; - - const { formData, validationErrors, handleChange, handleSubmit } = - useFormValidation( - apiEndpoint, - fields, - showNotificationError, - showNotificationTrue, - isPartner, - setLoader - ); - return ( -
- - -
-
-

- Создайте свое{" "} - - рабочее пространство - arrow - -

-
-
-
-
Ваше имя
- - {validationErrors.username} -
-
-
Ваш e-mail
- - {validationErrors.email} -
-
-
Придумайте пароль
- - {validationErrors.password} -
-
-
Повторите пароль
- - {validationErrors.secondPassword} -
-
-
- {loader ? ( - - ) : ( - { - e.preventDefault(); - await handleSubmit(e); - }} - styles="button-box__submit" - > - Отправить - - )} -
- img -

- Создавайте и редактируйте задачи и проекты вместе с другими - участниками команды. -

-
-
- img -
-
- {modalConfirmOpen && ( - - - - )} -
-
-
- ); -}; diff --git a/src/pages/TrackerRegistration/trackerRegistration.scss b/src/pages/TrackerRegistration/trackerRegistration.scss deleted file mode 100644 index 090fe428..00000000 --- a/src/pages/TrackerRegistration/trackerRegistration.scss +++ /dev/null @@ -1,150 +0,0 @@ -.tracker-registration { - display: flex; - flex-direction: column; - min-height: 100vh; - background-color: #f1f1f1; - - &__content { - display: flex; - flex-direction: column; - flex: 1; - color: #000000; - padding: 50px 0 0; - - @media (max-width: 1375px) { - padding-top: 100px; - } - - .container { - padding-bottom: 30px; - } - } - - &__form { - position: relative; - border-radius: 12px; - background: #fff; - padding: 20px; - - @media (max-width: 1000px) { - display: flex; - flex-direction: column; - padding: 0; - } - - &__inputs { - display: flex; - flex-wrap: wrap; - max-width: 650px; - column-gap: 44px; - - @media (max-width: 1000px) { - order: 2; - } - } - - &__submit { - display: flex; - align-items: center; - margin-top: 5px; - - button { - border-radius: 44px; - padding: 9px 39px; - background: #52b709; - font-weight: 500; - font-size: 18px; - color: #fff; - border: none; - max-width: 170px; - } - - @media (max-width: 1000px) { - order: 3; - } - - @media (max-width: 675px) { - flex-direction: column; - align-items: start; - row-gap: 35px; - } - - .loader { - max-width: 170px; - } - } - - &__info { - display: flex; - margin-left: 165px; - align-items: center; - img { - margin-right: 31px; - - @media (max-width: 675px) { - margin-right: 27px; - } - } - - p { - font-size: 16px; - font-weight: 400; - line-height: 22px; - color: #000; - max-width: 430px; - - @media (max-width: 675px) { - font-size: 14px; - } - } - } - - &__img { - position: absolute; - top: -100px; - right: 58px; - - @media (max-width: 900px) { - display: none; - } - } - } - &__input-container { - display: flex; - flex-direction: column; - max-width: 300px; - width: 100%; - margin-bottom: 44px; - - h5 { - font-size: 15px; - } - - span { - font-weight: 400; - font-size: 12px; - color: red; - } - - input { - outline: none; - padding: 8px 12px 9px; - background-color: #eff2f7; - border-radius: 8px; - margin: 10px 0; - border: none; - font-weight: 400; - font-size: 15px; - color: #000; - } - - @media (max-width: 675px) { - margin-bottom: 0; - max-width: none; - } - - .error { - border: 1px solid red; - } - } -} diff --git a/src/pages/roles/GuestPage.jsx b/src/pages/roles/GuestPage.jsx index 66074223..ee761bf1 100644 --- a/src/pages/roles/GuestPage.jsx +++ b/src/pages/roles/GuestPage.jsx @@ -15,7 +15,6 @@ import { RegistrationForCandidate } from "@pages/RegistrationForCandidate/Regist import { RegistrationSetting } from "@pages/RegistrationSetting/RegistrationSetting"; import { SingleReportPage } from "@pages/SingleReportPage/SingleReportPage"; import { TrackerIntro } from "@pages/TrackerIntro/TrackerIntro"; -import { TrackerRegistration } from "@pages/TrackerRegistration/TrackerRegistration"; import { FreeDevelopers } from "@components/FreeDevelopers/FreeDevelopers"; @@ -26,11 +25,6 @@ export const GuestPage = () => { } /> } /> } /> - } - /> } />