From 5a06dfdb2202201a0f5231f8cc311e34d1a2627b Mon Sep 17 00:00:00 2001 From: Web-serfer Date: Tue, 31 Mar 2026 17:31:46 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D0=BE=D0=B5=20=D0=B8=D0=B7?= =?UTF-8?q?=D0=BC=D0=BD=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=B2=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/home/Hero.astro | 2 +- .../components/layouts/header/Header.astro | 337 +++++++++--------- 2 files changed, 172 insertions(+), 167 deletions(-) diff --git a/frontend/src/components/home/Hero.astro b/frontend/src/components/home/Hero.astro index f6d8b29..4333b6e 100644 --- a/frontend/src/components/home/Hero.astro +++ b/frontend/src/components/home/Hero.astro @@ -14,7 +14,7 @@ const yearDeclension = getYearDeclension(yearsOfPractice); ---
diff --git a/frontend/src/components/layouts/header/Header.astro b/frontend/src/components/layouts/header/Header.astro index 369b8e2..60015c3 100644 --- a/frontend/src/components/layouts/header/Header.astro +++ b/frontend/src/components/layouts/header/Header.astro @@ -5,12 +5,12 @@ import { CONTACT_CONSTANTS } from "@constants/constants.ts"; const { pathname } = Astro.url; -// Проверка авторизации будет на клиенте const navLinks = [ - { name: "Главная", href: "/" }, + { name: "Главная", href: "/", active: pathname === "/" }, { name: "Услуги", href: "/services", + active: pathname.startsWith("/services"), children: [ { name: "Административные дела", @@ -37,10 +37,10 @@ const navLinks = [ { name: "Дела СВО", href: "/services/svo", icon: "🛡️" }, ], }, - { name: "Кейсы", href: "/cases" }, - { name: "Блог", href: "/blog" }, - { name: "О Бюро", href: "/about" }, - { name: "Контакты", href: "/contacts" }, + { name: "Кейсы", href: "/cases", active: pathname === "/cases" }, + { name: "Блог", href: "/blog", active: pathname === "/blog" }, + { name: "О Бюро", href: "/about", active: pathname === "/about" }, + { name: "Контакты", href: "/contacts", active: pathname === "/contacts" }, ]; const rawLinks = navLinks.filter((link) => { @@ -50,41 +50,41 @@ const rawLinks = navLinks.filter((link) => { ---
ADVOKAT086 Юридическая защита
@@ -93,150 +93,167 @@ const rawLinks = navLinks.filter((link) => { -
- -
@@ -283,7 +300,6 @@ const rawLinks = navLinks.filter((link) => {