3 ряда по 2 блока

This commit is contained in:
xomimishka committed 2025-05-13 13:40:21 +03:00
1 parent cd21d51bbf
commit 796daf0d21
2 files changed
+21 -14

No files matched your search

+20 -9
View File
@@ -18,17 +18,12 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-top: 60px; margin-top: 60px;
gap: 64px;
}
.columns {
display: flex;
gap: 32px; gap: 32px;
} }
.gap01 { .numbers-grid {
display: flex; display: grid;
flex-direction: column; grid-template-columns: repeat(3, 1fr); // 3 колонки по умолчанию (3x2)
gap: 32px; gap: 32px;
} }
@@ -39,6 +34,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center;
min-height: 200px;
} }
.visible { .visible {
@@ -51,7 +48,21 @@
} }
} }
@media (max-width: 768px) {
margin-bottom: 24px;
.block-content {
margin-top: 24px;
}
.numbers-grid {
grid-template-columns: repeat(2, 1fr); // 2 колонки на мобильных (2x3)
}
}
@media (max-width: 500px) { @media (max-width: 500px) {
margin-bottom: 24px;
.block-content {
margin-top: 24px;
}
label { label {
font-size: 14px; font-size: 14px;
margin-top: 5px; margin-top: 5px;
@@ -63,7 +74,7 @@
width: 100%; width: 100%;
} }
.gap01 { .numbers-grid {
gap: 10px; gap: 10px;
} }
} }
+1 -5
View File
@@ -9,8 +9,7 @@ const Numbers = () => {
<div className="block" id="numbers"> <div className="block" id="numbers">
<h2 className="title">СКБ «КИТ» в цифрах</h2> <h2 className="title">СКБ «КИТ» в цифрах</h2>
<div className="block-content"> <div className="block-content">
<div className="columns"> <div className="numbers-grid">
<div className="gap01">
<div className='blocks'> <div className='blocks'>
<p className="namber">{yearsSince2015}</p> <p className="namber">{yearsSince2015}</p>
<label>лет успешной работы</label> <label>лет успешной работы</label>
@@ -23,8 +22,6 @@ const Numbers = () => {
<p className="namber">30+</p> <p className="namber">30+</p>
<label>выполненных проектов</label> <label>выполненных проектов</label>
</div> </div>
</div>
<div className="gap01">
<div className='blocks'> <div className='blocks'>
<p className="namber">{yearsSince2015}</p> <p className="namber">{yearsSince2015}</p>
<label>лет успешной работы</label> <label>лет успешной работы</label>
@@ -38,7 +35,6 @@ const Numbers = () => {
<label>выполненных проектов</label> <label>выполненных проектов</label>
</div> </div>
</div> </div>
</div>
<img className="visible" src={Illustration} alt="Illustration" /> <img className="visible" src={Illustration} alt="Illustration" />
</div> </div>
</div> </div>