diff --git a/app/[locale]/(public)/(polda)/polda/[polda_name]/page.tsx b/app/[locale]/(public)/(polda)/polda/[polda_name]/page.tsx index 4f18ade0..e7c51e8c 100644 --- a/app/[locale]/(public)/(polda)/polda/[polda_name]/page.tsx +++ b/app/[locale]/(public)/(polda)/polda/[polda_name]/page.tsx @@ -20,7 +20,8 @@ const page = () => {
Copyright @TribrataNews Kaltara
+Copyright @TribrataNews Kaltara
*/}
{formatDateToIndonesian(new Date(item?.createdAt))} {item?.timezone ? item?.timezone : "WIB"} |{" "}
diff --git a/components/landing-page/landing-polda-kaltara/latest-content-kaltara.tsx b/components/landing-page/landing-polda-kaltara/latest-content-kaltara.tsx
index 871451d8..b220be2d 100644
--- a/components/landing-page/landing-polda-kaltara/latest-content-kaltara.tsx
+++ b/components/landing-page/landing-polda-kaltara/latest-content-kaltara.tsx
@@ -6,7 +6,7 @@ import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious
import Image from "next/image";
import { Skeleton } from "@/components/ui/skeleton";
import { formatDateToIndonesian, secondToTimes } from "@/utils/globals";
-import { useParams } from "next/navigation";
+import { useParams, usePathname } from "next/navigation";
import { listData } from "@/service/landing/landing";
import { useRouter } from "@/i18n/routing";
import { Icon } from "@iconify/react/dist/iconify.js";
@@ -23,6 +23,7 @@ const LatestContentKaltara = (props: { group: string; type: string }) => {
const [isBannerLoading, setIsBannerLoading] = useState(true);
const [centerPadding, setCenterPadding] = useState {image?.title}
- // {formatDateToIndonesian(new Date(video?.createdAt))} {video?.timezone ? video?.timezone : "WIB"} | {image?.title} {image?.title}
+ {formatDateToIndonesian(new Date(image?.createdAt))} {image?.timezone ? image?.timezone : "WIB"} |
@@ -202,10 +182,10 @@ const LatestContentKaltara = (props: { group: string; type: string }) => {
)
) : selectedTab == "audio" ? (
content?.length > 0 ? (
-
@@ -240,46 +220,11 @@ const LatestContentKaltara = (props: { group: string; type: string }) => {
)
) : selectedTab == "video" ? (
content?.length > 0 ? (
- // {video?.title}
- // {formatDateToIndonesian(new Date(video?.createdAt))} {video?.timezone ? video?.timezone : "WIB"} | {video?.title} {video?.title}
+ {formatDateToIndonesian(new Date(video?.createdAt))} {video?.timezone ? video?.timezone : "WIB"} |
@@ -311,10 +257,10 @@ const LatestContentKaltara = (props: { group: string; type: string }) => {
diff --git a/components/landing-page/landing-polda-kaltara/navbar-polda-kaltara.tsx b/components/landing-page/landing-polda-kaltara/navbar-polda-kaltara.tsx
index d10b5ea2..29ef441c 100644
--- a/components/landing-page/landing-polda-kaltara/navbar-polda-kaltara.tsx
+++ b/components/landing-page/landing-polda-kaltara/navbar-polda-kaltara.tsx
@@ -136,8 +136,8 @@ const NavbarKaltara = () => {
+ {pathname?.split("/")[1] == "in" ? (
+ <>
+ {t("content")}
+ {props.type == "popular" ? "Terpopuler" : props.type == "latest" ? t("new") : "Serupa"}
+ >
+ ) : (
+ <>
+ {props.type == "popular" ? "Popular" : props.type == "latest" ? t("new") : "Serupa"}
+ {t("content")}
+ >
+ )}
+
{t("exploration")} {t("and")} {t("download")} {t("coverage")}{" "}
diff --git a/public/assets/logo-humas-polri.png b/public/assets/logo-humas-polri.png
new file mode 100644
index 00000000..ef366bec
Binary files /dev/null and b/public/assets/logo-humas-polri.png differ
diff --git a/public/assets/logo-inp.png b/public/assets/logo-inp.png
new file mode 100644
index 00000000..706a9573
Binary files /dev/null and b/public/assets/logo-inp.png differ
diff --git a/public/assets/logo-spit.png b/public/assets/logo-spit.png
new file mode 100644
index 00000000..b33f1e1c
Binary files /dev/null and b/public/assets/logo-spit.png differ
diff --git a/public/assets/polda/logo-tbnews.png b/public/assets/polda/logo-tbnews.png
new file mode 100644
index 00000000..dfac2e80
Binary files /dev/null and b/public/assets/polda/logo-tbnews.png differ
diff --git a/public/assets/portal-humas.png b/public/assets/portal-humas.png
new file mode 100644
index 00000000..0d9a47ca
Binary files /dev/null and b/public/assets/portal-humas.png differ
diff --git a/utils/globals.tsx b/utils/globals.tsx
index 11019f6d..81def301 100644
--- a/utils/globals.tsx
+++ b/utils/globals.tsx
@@ -1,5 +1,8 @@
+"use client";
+
import { format } from "date-fns";
import { id, tr } from "date-fns/locale";
+import { useEffect } from "react";
export const generateLocalizedPath = (href: string, locale: string): string => {
if (href.startsWith(`/${locale}`)) {
@@ -153,3 +156,19 @@ export const shimmer = (w: number, h: number) => `
`;
export const toBase64 = (str: string) => (typeof window === "undefined" ? Buffer.from(str).toString("base64") : window.btoa(str));
+
+const LoadScript = () => {
+ useEffect(() => {
+ const script = document.createElement("script");
+ script.src = "https://cdn.userway.org/widget.js";
+ script.setAttribute("data-account", "X36s1DpjqB");
+ script.async = true;
+ document.head.appendChild(script);
+ return () => {
+ // Cleanup if needed
+ document.head.removeChild(script);
+ };
+ }, []);
+ return null; // Tidak perlu merender apa-apa
+};
+export default LoadScript;