From 651de53fad6c2db515fda7e5af3430fcfddceefb Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 24 Feb 2026 08:15:35 +0000 Subject: [PATCH] Update src/app/blog/page.tsx --- src/app/blog/page.tsx | 64 ++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index a2f5b1b..7ce2b84 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -1,20 +1,17 @@ "use client"; -import ReactLenis from "lenis/react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import { useBlogPosts } from "@/hooks/useBlogPosts"; import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; -import BlogCardTwo from '@/components/sections/blog/BlogCardTwo'; +import BlogCardThree from '@/components/sections/blog/BlogCardThree'; -// Define common navigation items for sub-pages to maintain consistency -const ALL_NAV_ITEMS_SUB_PAGES = [ +const navItemsForSubPages = [ { name: "Home", id: "/" }, { name: "Products", id: "/products" }, - { name: "Shop", id: "/shop" }, - { name: "Blog", id: "/blog" }, { name: "About", id: "/#about" }, { name: "Testimonials", id: "/#testimonials" }, - { name: "FAQs", id: "/#faqs" } + { name: "FAQs", id: "/#faqs" }, + { name: "Contact", id: "/#contact" }, ]; export default function BlogPage() { @@ -33,36 +30,33 @@ export default function BlogPage() { secondaryButtonStyle="solid" headingFontWeight="light" > - - + + {isLoading ? ( +
+

Loading posts...

+
+ ) : ( +
+ ({ ...post, onBlogClick: () => {} }))} + title="Latest Articles" + description="Insights and updates from our team" + animationType="slide-up" + textboxLayout="default" + useInvertedBackground={false} />
- - {isLoading ? ( -
-

Loading posts...

-
- ) : ( -
- -
- )} - -
+ )} ); }