исправление размера добавление фона

This commit is contained in:
mimi committed 2025-02-18 12:50:02 +03:00
1 parent 4978c36070
commit ad810c6217
36 files changed
+1553 -135

No files matched your search

+69
View File
@@ -1,4 +1,5 @@
@import "../../assets/styles/theme.scss";
@import "bootstrap/scss/bootstrap"; // Подключение Bootstrap
#footer {
display: flex;
@@ -10,6 +11,16 @@
margin: 2em 0 0;
background: $bg-footer;
// Добавление SVG-фона
background-image: url("../../assets/images/backround/bg_footer_gray.svg");
background-repeat: no-repeat;
background-position: center bottom;
background-size: cover; // или `contain` в зависимости от эффекта
.container-fluid {
width: 100%;
}
.logo-container {
height: 70%;
max-width: 30%;
@@ -58,4 +69,62 @@
}
}
}
@media (max-width: 768px) {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100vw;
height: auto; // Теперь футер адаптируется по контенту
padding: 1.5em 10%; // Увеличьте отступы для мобильной версии
position: relative; // Исправление проблемы с заливкой
.container-fluid {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem; // Регулирует расстояние между блоками
}
.logo-container {
height: auto;
max-width: 60%; // Увеличен логотип в мобильной версии
display: flex;
justify-content: center;
.logo {
height: auto;
width: 100%;
}
}
.contacts {
text-align: center;
gap: 0.5em;
width: 100%;
padding: 10px 0;
p {
font-size: 16px;
}
}
.links {
display: flex;
justify-content: center;
gap: 10px;
.link {
width: 45px;
transition: background 0.3s ease;
&:hover {
background-color: darken($bg-primary, 10%);//
}
.icon {
width: 65%;
height: 65%;
}
}
}
}
}