This commit is contained in:
hanif salafi 2025-08-13 18:49:18 +07:00
commit ae42305e0e
3 changed files with 16 additions and 7 deletions

View File

@ -157,7 +157,7 @@ export default function ContentBlast(props: { type: string }) {
form.setValue("title", `${details?.title}`); form.setValue("title", `${details?.title}`);
form.setValue( form.setValue(
"url", "url",
details?.pageUrl || "https://mediahub.polri.go.id" details?.pageUrl || "https://mediahub.polri.go.id/in"
); );
if (type == "wa") { if (type == "wa") {
body = `${textEllipsis(details?.description, 150)}`; body = `${textEllipsis(details?.description, 150)}`;

View File

@ -173,7 +173,7 @@ const HeroModal = ({
> >
</button> </button>
<Image {/* <Image
priority={true} priority={true}
src={list?.smallThumbnailLink} src={list?.smallThumbnailLink}
alt="gambar-utama" alt="gambar-utama"
@ -183,6 +183,15 @@ const HeroModal = ({
shimmer(700, 475) shimmer(700, 475)
)}`} )}`}
className="w-full h-[310px] lg:h-[420px] rounded-lg object-cover" className="w-full h-[310px] lg:h-[420px] rounded-lg object-cover"
/> */}
<ImageBlurry
src={list?.smallThumbnailLink}
alt="gambar-utama"
style={{
objectFit: "contain",
width: "100%",
height: "100%",
}}
/> />
<div className="absolute bottom-0 left-0 right-0 bg-black/30 backdrop-brightness-50 text-white pb-4 px-4 pt-8 rounded-bl-2xl rounded-tr-2xl mx-3 mb-2"> <div className="absolute bottom-0 left-0 right-0 bg-black/30 backdrop-brightness-50 text-white pb-4 px-4 pt-8 rounded-bl-2xl rounded-tr-2xl mx-3 mb-2">
<div className="absolute top-0 left-0 bottom-0 w-2 bg-[#bb3523] rounded-bl-lg"></div> <div className="absolute top-0 left-0 bottom-0 w-2 bg-[#bb3523] rounded-bl-lg"></div>

View File

@ -251,7 +251,7 @@ const Navbar = () => {
<PopoverContent className="flex flex-col gap-2 w-fit px-6 py-4 rounded-md shadow-md bg-white dark:bg-black"> <PopoverContent className="flex flex-col gap-2 w-fit px-6 py-4 rounded-md shadow-md bg-white dark:bg-black">
<Link <Link
href={prefixPath + "image/filter"} href={prefixPath + "/image/filter"}
// onClick={() => router.push(prefixPath + "/image/filter")} // onClick={() => router.push(prefixPath + "/image/filter")}
className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]" className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]"
> >
@ -259,7 +259,7 @@ const Navbar = () => {
{t("image", { defaultValue: "Image" })} {t("image", { defaultValue: "Image" })}
</Link> </Link>
<Link <Link
href={prefixPath + "video/filter"} href={prefixPath + "/video/filter"}
// onClick={() => router.push(prefixPath + "/video/filter")} // onClick={() => router.push(prefixPath + "/video/filter")}
className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]" className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]"
> >
@ -267,7 +267,7 @@ const Navbar = () => {
{t("video", { defaultValue: "Video" })} {t("video", { defaultValue: "Video" })}
</Link> </Link>
<Link <Link
href={prefixPath + "document/filter"} href={prefixPath + "/document/filter"}
// onClick={() => router.push(prefixPath + "/document/filter")} // onClick={() => router.push(prefixPath + "/document/filter")}
className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]" className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]"
> >
@ -275,7 +275,7 @@ const Navbar = () => {
{t("text", { defaultValue: "Text" })} {t("text", { defaultValue: "Text" })}
</Link> </Link>
<Link <Link
href={prefixPath + "audio/filter"} href={prefixPath + "/audio/filter"}
// onClick={() => router.push(prefixPath + "/audio/filter")} // onClick={() => router.push(prefixPath + "/audio/filter")}
className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]" className="flex items-center text-slate-600 dark:text-white hover:text-[#bb3523]"
> >
@ -308,7 +308,7 @@ const Navbar = () => {
</Link> </Link>
{/* Link Index */} {/* Link Index */}
<Link href={prefixPath + "indeks"} passHref legacyBehavior> <Link href={prefixPath + "/indeks"} passHref legacyBehavior>
<a className="group inline-flex h-10 items-center justify-center text-center rounded-md bg-[#f7f7f7] dark:bg-black xl:px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:outline-none"> <a className="group inline-flex h-10 items-center justify-center text-center rounded-md bg-[#f7f7f7] dark:bg-black xl:px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:outline-none">
<span> <span>
<svg <svg