diff --git a/FrontEnd/src/components/basicPage/BasicPage.jsx b/FrontEnd/src/components/basicPage/BasicPage.jsx index 195d5e7dd..0c40e0e62 100644 --- a/FrontEnd/src/components/basicPage/BasicPage.jsx +++ b/FrontEnd/src/components/basicPage/BasicPage.jsx @@ -54,7 +54,7 @@ function BasicPage() { >
- } /> + } /> } /> } /> )} - } /> + {auth.isAuth ? ( + } /> + ) : ( + } /> + )} } /> } /> } /> diff --git a/FrontEnd/src/components/landing-page/MainPage.jsx b/FrontEnd/src/components/landing-page/MainPage.jsx index 3a48cba69..ca6b5f461 100644 --- a/FrontEnd/src/components/landing-page/MainPage.jsx +++ b/FrontEnd/src/components/landing-page/MainPage.jsx @@ -7,16 +7,16 @@ import MainAboutSection from './about-section/About'; import CookieMod from '../cookieacception/CookieMod'; import css from './MainPage.module.css'; -const MainPage = () => { +const MainPage = (props) => { const [modalActive, setModalActive] = useState(true); return (
- +
- - + + {!props.isAuthorized ? : (null)}
{ +const MainBanner = (props) => { return (
@@ -24,6 +25,7 @@ const MainBanner = () => {
Це унікальний майданчик
для обміну інформацією і досвідом з тими, хто втілює свої ідеї в життя.
+ {!props.isAuthorized ?
Увійти @@ -31,7 +33,7 @@ const MainBanner = () => {
Зареєстуватися
-
+
: (null)}
@@ -85,4 +87,7 @@ const MainBanner = () => { ); }; -export default MainBanner; \ No newline at end of file +export default MainBanner; + +MainBanner.propTypes = { + isAuthorized: PropTypes.bool.isRequired}; diff --git a/FrontEnd/src/components/landing-page/partners/Partners.css b/FrontEnd/src/components/landing-page/partners/Partners.css index 3988ba240..62bf870b3 100644 --- a/FrontEnd/src/components/landing-page/partners/Partners.css +++ b/FrontEnd/src/components/landing-page/partners/Partners.css @@ -28,6 +28,7 @@ display: flex; align-items: flex-start; gap: 12px; + z-index: 1; } .partners-section__navi-icon { display: flex; @@ -43,6 +44,7 @@ flex-shrink: 0; } .partners-section__images { + height: 70px; display: flex; justify-content: center; align-items: center;