Update src/app/blog/page.tsx
This commit is contained in:
@@ -5,6 +5,7 @@ import ReactLenis from "lenis/react";
|
|||||||
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
|
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
|
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
|
||||||
|
import Link from 'next/link';
|
||||||
|
|
||||||
type BlogPost = {
|
type BlogPost = {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -53,7 +54,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) {
|
||||||
@@ -98,7 +100,6 @@ export default function BlogPage() {
|
|||||||
<NavbarLayoutFloatingOverlay
|
<NavbarLayoutFloatingOverlay
|
||||||
brandName="Fiona"
|
brandName="Fiona"
|
||||||
navItems={[
|
navItems={[
|
||||||
{ name: "Home", id: "/home" },
|
|
||||||
{ name: "Home", id: "/" },
|
{ name: "Home", id: "/" },
|
||||||
{ name: "Shop", id: "/shop" },
|
{ name: "Shop", id: "/shop" },
|
||||||
{ name: "About", id: "/about" },
|
{ name: "About", id: "/about" },
|
||||||
|
|||||||
Reference in New Issue
Block a user