From 10635db30477f630e2c6f3089f6f3e1795a59379 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Sun, 1 Feb 2026 23:29:41 +0800 Subject: [PATCH] update landingpage --- app/page.tsx | 13 +- components/details/details-content.tsx | 41 +- components/landing-page/development.tsx | 136 ++++++ components/landing-page/footer.tsx | 123 ++---- components/landing-page/header.tsx | 257 +++++++---- components/landing-page/headers-latest.tsx | 14 +- components/landing-page/health.tsx | 186 ++++++++ components/landing-page/latest-news.tsx | 126 ++++++ components/landing-page/navbar.tsx | 410 +++++++----------- components/landing-page/opinion-news.tsx | 126 ++++++ components/landing-page/youtube-selection.tsx | 151 +++++++ public/infokreasi-logo.png | Bin 0 -> 56916 bytes public/yt-logo.png | Bin 0 -> 19227 bytes tsconfig.json | 24 +- 14 files changed, 1169 insertions(+), 438 deletions(-) create mode 100644 components/landing-page/development.tsx create mode 100644 components/landing-page/health.tsx create mode 100644 components/landing-page/latest-news.tsx create mode 100644 components/landing-page/opinion-news.tsx create mode 100644 components/landing-page/youtube-selection.tsx create mode 100644 public/infokreasi-logo.png create mode 100644 public/yt-logo.png 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 *