diff --git a/apps/infoalloggi/src/components/banners.tsx b/apps/infoalloggi/src/components/banners.tsx index 9c10e49..4a3129e 100644 --- a/apps/infoalloggi/src/components/banners.tsx +++ b/apps/infoalloggi/src/components/banners.tsx @@ -120,10 +120,6 @@ export const BannerFactory = (bannerData: Banners) => { export function AnniversaryBanner() { const [isVisible, setIsVisible] = useState(false); const bannerRef = useRef(null); - const fundingDate = new Date("2000-08-01"); - const currentDate = new Date(); - const yearsOfExperience = - currentDate.getFullYear() - fundingDate.getFullYear(); useEffect(() => { const observer = new IntersectionObserver( @@ -149,11 +145,11 @@ export function AnniversaryBanner() { > {/* Decorative background "25" */}
- {yearsOfExperience} + 25
{/* Main content - horizontal layout */} @@ -172,7 +168,7 @@ export function AnniversaryBanner() {
- {yearsOfExperience} + 25 Anni @@ -200,22 +196,22 @@ export function AnniversaryBanner() { isVisible ? "translate-x-0 opacity-100" : "translate-x-8 opacity-0" }`} > - - + +
{/* Accent lines */} -
-
*/} + {/*
+ /> */}
); } diff --git a/apps/infoalloggi/src/utils/config.ts b/apps/infoalloggi/src/utils/config.ts new file mode 100644 index 0000000..4f88f36 --- /dev/null +++ b/apps/infoalloggi/src/utils/config.ts @@ -0,0 +1,2 @@ +export const DEFAULT_SERVIZIO_DURATION_DAYS = 60; +export const DEFAULT_SERVIZIO_INTERRUZIONE_DURATION_DAYS = 14;