diff --git a/public/index.html b/public/index.html index 24a2d1c..4949646 100755 --- a/public/index.html +++ b/public/index.html @@ -64,6 +64,6 @@ -ё + diff --git a/src/assets/images/backround/bg_footer_02.svg b/src/assets/images/backround/bg_footer_02.svg new file mode 100644 index 0000000..b1d0297 --- /dev/null +++ b/src/assets/images/backround/bg_footer_02.svg @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/backround/bg_footer_gray_02.svg b/src/assets/images/backround/bg_footer_gray_02.svg new file mode 100644 index 0000000..a9d174c --- /dev/null +++ b/src/assets/images/backround/bg_footer_gray_02.svg @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/index.js b/src/assets/images/index.js index 03f8c06..55198eb 100644 --- a/src/assets/images/index.js +++ b/src/assets/images/index.js @@ -6,10 +6,7 @@ export { default as arrow } from './arrow.svg'; export { default as cross } from './cross.svg'; export { default as extLink } from './extLink.svg'; export { default as fileUpload } from './fileUpload.svg'; -export { default as cross } from './cross.svg'; -export { default as arrow } from './arrow.svg'; export { default as up } from './up.svg'; -export { default as labMock } from './labMock.jpeg'; export { default as footer_diagram } from './backround/bg_footer.svg'; export { default as footer_diagram_gray } from './backround/bg_footer_gray.svg'; @@ -18,4 +15,5 @@ export { default as bg_labs_block } from './backround/bg_labs_block.svg'; export { default as bg_news_block } from './backround/bg_news_block.svg'; export { default as bg_projects_block } from './backround/bg_projects_block.svg'; -export { default as scb } from './scb.svg'; \ No newline at end of file +export { default as scb } from './scb.svg'; +export { default as scb_blue } from './sсb_blue.svg'; \ No newline at end of file diff --git a/src/assets/images/sсb_blue.svg b/src/assets/images/sсb_blue.svg new file mode 100644 index 0000000..58048ee --- /dev/null +++ b/src/assets/images/sсb_blue.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index 7e8b08b..5070dba 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -87,9 +87,10 @@ header h1 { font-size: 36px; font-weight: 600; line-height: 44px; - margin-top: 0; + margin-top: 48px; @media (max-width: 768px) { + margin-top: 0; font-size: 24px; } } diff --git a/src/assets/styles/theme.scss b/src/assets/styles/theme.scss index 590a658..636bf56 100644 --- a/src/assets/styles/theme.scss +++ b/src/assets/styles/theme.scss @@ -2,7 +2,7 @@ $bg-primary: white; $bg-secondary: #343434; $bg-footer: #222222; -$bg-form: #EDEDED; +$bg-form: #F5F5F7; $bg-card-lab: black; $bg-image: rgba(0, 0, 0, .75); @@ -20,6 +20,9 @@ $btn-primary-bg: linear-gradient(93.25deg, #4942E4 0%, #11009E 50%, #4942E4 100% $navbar-height: 60px; $navbar-height-mini: 30px; $navbar-padding-tb: 10px; +$navbar-logo-height: 247px; +$navbar-logo-mini-height: 165px; + $row-gap: 26px; diff --git a/src/components/ContactForm/ContactForm.styles.scss b/src/components/ContactForm/ContactForm.styles.scss index cc54f76..44f7b44 100644 --- a/src/components/ContactForm/ContactForm.styles.scss +++ b/src/components/ContactForm/ContactForm.styles.scss @@ -6,8 +6,11 @@ $color-file-button: rgb(7, 42, 200); .contact-form { padding: 20px 22px; border-radius: 16px; - + height: 700px; background-color: $bg-form; + @media (max-width: 768px) { + height: 100%; + } h2 { margin-top: 0; @@ -44,9 +47,12 @@ $color-file-button: rgb(7, 42, 200); } .field.big { - height: 200px; + height: 300px; line-height: 30px; resize: none; + @media (max-width: 768px) { + height: 200px; + } } .file-input-container { diff --git a/src/components/Footer/Footer.styles.scss b/src/components/Footer/Footer.styles.scss index e14a386..6313e36 100755 --- a/src/components/Footer/Footer.styles.scss +++ b/src/components/Footer/Footer.styles.scss @@ -12,7 +12,7 @@ background: $bg-footer; // Добавление SVG-фона - background-image: url("../../assets/images/backround/bg_footer_gray.svg"); + background-image: url("../../assets/images/backround/bg_footer_gray_02.svg"); background-repeat: no-repeat; background-position: center bottom; background-size: cover; // или `contain` в зависимости от эффекта @@ -127,4 +127,8 @@ } } +} + +#root:has(#mainpageheader) #footer { + background-image: url("../../assets/images/backround/bg_footer_gray.svg"); } \ No newline at end of file diff --git a/src/components/Labs/LabList.styles.scss b/src/components/Labs/LabList.styles.scss index c104c48..1e9d54e 100644 --- a/src/components/Labs/LabList.styles.scss +++ b/src/components/Labs/LabList.styles.scss @@ -1,28 +1,6 @@ @import "../../assets/styles/theme.scss"; .row.lab-list { - - position: relative; - - &::before { - content: ""; - position: absolute; - top: 10%; - left: 0; - width: 100%; // Увеличиваем ширину на 10%, чтобы занять отступ - height: 436px; - background-image: url('../../assets/images/backround/bg_labs_block.svg'); - background-repeat: no-repeat; - background-position: left center; - background-size: contain; // Или cover, если нужно заполнить область - - z-index: -1; - transform: translateX(-11.6%); // Смещаем влево, компенсируя padding - - @media (max-width: 768px) { - display: none; // Скрываем картинку на мобильных - } - } display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); /* Используем 1fr для равных колонок */ @@ -36,7 +14,7 @@ display: block; position: relative; height: 300px; - + overflow: hidden; /* Чтобы контент не выходил за границы и карточка не мигала*/ border-radius: 8px; border-width: 1px; border-style: solid; diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index 278bccf..a918cb0 100755 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -1,11 +1,13 @@ import NavbarLink from './NavbarLink'; -import { scb as logo } from '../../assets/images'; +import { scb as logo, scb_blue as logo_02 } from '../../assets/images'; import './Navbar.styles.scss'; -import React, { useState } from 'react'; // +import React, { useState, useEffect } from 'react'; // import 'bootstrap/dist/css/bootstrap.min.css'; // +import { useLocation } from 'react-router-dom'; // Импортируем useLocation + const mock = [ { text: "НОВОСТИ", @@ -36,7 +38,9 @@ const mock = [ function Navbar({ links = mock }) { const [isOpen, setIsOpen] = useState(false); - + const location = useLocation(); // Получаем текущий путь + const [logoToDisplay, setLogoToDisplay] = useState(logo); // Используем useState для хранения логотипа + const toggleMenu = () => { setIsOpen(!isOpen); }; @@ -45,10 +49,15 @@ function Navbar({ links = mock }) { setIsOpen(false); // Закрываем меню при клике на ссылку }; + useEffect(() => { + // Обновляем логотип в зависимости от текущего пути + setLogoToDisplay(location.pathname === "/" ? logo : logo_02); + }, [location]); // Каждый раз, когда путь изменяется, выполняется этот код + return (