diff --git a/src/widgets/Numbers/Numbers.styles.scss b/src/widgets/Numbers/Numbers.styles.scss index eacb8b4..f374fc3 100644 --- a/src/widgets/Numbers/Numbers.styles.scss +++ b/src/widgets/Numbers/Numbers.styles.scss @@ -1,14 +1,10 @@ #numbers { - margin-bottom: 24px; + margin-bottom: 60px; img { pointer-events: none; } - .title { - // если нужно — добавь стили заголовка - } - label { font-weight: 500; font-size: 20px; @@ -19,20 +15,15 @@ .block-content { display: flex; - justify-content: space-between; + justify-content: center; align-items: center; - margin-top: 24px; - } - - .columns { - display: flex; - justify-content: space-between; + margin-top: 60px; gap: 32px; } - .gap01 { - display: flex; - flex-direction: column; + .numbers-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); // 3 колонки по умолчанию (3x2) gap: 32px; } @@ -43,6 +34,8 @@ display: flex; flex-direction: column; align-items: center; + justify-content: center; + min-height: 200px; } .visible { @@ -55,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) { + margin-bottom: 24px; + .block-content { + margin-top: 24px; + } label { font-size: 14px; margin-top: 5px; @@ -67,7 +74,7 @@ width: 100%; } - .gap01 { + .numbers-grid { gap: 10px; } } @@ -84,4 +91,4 @@ line-height: 1; margin: 0; padding: 0; -} +} \ No newline at end of file diff --git a/src/widgets/Numbers/Numbers.tsx b/src/widgets/Numbers/Numbers.tsx index 95e74f5..7ffebd4 100644 --- a/src/widgets/Numbers/Numbers.tsx +++ b/src/widgets/Numbers/Numbers.tsx @@ -9,34 +9,30 @@ const Numbers = () => {

СКБ «КИТ» в цифрах

-
-
-
-

{yearsSince2015}

- -
-
-

20+

- -
-
-

30+

- -
+
+
+

{yearsSince2015}

+
-
-
-

{yearsSince2015}

- -
-
-

20+

- -
-
-

30+

- -
+
+

20+

+ +
+
+

30+

+ +
+
+

{yearsSince2015}

+ +
+
+

20+

+ +
+
+

30+

+
Illustration @@ -45,4 +41,4 @@ const Numbers = () => { ); }; -export default Numbers; +export default Numbers; \ No newline at end of file