diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx
index fb62c20..997dfc4 100644
--- a/components/details/details-content.tsx
+++ b/components/details/details-content.tsx
@@ -81,7 +81,7 @@ export default function DetailContent() {
const [diseId, setDiseId] = useState(0);
const [thumbnailImg, setThumbnailImg] = useState([]);
const [selectedMainImage, setSelectedMainImage] = useState(
- null
+ null,
);
const [selectedIndex, setSelectedIndex] = useState(0);
@@ -324,7 +324,7 @@ export default function DetailContent() {
// 3️⃣ FILTER sesuai articleId
const filteredFiles = allFiles.filter(
- (file: any) => file.articleId === data.id
+ (file: any) => file.articleId === data.id,
);
setDetailFiles(filteredFiles);
@@ -396,12 +396,19 @@ export default function DetailContent() {
{new Date(
- articleDetail?.publishedAt ?? articleDetail?.createdAt
- ).toLocaleDateString("id-ID", {
- day: "numeric",
- month: "long",
- year: "numeric",
- })}
+ articleDetail?.publishedAt || articleDetail?.createdAt,
+ )
+ .toLocaleString("id-ID", {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ hour: "2-digit",
+ minute: "2-digit",
+ hour12: false,
+ timeZone: "Asia/Jakarta",
+ })
+ .replace("pukul ", "")}{" "}
+ WIB
•
@@ -524,7 +531,7 @@ export default function DetailContent() {
@@ -636,11 +643,11 @@ export default function DetailContent() {
htmlFor="komentar"
className="block text-sm font-medium mb-1"
>
- Komentar *
+ Komentar *
@@ -651,7 +658,7 @@ export default function DetailContent() {
htmlFor="nama"
className="block text-sm font-medium mb-1"
>
- Nama *
+ Nama *
- Email *
+ Email *
KIRIM KOMENTAR
@@ -712,7 +719,7 @@ export default function DetailContent() {
@@ -781,7 +788,7 @@ export default function DetailContent() {
onClick={() => setActiveTab(tab.id)}
className={`pb-2 text-sm font-medium ${
activeTab === tab.id
- ? "border-b-2 border-green-600 text-green-600"
+ ? "border-b-2 border-blue-600 text-blue-600"
: "text-gray-600"
}`}
>
@@ -847,7 +854,7 @@ export default function DetailContent() {
-
+
Recommended
@@ -874,7 +881,7 @@ export default function DetailContent() {
day: "2-digit",
month: "long",
year: "numeric",
- }
+ },
)}
@@ -904,7 +911,7 @@ export default function DetailContent() {
day: "2-digit",
month: "long",
year: "numeric",
- }
+ },
)}
diff --git a/components/landing-page/development.tsx b/components/landing-page/development.tsx
index d659243..a12ce3c 100644
--- a/components/landing-page/development.tsx
+++ b/components/landing-page/development.tsx
@@ -72,7 +72,7 @@ export default function Development() {
@@ -95,7 +95,7 @@ export default function Development() {
-
+
{item.categories?.[0]?.title || "Kategori"}
diff --git a/components/landing-page/footer.tsx b/components/landing-page/footer.tsx
index 69c2ab4..61162ef 100644
--- a/components/landing-page/footer.tsx
+++ b/components/landing-page/footer.tsx
@@ -11,7 +11,7 @@ export default function Footer() {
-
@@ -62,7 +62,7 @@ export default function Footer() {
- © 2025 Milenial Bersuara - All Rights Reserved.
+ © 2025 Berita Bumn - All Rights Reserved.
);
diff --git a/components/landing-page/header.tsx b/components/landing-page/header.tsx
index 43de37d..9350ad3 100644
--- a/components/landing-page/header.tsx
+++ b/components/landing-page/header.tsx
@@ -51,7 +51,7 @@ export default function Header() {
{/* FLASH STRIP */}
-
Flash
+ Flash
⚡
LOAD MORE ➜
@@ -125,7 +125,7 @@ export default function Header() {
{/* White Card Overlay */}
-
+
{mainArticle.categoryName ||
mainArticle.categories?.[0]?.title ||
"Berita"}
@@ -144,14 +144,13 @@ export default function Header() {
•
- {new Date(mainArticle.publishedAt).toLocaleDateString(
- "id-ID",
- {
- day: "2-digit",
- month: "long",
- year: "numeric",
- }
- )}
+ {new Date(
+ mainArticle.publishedAt || mainArticle.createdAt,
+ ).toLocaleDateString("id-ID", {
+ day: "2-digit",
+ month: "long",
+ year: "numeric",
+ })}
@@ -190,7 +189,9 @@ export default function Header() {
{item.title}
- {new Date(item.publishedAt).toLocaleDateString("id-ID", {
+ {new Date(
+ item.publishedAt || item.createdAt,
+ ).toLocaleDateString("id-ID", {
day: "2-digit",
month: "long",
year: "numeric",
diff --git a/components/landing-page/health.tsx b/components/landing-page/health.tsx
index c8b2a6d..6ca747d 100644
--- a/components/landing-page/health.tsx
+++ b/components/landing-page/health.tsx
@@ -69,7 +69,7 @@ export default function NewsTerkini() {
BERITA TERKINI
-
+
{articles.map((item) => (
@@ -81,7 +81,7 @@ export default function NewsTerkini() {
{/* CATEGORY */}
-
+
{item.categories?.[0]?.title || "Kategori"}
@@ -98,7 +98,15 @@ export default function NewsTerkini() {
{/* AUTHOR + DATE */}
By {item.customCreatorName || item.createdByName} —{" "}
- {formatDate(item.publishedAt)}
+
+ {new Date(
+ item.publishedAt || item.createdAt,
+ ).toLocaleDateString("id-ID", {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ })}
+
@@ -115,14 +123,14 @@ export default function NewsTerkini() {
{/* LOAD MORE */}
-
TERBANYAK DIBAGIKAN
-
+
{popular.map((item, index) => (
@@ -132,7 +140,7 @@ export default function NewsTerkini() {
className="flex gap-3 border-b pb-4"
>
{/* NOMOR */}
-
+
{(index + 1).toString().padStart(2, "0")}
diff --git a/components/landing-page/latest-news.tsx b/components/landing-page/latest-news.tsx
index 3a8f2a6..b586ba6 100644
--- a/components/landing-page/latest-news.tsx
+++ b/components/landing-page/latest-news.tsx
@@ -63,7 +63,7 @@ export default function LatestNews() {
{/* TITLE */}
{/* GRID 4 KOLOM */}
@@ -82,7 +82,7 @@ export default function LatestNews() {
{/* BADGE CATEGORY DI DALAM GAMBAR */}
-
+
{item.categories?.[0]?.title || "Kategori"}
@@ -100,7 +100,9 @@ export default function LatestNews() {
-
- {new Date(item.publishedAt).toLocaleDateString("id-ID", {
+ {new Date(
+ item.publishedAt || item.createdAt,
+ ).toLocaleDateString("id-ID", {
day: "numeric",
month: "long",
year: "numeric",
diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx
index 550b9da..42f50c0 100644
--- a/components/landing-page/navbar.tsx
+++ b/components/landing-page/navbar.tsx
@@ -1,129 +1,36 @@
-// components/landing-page/navbar.tsx
"use client";
-import { useState } from "react";
+import { Search } from "lucide-react";
import Image from "next/image";
-import { Search, Menu } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
export default function Navbar() {
- const [open, setOpen] = useState(false);
const pathname = usePathname();
+ const isActive = (href: any) => {
+ return pathname === href || pathname.startsWith(href + "/");
+ };
return (
-
-
-
- {/* Logo + Search */}
-
-
-
-
-
-
+
+
+ {/* Left: Logo */}
+
+
+
-
- {/* Date + Login */}
-
- Jumat, April 18, 2025
-
- Login
-
-
-
-
- {/* NAVBAR */}
-
- {/* Left: Menu Items */}
- setOpen(!open)}>
-
-
-
-
-
- {/* Right: Socials + Subscribe */}
-
-
-
+ {/* Social Icons */}
+
+
-
+
+
-
+
+
-
-
-
-
+
-
-
-
-
- SUBSCRIBE
+
+
+ {/* Middle Menu */}
+
+
+
+
+
document.documentElement.classList.toggle("dark")}
+ className="w-10 h-5 rounded-full bg-gray-300 dark:bg-gray-700 relative transition-all"
+ >
+
+
+ {/* BURGER BUTTON (mobile menu) */}
+
+
+
+
+
+
+
+
+ LOGIN
+
+
-
+
);
}
diff --git a/components/landing-page/opinion-news.tsx b/components/landing-page/opinion-news.tsx
index e1dd909..35e42fc 100644
--- a/components/landing-page/opinion-news.tsx
+++ b/components/landing-page/opinion-news.tsx
@@ -63,7 +63,7 @@ export default function OpinionNews() {
{/* TITLE */}
{/* GRID 4 KOLOM */}
@@ -82,7 +82,7 @@ export default function OpinionNews() {
{/* BADGE CATEGORY DI DALAM GAMBAR */}
-
+
{item.categories?.[0]?.title || "Kategori"}
@@ -100,7 +100,9 @@ export default function OpinionNews() {
-
- {new Date(item.publishedAt).toLocaleDateString("id-ID", {
+ {new Date(
+ item.publishedAt || item.createdAt,
+ ).toLocaleDateString("id-ID", {
day: "numeric",
month: "long",
year: "numeric",
diff --git a/public/berita-bumn-logo.png b/public/berita-bumn-logo.png
new file mode 100644
index 0000000..36a5e4e
Binary files /dev/null and b/public/berita-bumn-logo.png differ