diff --git a/app/page.tsx b/app/page.tsx index bb22d9b..918f0a9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,18 +1,24 @@ +import Development from "@/components/landing-page/development"; import Footer from "@/components/landing-page/footer"; -import Beranda from "@/components/landing-page/headers"; +import Header from "@/components/landing-page/header"; +import NewsTerkini from "@/components/landing-page/health"; +import News from "@/components/landing-page/latest-news"; import Navbar from "@/components/landing-page/navbar"; -import News from "@/components/landing-page/news"; -import Opini from "@/components/landing-page/opini"; +import OpinionNews from "@/components/landing-page/opinion-news"; +import YouTubeSection from "@/components/landing-page/youtube-selection"; export default function Home() { return (
- +
- + + + +
); diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx index afcab47..fdd8bc1 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); @@ -281,7 +281,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); @@ -319,7 +319,7 @@ export default function DetailContent() {
-
+
- + {articleDetail?.customCreatorName || articleDetail?.createdByName} - - - {new Date( - articleDetail?.publishedAt ?? articleDetail?.createdAt - ).toLocaleDateString("id-ID", { + {new Date( + 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 in {articleDetail?.categories?.[0]?.title} @@ -446,7 +451,7 @@ export default function DetailContent() { - Komentar * + Komentar *