Spaces:
Running
Running
Что то с шапкой сайта не так
Browse files39 unmodified lines4041424344454647484950515253545556575859606162636465666768697071724 unmodified lines777879808182838485868788899091929394959697989910010139 unmodified lines}}</style><nav class="navbar fixed w-full z-50 py-4 px-6 md:px-12"><div class="container mx-auto flex justify-between items-center"><a href="#" class="text-2xl font-bold text-white md:text-gray-900"><span class="text-primary-600">Growth</span>Pro</a><div class="hidden md:flex space-x-8"><a href="#about" class="nav-link text-white md:text-gray-700 hover:text-primary-600">Обо мне</a><a href="#expertise" class="nav-link text-white md:text-gray-700 hover:text-primary-600">Экспертиза</a><a href="#cases" class="nav-link text-white md:text-gray-700 hover:text-primary-600">Кейсы</a><a href="#contact" class="nav-link text-white md:text-gray-700 hover:text-primary-600">Контакты</a></div><button id="mobile-menu-button" class="md:hidden text-white"><i data-feather="menu"></i></button></div><div id="mobile-menu" class="mobile-menu md:hidden bg-white md:bg-transparent rounded-lg mt-2"><div class="flex flex-col space-y-4 p-4"><a href="#about" class="nav-link text-gray-700 hover:text-primary-600">Обо мне</a><a href="#expertise" class="nav-link text-gray-700 hover:text-primary-600">Экспертиза</a><a href="#cases" class="nav-link text-gray-700 hover:text-primary-600">Кейсы</a><a href="#contact" class="nav-link text-gray-700 hover:text-primary-600">Контакты</a></div></div></nav>`;// Handle mobile menu toggle4 unmodified linesmobileMenu.classList.toggle('open');feather.replace();});// Handle navbar background change on scrollconst navbar = this.shadowRoot.querySelector('.navbar');window.addEventListener('scroll', () => {if (window.scrollY > 50) {navbar.classList.add('navbar-scrolled');this.shadowRoot.querySelectorAll('.nav-link').forEach(link => {link.classList.remove('text-white');link.classList.add('text-gray-700');});} else {navbar.classList.remove('navbar-scrolled');this.shadowRoot.querySelectorAll('.nav-link').forEach(link => {link.classList.add('text-white');link.classList.remove('text-gray-700');});}});}}customElements.define('custom-navbar', CustomNavbar);39 unmodified lines4041424344454647484950515253545556575859606162636465666768697071724 unmodified lines77787980818283848586878889909139 unmodified lines}}</style><nav class="fixed w-full z-50 py-4 px-6 md:px-12 bg-primary-900 transition-all duration-300"><div class="container mx-auto flex justify-between items-center"><a href="/" class="text-2xl font-bold text-white"><span class="text-secondary-500">Ярослав</span> Зимин</a><div class="hidden md:flex space-x-8"><a href="#about" class="nav-link text-white hover:text-secondary-500">Обо мне</a><a href="#expertise" class="nav-link text-white hover:text-secondary-500">Экспертиза</a><a href="#cases" class="nav-link text-white hover:text-secondary-500">Кейсы</a><a href="#contact" class="nav-link text-white hover:text-secondary-500">Контакты</a></div><button id="mobile-menu-button" class="md:hidden text-white focus:outline-none"><i data-feather="menu" class="w-6 h-6"></i></button></div><div id="mobile-menu" class="mobile-menu md:hidden bg-primary-800 rounded-lg mt-2 overflow-hidden"><div class="flex flex-col space-y-4 p-4"><a href="#about" class="nav-link text-white hover:text-secondary-500">Обо мне</a><a href="#expertise" class="nav-link text-white hover:text-secondary-500">Экспертиза</a><a href="#cases" class="nav-link text-white hover:text-secondary-500">Кейсы</a><a href="#contact" class="nav-link text-white hover:text-secondary-500">Контакты</a></div></div></nav>`;// Handle mobile menu toggle4 unmodified linesmobileMenu.classList.toggle('open');feather.replace();});// Mobile menu toggleconst mobileMenuButton = this.shadowRoot.getElementById('mobile-menu-button');const mobileMenu = this.shadowRoot.getElementById('mobile-menu');mobileMenuButton.addEventListener('click', () => {mobileMenu.classList.toggle('open');feather.replace();});}}customElements.define('custom-navbar', CustomNavbar);
components/navbar.js+23-33