From 761996fd52d10fec430776cd5dedde1d5bb02dc1 Mon Sep 17 00:00:00 2001 From: Web-serfer Date: Sat, 4 Apr 2026 16:56:25 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B8=2004/04/26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/home/Services.astro | 7 +- frontend/src/components/home/Steps.astro | 523 +++++++++++++----- .../src/components/layout/header/Header.astro | 19 +- 3 files changed, 416 insertions(+), 133 deletions(-) diff --git a/frontend/src/components/home/Services.astro b/frontend/src/components/home/Services.astro index 776afa7..be83ff3 100644 --- a/frontend/src/components/home/Services.astro +++ b/frontend/src/components/home/Services.astro @@ -514,15 +514,18 @@ const { .card { padding: 2rem; + text-align: center; } - .card-title { - font-size: 1.25rem; + .card-content { + align-items: center; } .card-icon { width: 56px; height: 56px; + margin-left: auto; + margin-right: auto; } .icon-emoji { diff --git a/frontend/src/components/home/Steps.astro b/frontend/src/components/home/Steps.astro index 18e882c..8ad1493 100644 --- a/frontend/src/components/home/Steps.astro +++ b/frontend/src/components/home/Steps.astro @@ -44,41 +44,76 @@ const {
- {sectionSubtitle} +
+
+ {sectionSubtitle} +
+

{sectionTitle}

+

+ Мы создали прозрачную систему взаимодействия, чтобы вы всегда знали, на каком этапе находится ваше дело +

-
- {steps.map((step, index) => ( -
- -
-
{step.number}
- {index < steps.length - 1 && ( -
- )} -
+
+ {steps.map((step: Step, index: number) => ( +
+
+ +
- -
-
- {step.icon} + +
+
{step.number}
+
+
+
+ {step.icon} +
+
+
+ + +
+

{step.title}

+

{step.description}

+
+ + + {index < steps.length - 1 && ( +
+
+
+
+ )}
-

{step.title}

-

{step.description}

-
))}
+ +
+
+
98%
+
успешных дел
+
+
+
+
500+
+
довольных клиентов
+
+
+
+
15 лет
+
опыта
+
+
+
@@ -86,23 +121,60 @@ const { @@ -396,4 +671,4 @@ const { document.querySelectorAll('.animate-on-scroll').forEach((el) => { observer.observe(el); }); - + \ No newline at end of file diff --git a/frontend/src/components/layout/header/Header.astro b/frontend/src/components/layout/header/Header.astro index 819276c..4fcd504 100644 --- a/frontend/src/components/layout/header/Header.astro +++ b/frontend/src/components/layout/header/Header.astro @@ -167,16 +167,19 @@ import { COMPANY } from '@constants'; background: transparent; border: none; cursor: pointer; + transition: opacity 0.3s ease; } .burger-line { width: 100%; height: 2.5px; background-color: #1e3050; - border-radius: 4px; transition: 0.3s; + border-radius: 4px; } - .burger-btn.active .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); } - .burger-btn.active .burger-line:nth-child(2) { opacity: 0; } - .burger-btn.active .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } + /* Скрытие гамбургера при открытом меню */ + .burger-btn.active { + opacity: 0; + pointer-events: none; + } /* --- АНИМАЦИИ ПРИ ЗАГРУЗКЕ --- */ .animate-load { @@ -263,11 +266,13 @@ import { COMPANY } from '@constants'; window.addEventListener('scroll', updateScroll, { passive: true }); + // Открытие меню - добавляем active к бургеру для скрытия burgerBtn?.addEventListener('click', () => { - mobileMenuOverlay?.classList.toggle('active'); - burgerBtn?.classList.toggle('active'); - document.body.style.overflow = mobileMenuOverlay?.classList.contains('active') ? 'hidden' : ''; + mobileMenuOverlay?.classList.add('active'); + burgerBtn?.classList.add('active'); + document.body.style.overflow = 'hidden'; }); + updateScroll(); }); \ No newline at end of file