diff --git a/FrontEnd/src/components/CompanyCard/CompanyCard.module.css b/FrontEnd/src/components/CompanyCard/CompanyCard.module.css index 1bfb82efb..d2725ec9c 100644 --- a/FrontEnd/src/components/CompanyCard/CompanyCard.module.css +++ b/FrontEnd/src/components/CompanyCard/CompanyCard.module.css @@ -55,7 +55,7 @@ align-items: flex-start; gap: 16px; border-radius: 0 0 12px 12px; - background: var(--main_light-color); + background: var(--company-card-color); } .company-card__text-block__header { @@ -125,7 +125,7 @@ } .company-card__badge-text { - color: var(--main_light-color); + color: var(--company-card-color); text-align: center; font-feature-settings: 'calt' off; font-family: var(--font-main); @@ -148,7 +148,7 @@ width: 64px; height: 64px; flex-shrink: 0; - background: var(--main_light-color); + background: var(--company-card-color); left: 0; top: 0; border-radius: 9999px; @@ -160,7 +160,7 @@ height: 54px; flex-shrink: 0; border-radius: 26px; - background: var(--main_light-color); + background: var(--company-card-color); left: 5px; top: 5px; position: absolute; @@ -170,7 +170,7 @@ .company-card__buttons { color: var(--companies-card-button); border: none; - background-color: var(--main_light-color); + background-color: var(--company-card-color); } .company-card__buttons:hover { diff --git a/FrontEnd/src/components/Header/Navbar/DropdownMenu.module.css b/FrontEnd/src/components/Header/Navbar/DropdownMenu.module.css index 038086a3a..a88ba8037 100644 --- a/FrontEnd/src/components/Header/Navbar/DropdownMenu.module.css +++ b/FrontEnd/src/components/Header/Navbar/DropdownMenu.module.css @@ -29,8 +29,8 @@ position: absolute; z-index: 1; - top: 44px; - left: 1321px; + top: calc(var(--navbar-content-height) + 20px); + left: 1140px; border-radius: 2px; background: var(--conditional-pop-over, #fff); box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), diff --git a/FrontEnd/src/components/Header/Navbar/Navbar.module.css b/FrontEnd/src/components/Header/Navbar/Navbar.module.css index 8c983b0d9..2a44534c1 100644 --- a/FrontEnd/src/components/Header/Navbar/Navbar.module.css +++ b/FrontEnd/src/components/Header/Navbar/Navbar.module.css @@ -3,6 +3,7 @@ padding: 8px 104px; align-items: center; justify-content: space-between; + height: var(--navbar-content-height); } .navbar-logo__text{ diff --git a/FrontEnd/src/components/Loader/Loader.jsx b/FrontEnd/src/components/Loader/Loader.jsx index 0532a6522..1d1952465 100644 --- a/FrontEnd/src/components/Loader/Loader.jsx +++ b/FrontEnd/src/components/Loader/Loader.jsx @@ -3,7 +3,7 @@ import css from './Loader.module.css'; export default function Loader() { return ( -
+
diff --git a/FrontEnd/src/components/Loader/Loader.module.css b/FrontEnd/src/components/Loader/Loader.module.css index d5a82319a..c24dedb7a 100644 --- a/FrontEnd/src/components/Loader/Loader.module.css +++ b/FrontEnd/src/components/Loader/Loader.module.css @@ -1,4 +1,4 @@ -.container { - padding: 190px; - max-width: 1132px; -} \ No newline at end of file +.loader__container { + padding-top: 30%; + min-height: var(--min-height-block-main); +} diff --git a/FrontEnd/src/global.css b/FrontEnd/src/global.css index 614e00176..18708495a 100644 --- a/FrontEnd/src/global.css +++ b/FrontEnd/src/global.css @@ -69,6 +69,7 @@ --toastify-custom-close-button: rgba(0, 0, 0, 0.85); /* Header */ + --navbar-content-height: 32px; /* Footer */ --footer-backround: #3C4044; @@ -108,4 +109,10 @@ --main-black-90: #292e32; --primary-green-80: #1f9a7c; --character-title-85: rgba(0, 0, 0, 0.85); + + --wf-base-white: #FFF; + + --profile-min-height-block: calc(100vh - 565px); + --min-height-block-main: calc(100vh - 305px); + --company-card-color: #FFF; } diff --git a/FrontEnd/src/pages/Authorization/AuthorizationPage.module.css b/FrontEnd/src/pages/Authorization/AuthorizationPage.module.css index ef68583ba..c7788d9ce 100644 --- a/FrontEnd/src/pages/Authorization/AuthorizationPage.module.css +++ b/FrontEnd/src/pages/Authorization/AuthorizationPage.module.css @@ -1,7 +1,7 @@ .auth-page { display: flex; width: var(--main-block-size); - height: 725px; + min-height: var(--min-height-block-main); flex-shrink: 0; background: #f1fff7; } diff --git a/FrontEnd/src/pages/CustomThemes/customProfileTooltipThemes.js b/FrontEnd/src/pages/CustomThemes/customProfileTooltipThemes.js new file mode 100644 index 000000000..9ec6d6a4d --- /dev/null +++ b/FrontEnd/src/pages/CustomThemes/customProfileTooltipThemes.js @@ -0,0 +1,11 @@ +const tooltipInnerContentStyles = { + display: 'flex', + borderRadius: '2px', + background: 'var(--main-grey-90, #25292C)', + color: 'var(--main-white, #FFF)', + fontFeatureSettings: 'calt', + fontFamily: 'Inter', + letterSpacing: '-0.14px', +}; + +export default tooltipInnerContentStyles; diff --git a/FrontEnd/src/pages/ErrorPages/ErrorPage404.jsx b/FrontEnd/src/pages/ErrorPages/ErrorPage404.jsx index 08a498686..3be512e1c 100644 --- a/FrontEnd/src/pages/ErrorPages/ErrorPage404.jsx +++ b/FrontEnd/src/pages/ErrorPages/ErrorPage404.jsx @@ -4,19 +4,19 @@ import { Button } from 'antd'; export default function ErrorPage404() { return ( -
-
-
404
-
-
-

Щось пішло не так

-

+

+
+
404
+
+
+

Щось пішло не так

+

Схоже, це неправильна адреса, ця сторінка видалена, перейменована або тимчасово недоступна.

diff --git a/FrontEnd/src/pages/ErrorPages/ErrorPage404.module.css b/FrontEnd/src/pages/ErrorPages/ErrorPage404.module.css index b36b6dcd7..22aac1b6d 100644 --- a/FrontEnd/src/pages/ErrorPages/ErrorPage404.module.css +++ b/FrontEnd/src/pages/ErrorPages/ErrorPage404.module.css @@ -1,11 +1,12 @@ -.page { - height: 800px; +.ErrorPage404__page { + min-height: var(--min-height-block-main); display: flex; justify-content: center; background: var(--primary-green-80, #1f9a7c); + } -.container { +.ErrorPage404__container { display: flex; align-items: center; gap: 80px; @@ -15,7 +16,7 @@ font-style: normal; } -.text404 { +.ErrorPage404__text404 { display: flex; height: 178px; flex-direction: column; @@ -26,28 +27,28 @@ letter-spacing: -2px; } -.block { +.ErrorPage404__block { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; } -.explanation { +.ErrorPage404__explanation { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; } -.main-text { +.ErrorPage404__main-text { font-size: 48px; font-weight: 700; line-height: 120%; letter-spacing: 0.48px; } -.details { +.ErrorPage404__details { width: 548px; font-size: 16px; font-weight: 400; @@ -55,6 +56,6 @@ letter-spacing: -0.16px; } -.button-text { +.ErrorPage404__button-text { font-family: var(--font-main); } diff --git a/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.jsx b/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.jsx index 3760e220b..4d1b6d3da 100644 --- a/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.jsx +++ b/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.jsx @@ -29,37 +29,45 @@ function ProfileDetailPage({ isAuthorized }) { isLoading, } = useSWR(urlProfile, fetcher); - const notRequiredData = ['address', 'banner', 'logo', 'common_info', 'edrpou', 'rnokpp', 'founded', 'official_name', 'product_info', 'service_info', 'startup_idea', 'logistics', 'cooperation']; - const containsNotRequiredData = fetchedProfile ? Object.keys(fetchedProfile).some(key => notRequiredData.includes(key) && fetchedProfile[key] !== '' && fetchedProfile[key] !== null) : false; + const notRequiredData = [ + 'address', 'banner', 'logo', 'common_info', 'edrpou', + 'rnokpp', 'founded', 'official_name', 'product_info', + 'service_info', 'startup_idea', 'logistics', 'cooperation' + ]; + + const containsNotRequiredData = fetchedProfile ? + Object.keys(fetchedProfile).some(key => notRequiredData.includes(key) && + fetchedProfile[key] !== '' && + fetchedProfile[key] !== null) : false; return (error && error.status !== 401) ? ( ) : ( -
+
{isLoading ? ( ) : ( - -
+ +
+
+ +
+ +
+
- -
- -
- -
- -
- + +
+
)}
); diff --git a/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.module.css b/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.module.css index 1403e9e27..a5a3bdbb7 100644 --- a/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.module.css +++ b/FrontEnd/src/pages/ProfileDetail/ProfileDetailPage.module.css @@ -1,28 +1,31 @@ -.loader-content { - width: 1305px; - margin-left: auto; - margin-right: auto; +.profile-detail__main { + display: flex; + flex-direction: column; + min-height: var(--min-height-block-main); + align-content: center; +} + +.profile-detail__loader-content { + display: flex; } -.profile-page { +.profile-detail__banner-tooltip { + display: flex; + position: absolute; + padding-top: 12px; + padding-left: 112px; +} + +.profile-detail__page { display: inline-flex; flex-direction: column; - align-items: flex-start; + align-items: center; gap: 16px; - margin-left: 104px; - margin-right: 104px; } -.logo-tooltip{ +.profile-detail__logo-tooltip { display: flex; - position:absolute; + position: absolute; padding-top: 5px; padding-left: 3px; } - -.banner-tooltip{ - display: flex; - position:absolute; - padding-top: 12px; - padding-left: 112px; -} diff --git a/FrontEnd/src/pages/ProfileList/ProfileListPage.module.css b/FrontEnd/src/pages/ProfileList/ProfileListPage.module.css index 816922a4c..dae96ee5a 100644 --- a/FrontEnd/src/pages/ProfileList/ProfileListPage.module.css +++ b/FrontEnd/src/pages/ProfileList/ProfileListPage.module.css @@ -2,6 +2,7 @@ min-height: 470px; border-radius: 8px; background: var(--wf-base-white, #fff); + flex-grow: 1; } .page-content { diff --git a/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfileModal.module.css b/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfileModal.module.css index 2c001fbef..8d59d822d 100644 --- a/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfileModal.module.css +++ b/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfileModal.module.css @@ -163,4 +163,4 @@ font-style: normal; font-weight: 400; line-height: 22px; -} \ No newline at end of file +} diff --git a/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfilePage.jsx b/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfilePage.jsx index 58b8da18f..eef063fa3 100644 --- a/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfilePage.jsx +++ b/FrontEnd/src/pages/ProfilePage/FormComponents/DeleteProfileComponent/DeleteProfilePage.jsx @@ -14,7 +14,7 @@ const DeleteProfilePage = (props) => { setModal(false); }; return ( -
+
Видалити акаунт
diff --git a/FrontEnd/src/pages/SearchPage/SearchField/SearchResults.jsx b/FrontEnd/src/pages/SearchPage/SearchField/SearchResults.jsx index 32e0a9835..531812b65 100644 --- a/FrontEnd/src/pages/SearchPage/SearchField/SearchResults.jsx +++ b/FrontEnd/src/pages/SearchPage/SearchField/SearchResults.jsx @@ -1,5 +1,5 @@ import CompanyCard from '../../../components/CompanyCard/CompanyCard'; -import styles from './SearchResulys.module.css'; +import styles from './SearchResults.module.css'; import PropTypes from 'prop-types'; const SearchResults = ({ diff --git a/FrontEnd/src/pages/SearchPage/SearchField/SearchResulys.module.css b/FrontEnd/src/pages/SearchPage/SearchField/SearchResults.module.css similarity index 57% rename from FrontEnd/src/pages/SearchPage/SearchField/SearchResulys.module.css rename to FrontEnd/src/pages/SearchPage/SearchField/SearchResults.module.css index cd7c350c7..169ede0ee 100644 --- a/FrontEnd/src/pages/SearchPage/SearchField/SearchResulys.module.css +++ b/FrontEnd/src/pages/SearchPage/SearchField/SearchResults.module.css @@ -1,6 +1,6 @@ .new-companies-block { display: flex; - width: 1412px; + margin-top: 3%; padding: 16px 8px; flex-direction: column; align-items: center; @@ -11,10 +11,15 @@ display: grid; grid-template-columns: 1fr 1fr 1fr; justify-content: space-between; - margin: -10px; /* spacess beetwen ecompanies */ + margin: 20px; + position: relative; + z-index: 100; } .col-md-4 { - flex-basis: calc(33, 3% - 80px); /* 3 companies per row */ - margin: 10px; /* spacess beetwen ecompanies */ + flex-basis: calc(33.3% - 80px); + margin: 20px; + z-index: 1000; + position: relative; + z-index: 100; } diff --git a/FrontEnd/src/pages/SearchPage/search.module.css b/FrontEnd/src/pages/SearchPage/search.module.css index 3eed4c45e..e2c7e6e04 100644 --- a/FrontEnd/src/pages/SearchPage/search.module.css +++ b/FrontEnd/src/pages/SearchPage/search.module.css @@ -1,12 +1,19 @@ .main_block_outer { padding-top: 10px; - width: var(--main-block-size); + min-height: var(--min-height-block-main); } .new-companies-main { background-color: var(--search-new-companies-main); } +.new-companies-main__error { + display: flex; + min-height: 539px; + margin-top: 3%; + align-content: center; +} + .main_block { position: relative; } @@ -20,21 +27,30 @@ .search_field_entered_value { color: #0b6c61; - font: normal normal normal 20px/2 Inter; + font: normal normal normal 20px/2 var(--font-main); font-weight: 600; font-style: italic; } .search_results_text { - font: Inter; + font: var(--font-main); font-weight: 700; } .search_result_error { + margin-left: 140px; + margin-top: 15%; + width: 80%; + flex-direction: row; font-weight: 600; color: var(--search-text-color); - font: normal normal bold 20px/2 Inter; - margin: 145px; + font: normal normal bold 20px/2 var(--font-main); +} + +.search_result_error_color { + color: #0b6c61; + font: normal normal normal 20px/2 var(--font-main); + font-weight: 600; } .dot-img-right { @@ -44,8 +60,10 @@ flex-direction: column; align-items: flex-start; gap: 24px; - margin: 0px 354px 473px 1330px; + margin-top: 1%; + margin-left: 87%; position: absolute; + z-index: 10; } .new-companies-result_pages { @@ -53,7 +71,6 @@ } .pagination { - background-color: var(--main_light-color); display: flex; justify-content: center; align-items: center; @@ -62,7 +79,7 @@ .pagination button { all: unset; - border: none; + /* border: none; */ font-size: 16px; font-weight: 500; padding: 8px 16px; @@ -71,7 +88,7 @@ } .pagination button.active { - background-color: none; + background-color: transparent; color: var(--search-pagination-style-color); border: 1px solid var(--search-pagination-style-color); border-radius: 5px; diff --git a/FrontEnd/src/routes/ClientRouter.jsx b/FrontEnd/src/routes/ClientRouter.jsx index b8c14c1ed..4598d5854 100644 --- a/FrontEnd/src/routes/ClientRouter.jsx +++ b/FrontEnd/src/routes/ClientRouter.jsx @@ -1,4 +1,3 @@ -import React from 'react'; import { ToastContainer } from 'react-toastify'; import { Route, Routes, Navigate } from 'react-router-dom'; import { ConfigProvider } from 'antd'; diff --git a/FrontEnd/src/routes/Router.js b/FrontEnd/src/routes/Router.js index 90931631f..d98a89f2c 100644 --- a/FrontEnd/src/routes/Router.js +++ b/FrontEnd/src/routes/Router.js @@ -2,7 +2,6 @@ import {createBrowserRouter} from 'react-router-dom'; import {AuthProvider} from '../context'; import AdminRouter from './AdminRouter'; import ClientRouter from './ClientRouter'; -import React from 'react'; const router = createBrowserRouter([ @@ -24,4 +23,4 @@ const router = createBrowserRouter([ }, ]); -export default router; \ No newline at end of file +export default router;