-
- {article?.categoryName || "Berita Terkini"}
-
-
- {article?.title || "Memuat..."}
-
-
-
-
+
);
diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx
index 613ee9c..ff21fc1 100644
--- a/components/landing-page/navbar.tsx
+++ b/components/landing-page/navbar.tsx
@@ -41,16 +41,19 @@ export default function Navbar() {
BERITA TERKINI
BERITA POPULER
-
+
JAGA NEGERI
BERITA OPINI
diff --git a/components/landing-page/news.tsx b/components/landing-page/news.tsx
index c6f2c31..a4e0747 100644
--- a/components/landing-page/news.tsx
+++ b/components/landing-page/news.tsx
@@ -12,6 +12,7 @@ import {
import Image from "next/image";
import { useEffect, useState } from "react";
import { getListArticle } from "@/service/article";
+import Link from "next/link";
type Article = {
id: number;
@@ -88,64 +89,66 @@ export default function News() {
key={item.id}
className="flex flex-col md:flex-row gap-4 pb-6"
>
-
-
-
+
+
+
+
-
-
- {item.categoryName || "Berita Terkini"}
-
-
- {item.title}
-
-
- by {item.createdByName || "admin"}{" "}
-
-
-
+
+
+ {item.categoryName || "Berita Terkini"}
+
+
+ {item.title}
+
+
+ by {item.createdByName || "admin"}{" "}
+
+
+
+
+
+
+ {new Date(item.createdAt).toLocaleDateString("id-ID", {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ })}
+
-
-
- {new Date(item.createdAt).toLocaleDateString("id-ID", {
- day: "numeric",
- month: "long",
- year: "numeric",
- })}
-
-
-
- 0
-
-
- {truncateText(item.description, 50)}
-
-
+
+ 0
+
+
+ {truncateText(item.description, 50)}
+
+
+