From 72a31ce704a425f513df812c51f4356e93b1a7ed Mon Sep 17 00:00:00 2001 From: Val <44112412+LawfaL@users.noreply.github.com> Date: Wed, 12 Feb 2025 01:26:25 +0700 Subject: [PATCH] fix: homepage blog section --- src/components/Blogs/Blog.tsx | 27 +++++++++------------------ src/components/Homepage.tsx | 6 ------ 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/src/components/Blogs/Blog.tsx b/src/components/Blogs/Blog.tsx index 781779d..d0bf205 100644 --- a/src/components/Blogs/Blog.tsx +++ b/src/components/Blogs/Blog.tsx @@ -17,23 +17,8 @@ export default async function Blog() {

Our Blog

Check the latest news about our company in our blog.

-

- There are three kinds of web developer specialization front-end developer, back-end developer, and - full-stack developer. -

-
-
-
- - - Our blog - - - -
+
{/* Blog Posts Grid */}
@@ -42,7 +27,7 @@ export default async function Blog() {
- +

- {elm.title} + {elm.title}

{sanitizeBlogContentIntoStringPreview(elm.content)}
@@ -68,6 +53,12 @@ export default async function Blog() { ))} {/* End Post Item */}
+ + + Our blog + + + {/* End Blog Posts Grid */}
diff --git a/src/components/Homepage.tsx b/src/components/Homepage.tsx index ac4d043..fe37b41 100644 --- a/src/components/Homepage.tsx +++ b/src/components/Homepage.tsx @@ -3,16 +3,10 @@ import React from "react"; import Facts from "./Facts"; import Service from "./Service"; import Image from "next/image"; -import Testimonials from "./Testimonials"; import Blog from "./Blogs/Blog"; -import Newsletter from "./Newsletter"; -import Contact from "./Contacts/Contact"; import Link from "next/link"; -import TestimonialsDark from "./TestimonialsDark"; -import ContactDark from "./ContactDark"; import { features4 } from "@/data/features"; import Cta3 from "./cta3"; -import { fetchBlog } from "@/services/payload/blog"; export default function homepage({ onePage = false, dark = false }) { return (