Update src/app/blog/page.tsx
This commit is contained in:
@@ -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 FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
||||||
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,12 +98,21 @@ export default function BlogPage() {
|
|||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div className="min-h-screen bg-background">
|
<div className="min-h-screen bg-background">
|
||||||
<NavbarStyleMinimal
|
<div id="nav" data-section="nav">
|
||||||
brandName="QWER"
|
<NavbarStyleMinimal
|
||||||
button={{
|
brandName="QWER"
|
||||||
text: "Get Started", href: "https://qwer.invest/contact"
|
button={{
|
||||||
}}
|
text: "Get Started", href: "https://qwer.invest/contact"
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
<div className="mt-4">
|
||||||
|
<Link href="/">Home</Link> |
|
||||||
|
<Link href="/about">About</Link> |
|
||||||
|
<Link href="/services">Services</Link> |
|
||||||
|
<Link href="/contact">Contact</Link> |
|
||||||
|
<Link href="/blog">Blog</Link>
|
||||||
|
</div>
|
||||||
|
</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">
|
||||||
|
|||||||
Reference in New Issue
Block a user