mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:19:45 +00:00
пофикины размер контактной формы, цвет бургера в моб. версии, убрана анимация ToTop
This commit is contained in:
1 parent
a6ce0fc330
commit
cba5165193
4 files changed
+52
-48
No files matched your search
@@ -6,11 +6,8 @@ $color-file-button: rgb(7, 42, 200);
|
|||||||
.contact-form {
|
.contact-form {
|
||||||
padding: 20px 22px;
|
padding: 20px 22px;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
height: 730px;
|
height: 100%;
|
||||||
background-color: $bg-form;
|
background-color: $bg-form;
|
||||||
@media (max-width: 768px) {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@@ -122,7 +119,6 @@ $color-file-button: rgb(7, 42, 200);
|
|||||||
}
|
}
|
||||||
|
|
||||||
.submit-container {
|
.submit-container {
|
||||||
//overflow: hidden;
|
|
||||||
.submit {
|
.submit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -132,6 +128,7 @@ $color-file-button: rgb(7, 42, 200);
|
|||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
margin-bottom: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 108px;
|
height: 108px;
|
||||||
padding: $navbar-padding-tb 10%;
|
padding: $navbar-padding-tb 10%;
|
||||||
background-color:rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -27,13 +27,25 @@
|
|||||||
&.transparent {
|
&.transparent {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
transition: none;
|
transition: none;
|
||||||
.bar .nav-link {
|
|
||||||
|
.bar .nav-link {
|
||||||
color: $text-secondary;
|
color: $text-secondary;
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
color:black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.burger .line {
|
||||||
|
background-color: #ffffff;
|
||||||
|
&.open {
|
||||||
|
background-color: #072ac8; // Синий цвет, когда меню открыто
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
filter: brightness(0) invert(1);
|
filter: brightness(0) invert(1);
|
||||||
}
|
}
|
||||||
@@ -71,13 +83,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Телефонна версия
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
height: $navbar-height;
|
height: $navbar-height;
|
||||||
padding: $navbar-padding-tb 5%;
|
padding: $navbar-padding-tb 5%;
|
||||||
|
|
||||||
.nav-link:has(> .logo) .logo {
|
.nav-link:has(> .logo) .logo {
|
||||||
width: $navbar-logo-mini-height; // 100%
|
width: $navbar-logo-mini-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar {
|
.bar {
|
||||||
|
|||||||
@@ -29,22 +29,21 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
// Телефонная версия
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
top: 30%;
|
top: 30%;
|
||||||
padding: $navbar-padding-tb 5%;
|
padding: $navbar-padding-tb 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 52px; //
|
font-size: 52px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 63px; //
|
line-height: 63px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
font-size: 32px; // Уменьшаем размер шрифта на мобильных устройствах
|
font-size: 32px;
|
||||||
line-height: 40px; // Уменьшаем межстрочное расстояние
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -70,6 +69,7 @@ body {
|
|||||||
|
|
||||||
.block {
|
.block {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-family: Montserrat;
|
font-family: Montserrat;
|
||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
@@ -79,7 +79,7 @@ body {
|
|||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
font-size: 24px; // Уменьшаем размер заголовка на мобильных
|
font-size: 24px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,12 +115,22 @@ body {
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#mainpageheader {
|
#mainpageheader {
|
||||||
padding: 0; // Уменьшаем padding на мобильных устройствах
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.block:not(:last-child) {
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#mainpageheader {
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#news-list {
|
#news-list {
|
||||||
position: relative; // Убедитесь, что у #news есть relative
|
position: relative;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
@@ -142,17 +152,19 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.row .card {
|
.row .card {
|
||||||
width: calc(25% - $news-card-gap); // 4 карточки в ряд
|
width: calc(25% - $news-card-gap); // 4 карточки в ряд
|
||||||
aspect-ratio: 1 / 0.8973; // Карточка всегда квадратная
|
aspect-ratio: 1 / 0.8973; // Карточка всегда квадратная
|
||||||
@media (max-width: 768px) {
|
|
||||||
width: 100%; // 1 карточка в ряд на мобильных
|
@media (max-width: 768px) {
|
||||||
margin-bottom: 1em;
|
width: 100%; // 1 карточка в ряд на мобильных
|
||||||
}
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-list {
|
.project-list {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -210,18 +222,18 @@ body {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 35%;
|
top: 35%;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%; // Увеличиваем ширину на 10%, чтобы занять отступ
|
width: 100%;
|
||||||
height: 307px;
|
height: 307px;
|
||||||
background-image: url('../../assets/images/backround/bg_gallery_block.svg');
|
background-image: url('../../assets/images/backround/bg_gallery_block.svg');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: right center;
|
background-position: right center;
|
||||||
background-size: contain; // Или cover, если нужно заполнить область
|
background-size: contain;
|
||||||
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
transform: translateX(12.5%); // Смещаем влево, компенсируя padding
|
transform: translateX(12.5%);
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
display: none; // Скрываем картинку на мобильных
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-20
@@ -55,28 +55,12 @@ function Root() {
|
|||||||
|
|
||||||
// Ускоренный плавный скролл вверх
|
// Ускоренный плавный скролл вверх
|
||||||
const scrollToTop = () => {
|
const scrollToTop = () => {
|
||||||
const startPosition = window.scrollY;
|
window.scrollTo({
|
||||||
const startTime = performance.now();
|
top: 0,
|
||||||
const scrollDuration = 800; // Увеличили время для суперплавности
|
behavior: 'instant'
|
||||||
|
});
|
||||||
// Функция плавного ускорения и замедления (easeInOutCubic)
|
|
||||||
const easeInOutCubic = (t) => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
||||||
|
|
||||||
const animateScroll = (currentTime) => {
|
|
||||||
const elapsedTime = currentTime - startTime;
|
|
||||||
const progress = Math.min(elapsedTime / scrollDuration, 1); // От 0 до 1
|
|
||||||
|
|
||||||
window.scrollTo(0, startPosition * (1 - easeInOutCubic(progress))); // Гладкий скролл
|
|
||||||
|
|
||||||
if (progress < 1) {
|
|
||||||
requestAnimationFrame(animateScroll);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
requestAnimationFrame(animateScroll);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RootContext.Provider value={{ setRef }}>
|
<RootContext.Provider value={{ setRef }}>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
|
|||||||
Reference in new issue
Block a user