From d1d7d33c4176d5b3c100e02e554efdb5adc3d0d0 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Fri, 30 Jan 2026 19:00:19 +0800 Subject: [PATCH] update landing --- components/details/details-content.tsx | 45 +-- components/landing-page/development.tsx | 4 +- components/landing-page/footer.tsx | 6 +- components/landing-page/header.tsx | 23 +- components/landing-page/health.tsx | 20 +- components/landing-page/latest-news.tsx | 8 +- components/landing-page/navbar.tsx | 331 ++++++++++------------- components/landing-page/opinion-news.tsx | 8 +- public/berita-bumn-logo.png | Bin 0 -> 392397 bytes 9 files changed, 217 insertions(+), 228 deletions(-) create mode 100644 public/berita-bumn-logo.png 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 *