little update landing

This commit is contained in:
Rama Priyanto 2025-02-07 14:05:52 +07:00
parent e5771ae8f4
commit 5bae5603b7
2 changed files with 7 additions and 3 deletions

View File

@ -68,7 +68,9 @@ export default function ENewsPolri() {
{article?.map((newsItem: any) => (
<SwiperSlide key={newsItem.id}>
<Card isFooterBlurred radius="lg" className="border-none">
<img
<Image
width={720}
height={480}
alt="thumbnail"
src={
newsItem?.thumbnailUrl

View File

@ -69,11 +69,13 @@ export default function HeaderNews() {
{article?.map((newsItem: any) => (
<SwiperSlide key={newsItem.id}>
<Card isFooterBlurred radius="lg" className="border-none">
<img
<Image
width={1920}
height={1080}
alt="headernews"
src={
newsItem?.thumbnailUrl == ""
? "no-image.jpg"
? "/no-image.jpg"
: newsItem?.thumbnailUrl
}
className="h-[25vh] object-cover"