Описание Новые измнененения

This commit is contained in:
Web-serfer 2026-03-31 16:52:14 +05:00
parent 8d566354d4
commit d8fc7c85c9
9 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@ interface Props {
backgroundImage?: string;
}
const { backgroundImage = "/images/hero/heroImg.avif" } = Astro.props;
const { backgroundImage = "/images/home/hero/heroImg.avif" } = Astro.props;
const currentYear = new Date().getFullYear();
const yearsOfPractice = currentYear - PRACTICE_START_YEAR;

View file

@ -1,8 +1,8 @@
---
import { Image } from 'astro:assets';
import { PRACTICE_START_YEAR } from '@constants/constants.ts';
import { getYearDeclension } from '@utils/stats.utils.ts';
import whyUsImage from '@assets/images/home/whyus/WhyUs.png';
const whyUsImage = '/images/home/whyus/WhyUs.avif';
const currentYear = new Date().getFullYear();
const yearsOfPractice = currentYear - PRACTICE_START_YEAR;
@ -47,7 +47,7 @@ const iconPaths: Record<string, string> = {
<div class="absolute -inset-4 bg-gradient-to-br from-[var(--color-gold)]/20 to-[var(--color-blue-primary)]/20 rounded-3xl blur-2xl opacity-50 group-hover:opacity-70 transition-opacity"></div>
<div class="relative rounded-2xl overflow-hidden shadow-2xl">
<Image
<img
src={whyUsImage}
alt="Адвокатский стол"
class="w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-700"