fix: content category

This commit is contained in:
Sabda Yagra 2025-03-28 14:50:51 +07:00
parent 70ceac01b7
commit d4d5945978
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ const ContentCategory = (props: { group?: string }) => {
const toBase64 = (str: string) => (typeof window === "undefined" ? Buffer.from(str).toString("base64") : window.btoa(str)); const toBase64 = (str: string) => (typeof window === "undefined" ? Buffer.from(str).toString("base64") : window.btoa(str));
return ( return (
<div className="mx-auto px-4 lg:px-24 py-10 max-w-screen-2xl"> <div className="px-4 lg:px-24 py-10">
<Reveal> <Reveal>
<h2 className="bg-[#c03724] rounded-md p-3 w-fit text-white"> <h2 className="bg-[#c03724] rounded-md p-3 w-fit text-white">
{/* {pathname?.split("/")[1] == "in" ? ( {/* {pathname?.split("/")[1] == "in" ? (
@ -93,7 +93,7 @@ const ContentCategory = (props: { group?: string }) => {
width={2560} width={2560}
height={1440} height={1440}
src={category?.thumbnailLink} src={category?.thumbnailLink}
className="w-full lg:w-[325px] lg:h-[250px] h-40 object-cover group-hover:scale-110 transition-transform duration-300" className="w-full lg:h-[250px] h-40 object-cover group-hover:scale-110 transition-transform duration-300"
/> />
{/* Overlay gelap */} {/* Overlay gelap */}
@ -129,7 +129,7 @@ const ContentCategory = (props: { group?: string }) => {
width={2560} width={2560}
height={1440} height={1440}
src={category?.thumbnailLink} src={category?.thumbnailLink}
className="w-full lg:w-[325px] lg:h-[250px] h-40 object-cover group-hover:scale-110 transition-transform duration-300" className="w-full lg:h-[250px] h-40 object-cover group-hover:scale-110 transition-transform duration-300"
/> />
{/* Overlay Gelap */} {/* Overlay Gelap */}