From cd21d51bbfdca7aac68477a689c29ba4449aae05 Mon Sep 17 00:00:00 2001 From: xomimishka Date: Tue, 13 May 2025 13:20:23 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D1=86=D0=B5=D0=BD=D1=82=D1=80=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B8=20=D1=83=D0=B2?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=8B?= =?UTF-8?q?=D1=81=D0=BE=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B1=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=20=D1=86=D0=B8=D1=84=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/Numbers/Numbers.styles.scss | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/widgets/Numbers/Numbers.styles.scss b/src/widgets/Numbers/Numbers.styles.scss index eacb8b4..b942593 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,14 +15,14 @@ .block-content { display: flex; - justify-content: space-between; + justify-content: center; align-items: center; - margin-top: 24px; + margin-top: 60px; + gap: 64px; } .columns { display: flex; - justify-content: space-between; gap: 32px; } From 796daf0d21f5825a216f921ab9e0793533d2b983 Mon Sep 17 00:00:00 2001 From: xomimishka Date: Tue, 13 May 2025 13:40:21 +0300 Subject: [PATCH 2/2] =?UTF-8?q?3=20=D1=80=D1=8F=D0=B4=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=202=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