From 78074b325ad275cef43811cf8657448b794dad0a Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Mon, 2 Feb 2026 11:07:09 +0800 Subject: [PATCH] fix: landingpage --- app/page.tsx | 14 +- components/details/details-content.tsx | 43 +-- .../form/article/create-article-form.tsx | 26 +- components/form/article/edit-article-form.tsx | 92 +++-- .../citizen-news/citizen-news.tsx | 18 +- .../citizen-news/header-citizen.tsx | 10 +- components/landing-page/development.tsx | 234 ++++-------- components/landing-page/footer.tsx | 156 +++----- components/landing-page/header.tsx | 250 ++++++++++--- components/landing-page/health.tsx | 336 +++++++----------- components/landing-page/latest-news.tsx | 167 +++------ components/landing-page/navbar.tsx | 278 ++++++++------- components/landing-page/opinion-news.tsx | 126 +++++++ components/landing-page/youtube-selection.tsx | 151 ++++++++ public/wargabicara-logo.png | Bin 0 -> 282242 bytes service/article.ts | 17 +- tsconfig.json | 24 +- 17 files changed, 1071 insertions(+), 871 deletions(-) create mode 100644 components/landing-page/opinion-news.tsx create mode 100644 components/landing-page/youtube-selection.tsx create mode 100644 public/wargabicara-logo.png diff --git a/app/page.tsx b/app/page.tsx index 79299bd..a8f3a3d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,16 +1,24 @@ +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 LatestNews from "@/components/landing-page/latest-news"; import Navbar from "@/components/landing-page/navbar"; -import Beranda 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 3566035..0e738a6 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); @@ -342,7 +342,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} @@ -504,7 +507,7 @@ export default function DetailContent() {
@@ -595,7 +598,7 @@ export default function DetailContent() { className="rounded-full" />
-

+

christine natalia

@@ -604,7 +607,7 @@ export default function DetailContent() {

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib - ditandai * + ditandai *

Komentar

@@ -639,11 +642,11 @@ export default function DetailContent() { htmlFor="komentar" className="block text-sm font-medium mb-1" > - Komentar * + Komentar *