Files
0260dbe5-3bcb-4bbd-aa85-c80…/src/app/blog/page.tsx
2026-02-20 23:22:14 +00:00

78 lines
3.2 KiB
TypeScript

"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import FooterCard from '@/components/sections/footer/FooterCard';
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
import { useBlogPosts } from "@/hooks/useBlogPosts";
import { Twitter, Linkedin, Github } from 'lucide-react';
const footerSocialLinks = [
{ icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
{ icon: Linkedin, href: "https://linkedin.com", ariaLabel: "LinkedIn" },
{ icon: Github, href: "https://github.com", ariaLabel: "GitHub" },
];
export default function BlogPage() {
const { posts, isLoading } = useBlogPosts();
return (
<ThemeProvider
defaultButtonVariant="text-shift"
defaultTextAnimation="reveal-blur"
borderRadius="soft"
contentWidth="medium"
sizing="largeSmall"
background="aurora"
cardStyle="subtle-shadow"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="radial-glow"
headingFontWeight="bold"
>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
navItems={[{name:"Home",id:"/"},{name:"Features",id:"/features"},{name:"Solutions",id:"#products"},{name:"Reviews",id:"#testimonials"},{name:"Contact",id:"#contact"}]}
brandName="CRM AI"
button={{ text: "Get Started", href: "#contact" }}
buttonClassName="min-w-[120px] justify-center"
buttonTextClassName="relative top-[0.5px]"
className="z-50 backdrop-blur-md"
/>
</div>
{
isLoading ? (
<div className="w-content-width mx-auto py-20 text-center">
<p className="text-foreground">Loading posts...</p>
</div>
) : (
<div id="blog" data-section="blog">
<BlogCardTwo
blogs={posts}
title="From Our Blog"
description="Explore our latest articles, insights, and stories from the team."
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
carouselMode="buttons"
/>
</div>
)
}
<div id="footer" data-section="footer">
<FooterCard
logoText="CRM AI"
copyrightText="© 2024 | CRM AI. All rights reserved."
socialLinks={footerSocialLinks}
className="py-16 md:py-20"
cardClassName="py-10 px-6 sm:px-10 md:px-12"
logoClassName="text-lg font-bold"
copyrightTextClassName="text-sm text-foreground/70"
socialContainerClassName="gap-x-4"
/>
</div>
</ThemeProvider>
);
}