Update src/app/blog/page.tsx

This commit is contained in:
2026-01-23 00:14:32 +00:00
parent 6368e07537
commit cbb8fa6831

View File

@@ -2,6 +2,7 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import ReactLenis from "lenis/react"; import ReactLenis from "lenis/react";
import Link from "next/link";
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo'; import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard'; import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
@@ -54,7 +55,8 @@ export default function BlogPage() {
const url = `${apiUrl}/posts/${projectId}?status=published`; const url = `${apiUrl}/posts/${projectId}?status=published`;
const response = await fetch(url, { const response = await fetch(url, {
method: "GET", headers: { method: "GET", headers: {
"Content-Type": "application/json"}, "Content-Type": "application/json"
},
}); });
if (response.ok) { if (response.ok) {
@@ -96,19 +98,19 @@ export default function BlogPage() {
> >
<ReactLenis root> <ReactLenis root>
<div className="min-h-screen bg-background"> <div className="min-h-screen bg-background">
<NavbarStyleFullscreen <div id="nav" data-section="nav">
brandName="DISTRICT" <NavbarStyleFullscreen
navItems={[ brandName="DISTRICT"
{ name: "Home", id: "/home" }, navItems={[
{ name: "Shop", id: "products" }, { name: "Shop", id: "/" },
{ name: "About", id: "about" }, { name: "About", id: "/about" },
{ name: "Craft", id: "features" }, { name: "Craft", id: "/craft" },
{ name: "Stories", id: "testimonial" }, { name: "Contact", id: "/contact" }
{ name: "Contact", id: "contact" } ]}
]} bottomLeftText="Premium Streetwear"
bottomLeftText="Premium Streetwear" bottomRightText="hello@districtco.com"
bottomRightText="hello@districtco.com" />
/> </div>
{isLoading ? ( {isLoading ? (
<div className="w-content-width mx-auto py-20 text-center"> <div className="w-content-width mx-auto py-20 text-center">