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) => {