Правка типов
This commit is contained in:
parent
ed93c5646a
commit
410a1c3235
5 changed files with 163 additions and 11 deletions
|
|
@ -16,5 +16,9 @@
|
|||
"@tailwindcss/vite": "^4.2.2",
|
||||
"astro": "^6.0.8",
|
||||
"tailwindcss": "^4.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.8",
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
|
@ -396,7 +396,7 @@ const {
|
|||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
const el = entry.target;
|
||||
const el = entry.target as HTMLElement;
|
||||
const delay = parseInt(el.dataset.delay || '0');
|
||||
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
|
|
@ -443,12 +443,6 @@ import { NAV_LINKS, COMPANY } from '@constants';
|
|||
// Находим кнопку бургера из Header, чтобы сбрасывать её состояние
|
||||
const burgerBtn = document.getElementById('burger-btn');
|
||||
|
||||
function openMenu() {
|
||||
overlay?.classList.add('active');
|
||||
burgerBtn?.classList.add('active'); // Синхронизируем бургер
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
function closeMenu() {
|
||||
overlay?.classList.remove('active');
|
||||
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ import { reviewsData, votingSummary } from '@data/reviewsData';
|
|||
|
||||
<!-- Сетка отзывов -->
|
||||
<div class="reviews-grid">
|
||||
{reviewsData.map((review, index) => (
|
||||
<ReviewCard
|
||||
{reviewsData.map((review) => (
|
||||
<ReviewCard
|
||||
name={review.name}
|
||||
car={review.car}
|
||||
text={review.text}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue