diff --git a/app/page.tsx b/app/page.tsx index b72dcae..a250058 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,19 +1,24 @@ -import BottomArticlesSection from "@/components/landing-page/bottom-article"; +import Development from "@/components/landing-page/development"; import Footer from "@/components/landing-page/footer"; import Header from "@/components/landing-page/header"; - +import NewsTerkini from "@/components/landing-page/health"; import Navbar from "@/components/landing-page/navbar"; import News from "@/components/landing-page/news"; +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 b5ae217..2b739f9 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -80,7 +80,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); @@ -329,7 +329,7 @@ export default function DetailContent() { {articleDetail?.title}
-
+
- + {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 {articleDetail?.categories?.[0]?.title} @@ -590,11 +593,11 @@ export default function DetailContent() { htmlFor="komentar" className="block text-sm font-medium mb-1" > - Komentar * + Komentar *