mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 01:59:45 +00:00
Внесённые изменения
This commit is contained in:
1 parent
ee37db0e2c
commit
ee979697de
8 files changed
+88
-77
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 5.4 MiB |
@@ -1,4 +1,6 @@
|
||||
export { default as car } from './car.jpeg';
|
||||
export { default as art } from './art.bmp';
|
||||
|
||||
export { default as newsMock } from './newsMock.png';
|
||||
export { default as labMock } from './labMock.jpeg';
|
||||
|
||||
|
||||
@@ -24,9 +24,17 @@ const mockLinks = {
|
||||
};
|
||||
|
||||
const mockContacts = {
|
||||
email: "skb@sfedu.ru",
|
||||
address: "г. Таганрог, пер. Тургеневский, 44",
|
||||
phone: "+7 (911) 8888-88-88",
|
||||
email: (
|
||||
<a style={{ color: 'inherit' }} href="mailto:skb@sfedu.ru">skb@sfedu.ru</a>
|
||||
),
|
||||
address: (
|
||||
<a style={{ color: 'inherit' }} href="https://yandex.ru/maps/?text=г.%20Таганрог,%20пер.%20Тургеневский,%2044" target="_blank" rel="noopener noreferrer">
|
||||
г. Таганрог, пер. Тургеневский, 44
|
||||
</a>
|
||||
),
|
||||
phone: (
|
||||
<a style={{ color: 'inherit' }} href="tel:+79118888888">+7 (911) 8888-88-88</a>
|
||||
),
|
||||
};
|
||||
|
||||
function Footer({ links = mockLinks, contacts = mockContacts }) {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
@import "../../assets/styles/theme.scss";
|
||||
|
||||
.row.lab-list {
|
||||
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr)); /* Используем 1fr для равных колонок */
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
/* Используем 1fr для равных колонок */
|
||||
justify-content: space-between;
|
||||
gap: $row-gap;
|
||||
max-width: 100%; // Гарантия, что не выйдет за границы
|
||||
@@ -22,7 +23,7 @@
|
||||
|
||||
|
||||
border: 1px solid transparent;
|
||||
|
||||
|
||||
.image {
|
||||
position: absolute;
|
||||
object-fit: cover;
|
||||
@@ -30,22 +31,30 @@
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s ease-out;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.card-content {
|
||||
overflow: hidden; /* Чтобы контент не выходил за границы и карточка не мигала*/
|
||||
overflow: hidden;
|
||||
/* Чтобы контент не выходил за границы и карточка не мигала*/
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
inset: auto 20px 10px 20px;
|
||||
transition: inset .3s;
|
||||
background: none !important;
|
||||
z-index: 2; /* Контент всегда сверху */
|
||||
z-index: 2;
|
||||
/* Контент всегда сверху */
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
margin: 0 0 12px 9px;
|
||||
font-size: clamp(10px, 1.5vw, 20px);
|
||||
font-weight: 600;
|
||||
line-height: 28px;
|
||||
line-height: clamp(12px, 2vw, 24px);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden {
|
||||
@@ -55,16 +64,27 @@
|
||||
max-width: 80%;
|
||||
|
||||
p {
|
||||
font-size: 16px;
|
||||
margin: 0 0 10px 9px;
|
||||
font-size: clamp(8px, 1.5vw, 16px);
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
line-height: clamp(16px, 2vw, 20px);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.link-label {
|
||||
font-size: 20px;
|
||||
font-size: clamp(10px, 1.5vw, 20px);
|
||||
font-weight: 500;
|
||||
line-height: 24px;
|
||||
line-height: clamp(18px, 2vw, 24px);
|
||||
margin: 0 0 0 9px;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,7 +101,8 @@
|
||||
|
||||
&:hover .image {
|
||||
transition: opacity .3s ease-in;
|
||||
filter: brightness(0.5); /* Затемняем изображение */
|
||||
filter: brightness(0.5);
|
||||
/* Затемняем изображение */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,11 +111,13 @@
|
||||
@media (max-width: 768px) {
|
||||
.row.lab-list {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100%; /* Карточка занимает всю ширину своей колонки */
|
||||
height: 215px !important; /* Устанавливаем минимальную высоту */
|
||||
width: 100%;
|
||||
/* Карточка занимает всю ширину своей колонки */
|
||||
height: 215px !important;
|
||||
/* Устанавливаем минимальную высоту */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,11 +33,14 @@ $news-card-gap: 1em;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40%; /* Градиент покрывает 40% карточки */
|
||||
height: 40%;
|
||||
/* Градиент покрывает 40% карточки */
|
||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
|
||||
border-radius: 8px;
|
||||
pointer-events: none; /* Не мешает взаимодействию */
|
||||
z-index: 0; /* Градиент уходит в фон */
|
||||
pointer-events: none;
|
||||
/* Не мешает взаимодействию */
|
||||
z-index: 0;
|
||||
/* Градиент уходит в фон */
|
||||
}
|
||||
|
||||
.image {
|
||||
@@ -46,23 +49,30 @@ $news-card-gap: 1em;
|
||||
object-fit: cover;
|
||||
object-position: top; // Устанавливаем позицию обрезки сверху
|
||||
border-radius: 8px; // Округление углов изображения
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
min-height:15%;
|
||||
padding: 22px 16px;
|
||||
min-height: 15%;
|
||||
padding: clamp(12px, 3vw, 22px) clamp(6px, 1.5vw, 16px);
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-radius: 0 0 8px 8px;
|
||||
font-size: 20px;
|
||||
font-size: clamp(10px, 1.5vw, 20px);
|
||||
font-weight: 600;
|
||||
line-height: 24px;
|
||||
line-height: clamp(12px, 2vw, 24px);
|
||||
color: white;
|
||||
|
||||
//background: rgba(0, 0, 0, 0.6);
|
||||
//background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
|
||||
@media (max-width: 768px) {
|
||||
padding: 22px 16px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,20 +19,26 @@
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
left: 22px;
|
||||
bottom: 16px;
|
||||
|
||||
padding: 2px;
|
||||
border-radius: 4px;
|
||||
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
left: 11px;
|
||||
bottom: 0px;
|
||||
border-radius: 8px;
|
||||
padding: clamp(12px, 3vw, 22px) clamp(6px, 1.5vw, 16px);
|
||||
line-height: 28px;
|
||||
color: $text-card-project;
|
||||
font-size: clamp(12px, 1.8vw, 20px);
|
||||
font-weight: 600;
|
||||
line-height: clamp(14px, 2vw, 24px);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: 22px 16px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ body {
|
||||
margin: 0;
|
||||
|
||||
color: $text-secondary;
|
||||
background-image: url(/assets/images/car.jpeg);
|
||||
background-image: url(/assets/images/art.bmp);
|
||||
background-color: $bg-image;
|
||||
background-blend-mode: multiply;
|
||||
background-position: center;
|
||||
|
||||
@@ -10,27 +10,12 @@ $news-card-gap: 1em;
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
.pic {
|
||||
//&::before {
|
||||
//content: "";
|
||||
//position: absolute;
|
||||
//bottom: 0;
|
||||
//left: 0;
|
||||
//width: 100%;
|
||||
//height: 40%; /* Градиент покрывает 40% карточки */
|
||||
//background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
|
||||
//border-radius: 8px;
|
||||
//pointer-events: none; /* Не мешает взаимодействию */
|
||||
//z-index: 0; /* Градиент уходит в фон */
|
||||
//}
|
||||
|
||||
.label {
|
||||
font-size: 28px;
|
||||
.pic .label {
|
||||
font-size: clamp(18px, 2vw, 28px);
|
||||
@media (max-width: 768px) {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -41,18 +26,6 @@ $news-card-gap: 1em;
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
/*
|
||||
.pic {
|
||||
.image {
|
||||
height: 70%;
|
||||
}
|
||||
.label {
|
||||
height:30%;
|
||||
padding: 16px 0px;
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/* Для всех остальных строк карточки остаются по 3 штуки в строке */
|
||||
@@ -62,16 +35,5 @@ $news-card-gap: 1em;
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
/*.pic {
|
||||
.image {
|
||||
height: 70%;
|
||||
}
|
||||
.label {
|
||||
height:30%;
|
||||
padding: 16px 0px;
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user