Files
c3aa69df-e269-4f7e-a044-13a…/src/app/blog/page.tsx
2026-02-20 03:55:04 +00:00

86 lines
3.8 KiB
TypeScript

"use client";
import ReactLenis from "lenis/react";
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
import FooterCard from '@/components/sections/footer/FooterCard';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import { useBlogPosts } from "@/hooks/useBlogPosts";
import { Phone, Mail, MapPin } from 'lucide-react';
export default function BlogPage() {
const { posts, isLoading } = useBlogPosts();
return (
<ThemeProvider
defaultButtonVariant="slide-background"
defaultTextAnimation="background-highlight"
borderRadius="rounded"
contentWidth="compact"
sizing="mediumSizeLargeTitles"
background="circleGradient"
cardStyle="glass-depth"
primaryButtonStyle="flat"
secondaryButtonStyle="glass"
headingFontWeight="light"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingInline
brandName="Martin Brothers Roofing"
navItems={[
{ name: "Home", id: "/" },
{ name: "Services", id: "services" },
{ name: "About", id: "about" },
{ name: "Testimonials", id: "testimonials" },
{ name: "Contact", id: "contact" }
]}
button={{
text: "Get Free Estimate", href: "#contact"
}}
/>
</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">
<BlogCardThree
blogs={posts}
title="Roofing Insights & Updates"
description="Stay informed with the latest roofing trends, maintenance tips, and industry expertise from Martin Brothers Roofing."
textboxLayout="default"
useInvertedBackground={false}
carouselMode="buttons"
animationType="slide-up"
tag="Blog"
/>
</div>
)}
<div id="footer" data-section="footer">
<FooterCard
logoText="Martin Brothers Roofing"
copyrightText="© 2025 Martin Brothers Roofing. All rights reserved. Licensed & Insured."
socialLinks={[
{
icon: Phone,
href: "tel:(859)350-7100", ariaLabel: "Call us"
},
{
icon: Mail,
href: "mailto:info@martinbrothersroofing.com", ariaLabel: "Email us"
},
{
icon: MapPin,
href: "https://maps.google.com/?q=2656+Crescent+Springs+Pike,+Covington,+KY+41017", ariaLabel: "Visit our location"
}
]}
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}