diff --git a/public/assets/images/footer/footer.webp b/public/assets/images/footer/footer.webp new file mode 100644 index 0000000..2274806 Binary files /dev/null and b/public/assets/images/footer/footer.webp differ diff --git a/src/components/common/Preloader.tsx b/src/components/common/Preloader.tsx index 96f4a51..6fe7102 100644 --- a/src/components/common/Preloader.tsx +++ b/src/components/common/Preloader.tsx @@ -2,9 +2,12 @@ import React, { useEffect, useState } from "react"; const Preloader = () => { + const [mounted, setMounted] = useState(false); const [isLoading, setIsLoading] = useState(true); useEffect(() => { + setMounted(true); + const timer = setTimeout(() => { setIsLoading(false); }, 1500); // Minimum 1.5s visibility for the logo animation @@ -25,7 +28,7 @@ const Preloader = () => { }; }, []); - if (!isLoading) return null; + if (!mounted || !isLoading) return null; return (
diff --git a/src/components/home/home-1/BlogSection.tsx b/src/components/home/home-1/BlogSection.tsx index fdcd867..7a6bf7c 100644 --- a/src/components/home/home-1/BlogSection.tsx +++ b/src/components/home/home-1/BlogSection.tsx @@ -43,6 +43,7 @@ const BlogSection = ({ hideHeader = false, isPaginated = false }: { hideHeader?: key={i} onClick={() => paginate(i)} className={`pagination-btn ${currentPage === i ? 'active' : ''}`} + suppressHydrationWarning > {i} @@ -105,6 +106,7 @@ const BlogSection = ({ hideHeader = false, isPaginated = false }: { hideHeader?: onClick={() => paginate(currentPage - 1)} disabled={currentPage === 1} className={`pagination-arrow ${currentPage === 1 ? 'disabled' : ''}`} + suppressHydrationWarning > @@ -115,6 +117,7 @@ const BlogSection = ({ hideHeader = false, isPaginated = false }: { hideHeader?: onClick={() => paginate(currentPage + 1)} disabled={currentPage === totalPages} className={`pagination-arrow ${currentPage === totalPages ? 'disabled' : ''}`} + suppressHydrationWarning > diff --git a/src/components/layout/Footer1.tsx b/src/components/layout/Footer1.tsx index d64415c..3543661 100644 --- a/src/components/layout/Footer1.tsx +++ b/src/components/layout/Footer1.tsx @@ -40,7 +40,7 @@ const Footer1 = () => { return (