Update src/app/blog/page.tsx
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import ReactLenis from "lenis/react";
|
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import { useBlogPosts } from "@/hooks/useBlogPosts";
|
import { useBlogPosts } from "@/hooks/useBlogPosts";
|
||||||
|
|
||||||
@@ -29,21 +28,20 @@ export default function BlogPage() {
|
|||||||
secondaryButtonStyle="solid"
|
secondaryButtonStyle="solid"
|
||||||
headingFontWeight="extrabold"
|
headingFontWeight="extrabold"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleCentered
|
<NavbarStyleCentered
|
||||||
navItems={[
|
navItems={[
|
||||||
{ name: "Home", id: "/" },
|
{ name: "Home", id: "/" },
|
||||||
{ name: "Products", id: "products" },
|
{ name: "Shop", id: "/shop" },
|
||||||
{ name: "About", id: "about" },
|
{ name: "Blog", id: "/blog" },
|
||||||
{ name: "Features", id: "features" },
|
|
||||||
{ name: "Testimonials", id: "testimonials" },
|
|
||||||
{ name: "FAQ", id: "faq" },
|
|
||||||
]}
|
]}
|
||||||
button={{ text: "Shop Now", href: "products" }}
|
button={{ text: "Shop Now", href: "/shop" }}
|
||||||
brandName="Glow Haven"
|
brandName="Glow Haven"
|
||||||
className="py-4 lg:py-6"
|
className="py-4 lg:py-6"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="blog" data-section="blog">
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<div className="w-content-width mx-auto py-20 text-center">
|
<div className="w-content-width mx-auto py-20 text-center">
|
||||||
<p className="text-foreground">Loading posts...</p>
|
<p className="text-foreground">Loading posts...</p>
|
||||||
@@ -59,7 +57,9 @@ export default function BlogPage() {
|
|||||||
carouselMode="buttons"
|
carouselMode="buttons"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="footer" data-section="footer">
|
||||||
<FooterBaseCard
|
<FooterBaseCard
|
||||||
logoText="Glow Haven"
|
logoText="Glow Haven"
|
||||||
columns={[
|
columns={[
|
||||||
@@ -88,7 +88,7 @@ export default function BlogPage() {
|
|||||||
copyrightText="© 2024 Glow Haven. All rights reserved."
|
copyrightText="© 2024 Glow Haven. All rights reserved."
|
||||||
className="py-12 lg:py-16"
|
className="py-12 lg:py-16"
|
||||||
/>
|
/>
|
||||||
</ReactLenis>
|
</div>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user