Files
skb-kit/src/widgets/Footer/Footer.styles.scss
T

242 lines
5.5 KiB
SCSS

#footer {
display: flex;
justify-content: space-between;
//align-items: center;
height: 309px;
padding: 45px 10%;
margin: 2em 0 0;
background: $bg-footer;
// Добавление SVG-фона
background-image: url("../../shared/assets/images/backround/bg_footer_gray_02.svg");
background-repeat: no-repeat;
background-position: center bottom;
background-size: cover; // или `contain` в зависимости от эффекта
.container-fluid {
width: 100%;
}
.logo-container {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
height: 100%;
@media (max-width: 768px) {
padding-bottom: 20px;
}
.logo {
height: auto;
width: 256px;
}
}
.contacts {
display: flex;
flex-direction: column;
justify-content: space-between;
max-height: 70%;
height: 100%;
p {
color: $text-secondary;
//font-size: 16px;
font-family: Montserrat, sans-serif;
font-weight: 400;
line-height: 20px;
margin: 0;
}
}
.links {
display: flex;
gap: 17px;
@media (max-width: 768px) {
padding-top: 20px;
padding-bottom: 20px;
}
.link {
display: flex;
justify-content: center;
align-items: center;
width: 42px;
aspect-ratio: 1;
border-radius: 100%;
background-color: $bg-primary;
.icon {
width: 80%;
height: 80%;
object-fit: contain;
}
}
}
.footer-content {
display: flex;
flex-direction: column;
height: 100%;
gap: 32px;
justify-content: center;
}
.copyright {
display: none;
}
.visible {
display: block;
}
@media (max-width: 768px) {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100vw;
height: auto;
padding: 1.5em 10%;
position: relative;
gap: 20px;
.visible {
display: none !important;
}
.copyright {
display: block !important; // Показываем текст внизу только в мобильной версии
text-align: center;
font-size: 14px;
color: white;
margin-top: 10px;
}
.container-fluid {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
.logo-container {
height: auto;
max-height: 100%;
max-width: 100%;
display: flex;
justify-content: center;
gap: 20px;
.logo {
height: auto;
width: 100%;
}
}
.logo-container label {
display: none !important; // Скрываем текст в мобильной версии
}
.contacts {
text-align: center;
gap: 0.8em;
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%;
}
}
}
}
.footer-links-container {
display: flex;
flex-direction: column;
/* Arrange links vertically */
justify-content: space-between;
/* Spread out the items */
height: 100%;
/* Make sure the container takes up full height */
@media (max-width: 768px) {
padding-bottom: 20px;
}
}
.footer-links {
display: flex;
justify-content: space-between;
gap: 30px;
.footer-column {
display: flex;
flex-direction: column;
gap: 20px;
a {
color: white;
text-decoration: none;
font-size: 16px;
position: relative;
display: inline-block;
width: fit-content;
&::after {
content: '';
position: absolute;
left: 50%;
bottom: -5px;
width: 0;
height: 1px;
background-color: white;
transition: width 0.3s ease, left 0.3s ease;
transform: translateX(-50%);
}
&:hover::after {
width: 100%;
left: 50%;
}
}
}
}
.privacy-policy {
align-self: flex-end;
/* Align the "Политика конфиденциальности" link to the bottom */
margin-top: auto;
/* Ensure the link is pushed to the bottom */
}
}
#root:has(#mainpageheader) #footer {
background-image: url("../../assets/images/backround/bg_footer_gray.svg");
}