diff --git a/app/(admin)/admin/content-website/page.tsx b/app/(admin)/admin/content-website/page.tsx index adc8d97..1be1930 100644 --- a/app/(admin)/admin/content-website/page.tsx +++ b/app/(admin)/admin/content-website/page.tsx @@ -33,7 +33,11 @@ export default function ContentWebsitePage() { transition={{ duration: 0.3 }} >
- Update homepage content, products, services, and partners + Tinjau pengajuan perubahan dari kontributor dan terapkan ke konten live.
+ Aktifkan Edit Mode untuk mengusulkan perubahan. Perubahan akan masuk ke{" "} + My Content menunggu persetujuan approver. Unggah file gambar tidak tersedia sebagai kontributor; + gunakan URL dari Media Library pada bidang yang disediakan. +
+ ) : null} + +- Upload a JPG, PNG, GIF, or WebP file. Stored in MinIO and shown on the landing hero. + {contributorMode + ? "Tempel URL gambar dari Media Library (kontributor tidak dapat mengunggah file langsung)." + : "Upload a JPG, PNG, GIF, or WebP file. Stored in MinIO and shown on the landing hero."}
- { - const f = e.target.files?.[0] ?? null; - setPickedFile(f, heroBlobUrlRef, setHeroPendingFile); - e.target.value = ""; - }} - /> + {contributorMode ? ( + setHeroRemoteUrl(e.target.value)} + /> + ) : ( + { + const f = e.target.files?.[0] ?? null; + setPickedFile(f, heroBlobUrlRef, setHeroPendingFile); + e.target.value = ""; + }} + /> + )} {heroBlobUrlRef.current || heroRemoteUrl ? (- Upload JPG/PNG/GIF/WebP or MP4/WebM. Stored in MinIO; shown inside the phone mockup on the landing page. + {contributorMode + ? "Tempel URL gambar atau video dari Media Library." + : "Upload JPG/PNG/GIF/WebP or MP4/WebM. Stored in MinIO; shown inside the phone mockup on the landing page."}
- { - const f = e.target.files?.[0] ?? null; - setPickedFile(f, aboutBlobUrlRef, setAboutPendingFile); - e.target.value = ""; - }} - /> + {contributorMode ? ( + setAboutRemoteMediaUrl(e.target.value)} + /> + ) : ( + { + const f = e.target.files?.[0] ?? null; + setPickedFile(f, aboutBlobUrlRef, setAboutPendingFile); + e.target.value = ""; + }} + /> + )} {aboutBlobUrlRef.current || aboutRemoteMediaUrl ? (- Track all your content submissions and drafts +
+ Track all your content submissions and drafts. +
++ {isContributor + ? "Riwayat konten Anda: perubahan Content Website (setelah diajukan) dan artikel. Buka item untuk mengedit atau melanjutkan persetujuan di halaman masing-masing." + : isApprover + ? "Riwayat dari kontributor: Content Website dan News & Articles (tanpa draft). Persetujuan dilakukan di halaman Content Website atau detail artikel." + : "Ringkasan konten terkait akun Anda."}
{item.value}
+{item.value}
{item.title}
No content found.
+ ) : ( + <> ++ {item.date ? formatDate(item.date) : "—"} +
++ Showing {(currentPage - 1) * PAGE_SIZE + 1} to{" "} + {Math.min(currentPage * PAGE_SIZE, mergedAll.length)} of{" "} + {mergedAll.length} items +
+{item.date}
-