- {
- candidatesListArr &&
+ {candidatesListArr &&
filteredListArr.length === 0 ? (
) : null}
diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js
index af5042ea..748f74a9 100644
--- a/src/components/Home/Home.js
+++ b/src/components/Home/Home.js
@@ -8,6 +8,7 @@ import {Footer} from '../Footer/Footer'
import {profiles, tags} from '../../redux/outstaffingSlice'
import {useRequest} from "../../hooks/useRequest";
+import {LogoutButton} from "../LogoutButton/LogoutButton";
const Home = () => {
@@ -53,11 +54,12 @@ const Home = () => {
};
return (
- <>
+
+
- >
+
)
};
diff --git a/src/components/LogoutButton/LogoutButton.js b/src/components/LogoutButton/LogoutButton.js
index 2025614d..12cc5389 100644
--- a/src/components/LogoutButton/LogoutButton.js
+++ b/src/components/LogoutButton/LogoutButton.js
@@ -14,18 +14,17 @@ export const LogoutButton = () => {
const navigate = useNavigate();
return (
-
-
-
+
)
};
diff --git a/src/components/LogoutButton/logoutButton.scss b/src/components/LogoutButton/logoutButton.scss
index b3224b20..3a615a66 100644
--- a/src/components/LogoutButton/logoutButton.scss
+++ b/src/components/LogoutButton/logoutButton.scss
@@ -1,40 +1,27 @@
.logout-button {
- position: absolute;
- top: 70px;
- right: 2.5rem;
- z-index: 100;
- button {
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 0;
- width: 131px;
- height: 40px;
- border-radius: 10px;
- font-family: 'Muller';
- font-size: 1.6em;
- letter-spacing: 0.8px;
- background-color: #6aaf5c;
- color: #ffffff;
- border: 3px solid #6aaf5c;
- font-family: 'Muller';
- text-align: center;
- }
+ position: relative;
+ z-index: 100;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin: 0;
+ width: 131px;
+ height: 40px;
+ border-radius: 10px;
+ font-size: 1.6em;
+ letter-spacing: 0.8px;
+ background-color: #6aaf5c;
+ color: #ffffff;
+ border: 3px solid #6aaf5c;
+ font-family: 'Muller', sans-serif;
+ text-align: center;
&:hover {
- button {
- background-color: #ffffff;
- color: #6aaf5c;
- border: 3px solid #6aaf5c;
- box-shadow: 3px 2px 5px rgba(82, 151, 34, 0.21);
- transition: 0.3s;
- }
- }
-}
-
-@media (max-width: 1199px) {
- .logout-button {
- top: 16px !important;
+ background-color: #ffffff;
+ color: #6aaf5c;
+ border: 3px solid #6aaf5c;
+ box-shadow: 3px 2px 5px rgba(82, 151, 34, 0.21);
+ transition: 0.3s;
}
}
diff --git a/src/components/Outstaffing/Outstaffing.js b/src/components/Outstaffing/Outstaffing.js
index c50a581c..075ef57f 100644
--- a/src/components/Outstaffing/Outstaffing.js
+++ b/src/components/Outstaffing/Outstaffing.js
@@ -1,26 +1,27 @@
-import React from 'react'
-import { useSelector, useDispatch } from 'react-redux'
+import React from 'react'
+import {useSelector, useDispatch} from 'react-redux'
import OutstaffingBlock from '../OutstaffingBlock/OutstaffingBlock'
import TagSelect from '../Select/TagSelect'
-import { selectTags, getPositionId, setPositionId} from '../../redux/outstaffingSlice'
+import {selectTags, getPositionId, setPositionId} from '../../redux/outstaffingSlice'
import front from '../../images/front_end.png'
import back from '../../images/back_end.png'
import design from '../../images/design.png'
import './outstaffing.scss'
+import {LogoutButton} from "../LogoutButton/LogoutButton";
const createSelectPositionHandler =
- ({ positionId, setPositionId, dispatch }) =>
- (id) => {
- if (id === positionId) {
- dispatch(setPositionId(null))
- } else {
- dispatch(setPositionId(id))
- }
- };
+ ({positionId, setPositionId, dispatch}) =>
+ (id) => {
+ if (id === positionId) {
+ dispatch(setPositionId(null))
+ } else {
+ dispatch(setPositionId(id))
+ }
+ };
const Outstaffing = () => {
const dispatch = useDispatch();
@@ -33,62 +34,58 @@ const Outstaffing = () => {
dispatch
});
return (
- <>
-
-
-
-
-
- Аутстаффинг it-персонала
-
+ <>
+
+
+
+ Аутстаффинг it-персонала
+
+
+
+
+
+ tag.name === 'skills_front')
+ }
+ img={front}
+ header='Frontend'
+ positionId='2'
+ isSelected={positionId === '2'}
+ onSelect={(id) => onSelectPosition(id)}
+ />
+
+
+ tag.name === 'skills_back')
+ }
+ img={back}
+ header='Backend'
+ positionId='1'
+ isSelected={positionId === '1'}
+ onSelect={(id) => onSelectPosition(id)}
+ />
+
+
+ tag.name === 'skills_design')
+ }
+ img={design}
+ header='Дизайн'
+ positionId='5'
+ isSelected={positionId === '5'}
+ onSelect={(id) => onSelectPosition(id)}
+ />
-
-
-
-
- tag.name === 'skills_front')
- }
- img={front}
- header='Frontend'
- positionId='2'
- isSelected={positionId === '2'}
- onSelect={(id) => onSelectPosition(id)}
- />
-
-
- tag.name === 'skills_back')
- }
- img={back}
- header='Backend'
- positionId='1'
- isSelected={positionId === '1'}
- onSelect={(id) => onSelectPosition(id)}
- />
-
-
- tag.name === 'skills_design')
- }
- img={design}
- header='Дизайн'
- positionId='5'
- isSelected={positionId === '5'}
- onSelect={(id) => onSelectPosition(id)}
- />
-
-
-
-
- >
+
+
+ >
)
};
diff --git a/src/components/Outstaffing/outstaffing.scss b/src/components/Outstaffing/outstaffing.scss
index 4311a213..24587d42 100644
--- a/src/components/Outstaffing/outstaffing.scss
+++ b/src/components/Outstaffing/outstaffing.scss
@@ -1,11 +1,15 @@
.outstaffing {
&__title {
margin-top: 60px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
h2 {
+ flex: 1;
text-align: center;
color: #52b709;
- font-family: 'GT Eesti Pro Display';
+ font-family: 'GT Eesti Pro Display', sans-serif;
font-size: 5em;
font-weight: 700;
font-style: normal;
diff --git a/src/components/ReportForm/ReportForm.js b/src/components/ReportForm/ReportForm.js
index dda718bb..302b4cf0 100644
--- a/src/components/ReportForm/ReportForm.js
+++ b/src/components/ReportForm/ReportForm.js
@@ -58,7 +58,7 @@ const ReportForm = () => {
const handler = () => {
apiRequest('/reports/create', {
method: 'POST',
- body: {
+ data: {
tasks: inputs,
difficulties: troublesInputValue,
tomorrow: scheduledInputValue,
diff --git a/src/pages/ActPage.js b/src/pages/ActPage/ActPage.js
similarity index 57%
rename from src/pages/ActPage.js
rename to src/pages/ActPage/ActPage.js
index ea89a220..1188671b 100644
--- a/src/pages/ActPage.js
+++ b/src/pages/ActPage/ActPage.js
@@ -1,6 +1,6 @@
import React from 'react';
-import { ActContent } from "../components/features/bookkeeping/ActContent/ActContent"
-import { BookkeepingTemplete } from "../components/features/bookkeeping/BookkeepingTemplete/BookkeepingTemplete"
+import { ActContent } from "../../components/features/bookkeeping/ActContent/ActContent"
+import { BookkeepingTemplete } from "../../components/features/bookkeeping/BookkeepingTemplete/BookkeepingTemplete"
export const ActPage = () => {
return (
diff --git a/src/pages/CalendarPage.js b/src/pages/CalendarPage.js
index 51dde842..98c183ea 100644
--- a/src/pages/CalendarPage.js
+++ b/src/pages/CalendarPage.js
@@ -4,8 +4,8 @@ import { WithLogout } from '../hoc/withLogout';
import Calendar from '../components/Calendar/Calendar';
const CalendarPage = () => {
- const navigate = useNavigate();
- return
{ navigate('/report/0') }} />;
+
+ return
;
};
export default CalendarPage;
diff --git a/src/pages/CodeSnippetPage.js b/src/pages/CodeSnippetPage.js
index 9ed134c8..50717833 100644
--- a/src/pages/CodeSnippetPage.js
+++ b/src/pages/CodeSnippetPage.js
@@ -4,14 +4,14 @@ import { a11yDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
export const CodeSnippetlighter = () => {
const [codeString, setCodeString] = useState(``)
-
- useEffect(()=>{
- fetch('/code.txt')
- .then((r) => r.text())
- .then(text => {
- setCodeString(text)
- })
- }, [])
+ //
+ // useEffect(()=>{
+ // fetch('/code.txt')
+ // .then((r) => r.text())
+ // .then(text => {
+ // setCodeString(text)
+ // })
+ // }, [])
return (
diff --git a/src/pages/FormPage.js b/src/pages/FormPage/FormPage.js
similarity index 83%
rename from src/pages/FormPage.js
rename to src/pages/FormPage/FormPage.js
index ea4a5dfd..365d98c8 100644
--- a/src/pages/FormPage.js
+++ b/src/pages/FormPage/FormPage.js
@@ -1,22 +1,25 @@
import React from 'react'
import {useDispatch, useSelector} from 'react-redux'
import {useParams, useNavigate} from 'react-router-dom'
-import {
- currentCandidate,
- selectCurrentCandidate,
-} from '../redux/outstaffingSlice'
import SVG from 'react-inlinesvg'
-import {WithLogout} from '../hoc/withLogout'
-import Form from '../components/Form/Form'
-import {LEVELS, SKILLS} from '../constants/constants'
-import {Footer} from '../components/Footer/Footer'
-import arrow from '../images/right-arrow.png'
-import rectangle from '../images/rectangle_secondPage.png'
-import telegramIcon from '../images/telegram-icon.svg'
+import {useRequest} from "../../hooks/useRequest";
+import {WithLogout} from '../../hoc/withLogout'
+
+import Form from '../../components/Form/Form'
+import {Footer} from '../../components/Footer/Footer'
+
+import arrow from '../../images/right-arrow.png'
+import rectangle from '../../images/rectangle_secondPage.png'
+import telegramIcon from '../../images/telegram-icon.svg'
+
+import {LEVELS, SKILLS} from '../../constants/constants'
+
+import {currentCandidate, selectCurrentCandidate} from '../../redux/outstaffingSlice'
import './formPage.scss'
-import {useRequest} from "../hooks/useRequest";
+
+
const FormPage = () => {
diff --git a/src/pages/formPage.scss b/src/pages/FormPage/formPage.scss
similarity index 100%
rename from src/pages/formPage.scss
rename to src/pages/FormPage/formPage.scss
diff --git a/src/pages/HomePage.js b/src/pages/HomePage.js
deleted file mode 100644
index a11f569c..00000000
--- a/src/pages/HomePage.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import React from 'react';
-import { WithLogout } from '../hoc/withLogout';
-import Home from '../components/Home/Home';
-
-const HomePage = () => ;
-
-export default HomePage;
diff --git a/src/pages/ProfileCalendarPage.js b/src/pages/ProfileCalendarPage.js
deleted file mode 100644
index ea095ea2..00000000
--- a/src/pages/ProfileCalendarPage.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import React from 'react';
-import { ProfileCalendar } from '../../src/components/ProfileCalendar/ProfileCalendar';
-
-const ProfileCalendarPage = () => {
- return ;
-};
-
-export default ProfileCalendarPage;
diff --git a/src/pages/ReportFormPage.js b/src/pages/ReportFormPage.js
deleted file mode 100644
index d8893f76..00000000
--- a/src/pages/ReportFormPage.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import React from 'react';
-import { WithLogout } from '../hoc/withLogout';
-import ReportForm from '../components/ReportForm/ReportForm';
-
-const ReportFormPage = () => ;
-
-export default ReportFormPage;
diff --git a/src/pages/SingleReportPage.js b/src/pages/SingleReportPage/SingleReportPage.js
similarity index 88%
rename from src/pages/SingleReportPage.js
rename to src/pages/SingleReportPage/SingleReportPage.js
index f721a0fa..930f4d56 100644
--- a/src/pages/SingleReportPage.js
+++ b/src/pages/SingleReportPage/SingleReportPage.js
@@ -1,15 +1,17 @@
import React from 'react'
-import { WithLogout } from '../hoc/withLogout'
-import arrowLeft from '../images/right-arrow.png'
+import { WithLogout } from '../../hoc/withLogout'
+import arrowLeft from '../../images/right-arrow.png'
import SVG from 'react-inlinesvg'
-import dateArrowIcon from '../images/dateArrow.svg'
-import calendarIcon from '../images/calendar.svg'
+import dateArrowIcon from '../../images/dateArrow.svg'
+import calendarIcon from '../../images/calendar.svg'
-import { TaskItem } from '../components/TaskItem/TaskItem'
+import { TaskItem } from '../../components/TaskItem/TaskItem'
import './singleReportPage.scss'
+import {useNavigate} from "react-router";
+import {LogoutButton} from "../../components/LogoutButton/LogoutButton";
const tasks = [
{
@@ -25,10 +27,13 @@ const tasks = [
];
const SingleReportPage = () => {
+
+ const navigate= useNavigate();
+
return (
-
+
-
+
{navigate(-1)}} className='single-report-page__back'>
@@ -100,8 +105,9 @@ const SingleReportPage = () => {
+
-
+
)
};
diff --git a/src/pages/singleReportPage.scss b/src/pages/SingleReportPage/singleReportPage.scss
similarity index 90%
rename from src/pages/singleReportPage.scss
rename to src/pages/SingleReportPage/singleReportPage.scss
index c8ad76d2..95569280 100644
--- a/src/pages/singleReportPage.scss
+++ b/src/pages/SingleReportPage/singleReportPage.scss
@@ -1,15 +1,14 @@
.single-report-page {
- padding-top: 4.6rem;
-
+ padding: 4.6rem 20px 0;
+ font-family: 'GT Eesti Pro Display', sans-serif;
&__back {
display: flex;
justify-content: flex-start;
align-items: center;
-
+ cursor: pointer;
&-text {
margin-left: 3.1rem;
color: #000000;
- font-family: 'GT Eesti Pro Display';
font-size: 18px;
font-weight: 300;
letter-spacing: normal;
@@ -26,7 +25,6 @@
&-text {
color: #282828;
- font-family: 'GT Eesti Pro Display';
font-size: 33px;
font-weight: 700;
line-height: 48.74px;
@@ -52,7 +50,6 @@
border-radius: 5px;
border: 1px solid #c4c4c4;
background-color: #f0f7e0;
-
display: flex;
justify-content: center;
align-items: center;
@@ -63,7 +60,6 @@
margin-left: 10px;
margin-bottom: 0;
color: #000000;
- font-family: "GT Eesti Pro Display";
font-size: 13px;
font-weight: 300;
font-style: normal;
@@ -104,7 +100,6 @@
align-items: center;
h3 {
color: #18586e;
- font-family: 'GT Eesti Pro Display';
font-size: 20px;
font-weight: 500;
letter-spacing: normal;
@@ -117,7 +112,6 @@
margin-top: 2.4rem;
width: 580px;
color: #000000;
- font-family: 'GT Eesti Pro Display';
font-size: 15px;
font-weight: 400;
letter-spacing: normal;