ÐДобавление верисфикации Yandex

This commit is contained in:
Web-serfer 2026-04-01 18:15:23 +05:00
parent af43d08e90
commit 0b1db78d41

View file

@ -1,5 +1,6 @@
--- ---
import '@styles/global.css'; import '@styles/global.css';
import Header from "@components/layout/header/Header.astro"; import Header from "@components/layout/header/Header.astro";
import Footer from "@components/layout/footer/Footer.astro"; import Footer from "@components/layout/footer/Footer.astro";
import ConsultationModal from "@components/base/ConsultationModal.astro"; import ConsultationModal from "@components/base/ConsultationModal.astro";
@ -12,6 +13,8 @@ import ConsultationModal from "@components/base/ConsultationModal.astro";
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<!-- Yandex верификация -->
<meta name="yandex-verification" content="be3edfd138348e43" />
<title>Автоюрист в Сургуте</title> <title>Автоюрист в Сургуте</title>
</head> </head>
<body> <body>
@ -19,31 +22,31 @@ import ConsultationModal from "@components/base/ConsultationModal.astro";
<slot /> <slot />
<Footer /> <Footer />
<ConsultationModal /> <ConsultationModal />
<script>
// Клиентский скрипт для открытия модального окна
document.addEventListener('DOMContentLoaded', () => {
const btn = document.getElementById('consultation-btn');
btn?.addEventListener('click', () => {
window.dispatchEvent(new CustomEvent('open-modal', {
detail: 'consultation-modal'
}));
});
});
// Для Astro View Transitions
document.addEventListener('astro:page-load', () => {
const btn = document.getElementById('consultation-btn');
btn?.addEventListener('click', () => {
window.dispatchEvent(new CustomEvent('open-modal', {
detail: 'consultation-modal'
}));
});
});
</script>
</body> </body>
</html> </html>
<script>
// Клиентский скрипт для открытия модального окна
document.addEventListener('DOMContentLoaded', () => {
const btn = document.getElementById('consultation-btn');
btn?.addEventListener('click', () => {
window.dispatchEvent(new CustomEvent('open-modal', {
detail: 'consultation-modal'
}));
});
});
// Для Astro View Transitions
document.addEventListener('astro:page-load', () => {
const btn = document.getElementById('consultation-btn');
btn?.addEventListener('click', () => {
window.dispatchEvent(new CustomEvent('open-modal', {
detail: 'consultation-modal'
}));
});
});
</script>