From 796daf0d21f5825a216f921ab9e0793533d2b983 Mon Sep 17 00:00:00 2001 From: xomimishka Date: Tue, 13 May 2025 13:40:21 +0300 Subject: [PATCH] =?UTF-8?q?3=20=D1=80=D1=8F=D0=B4=D0=B0=20=D0=BF=D0=BE=202?= =?UTF-8?q?=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/Numbers/Numbers.styles.scss | 31 ++++++++++----- src/widgets/Numbers/Numbers.tsx | 52 ++++++++++++------------- 2 files changed, 45 insertions(+), 38 deletions(-) diff --git a/src/widgets/Numbers/Numbers.styles.scss b/src/widgets/Numbers/Numbers.styles.scss index b942593..f374fc3 100644 --- a/src/widgets/Numbers/Numbers.styles.scss +++ b/src/widgets/Numbers/Numbers.styles.scss @@ -18,17 +18,12 @@ justify-content: center; align-items: center; margin-top: 60px; - gap: 64px; - } - - .columns { - display: flex; gap: 32px; } - .gap01 { - display: flex; - flex-direction: column; + .numbers-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); // 3 колонки по умолчанию (3x2) gap: 32px; } @@ -39,6 +34,8 @@ display: flex; flex-direction: column; align-items: center; + justify-content: center; + min-height: 200px; } .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) { + margin-bottom: 24px; + .block-content { + margin-top: 24px; + } label { font-size: 14px; margin-top: 5px; @@ -63,7 +74,7 @@ width: 100%; } - .gap01 { + .numbers-grid { gap: 10px; } } @@ -80,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