58 lines
2.1 KiB
TypeScript
58 lines
2.1 KiB
TypeScript
import { Button } from '@nextui-org/button';
|
|
import { Image } from '@nextui-org/react';
|
|
import { ChevronLeftWhite, ChevronRightWhite } from '../icons';
|
|
|
|
export default function RegionalNews() {
|
|
const list = [
|
|
{
|
|
img: "/temp/poldametro.svg",
|
|
title: "Polda Metro Jaya"
|
|
},
|
|
{
|
|
img: "/temp/polda-sumut.svg",
|
|
title: "Polda Sumatra Utara"
|
|
},
|
|
{
|
|
img: "/temp/polda-banten.svg",
|
|
title: "Polda Banten"
|
|
},
|
|
{
|
|
img: "/temp/polda-jateng.svg",
|
|
title: "Polda Jawa Tengah"
|
|
},
|
|
{
|
|
img: "/temp/polda-jatim.svg",
|
|
title: "Polda Jawa Timur"
|
|
},
|
|
];
|
|
return (
|
|
<div className='text-center border-3 border-[#DD8306] rounded-none md:rounded-lg h-auto md:h-[338px] space-y-7 m-auto md:m-10 flex flex-col justify-center'>
|
|
<div className='font-bold text-2xl underline underline-offset-4 decoration-red-600 text-[#DD8306]'>Berita Wilayah</div>
|
|
<div className='flex items-center justify-around'>
|
|
<div><ChevronLeftWhite color='orange' /></div>
|
|
<div className="gap-2 md:gap-4 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5">
|
|
{list.map((item, index) => (
|
|
<div className='w-[157px] h-[141px] flex flex-col items-center justify-evenly'>
|
|
<Image
|
|
radius="lg"
|
|
className="h-[59px]"
|
|
src={item.img}
|
|
/>
|
|
<p className='text-xs font-bold text-[#DD8306]'>{item.title}</p>
|
|
</div>
|
|
))}
|
|
</div>
|
|
<div><ChevronRightWhite color='orange' /></div>
|
|
</div>
|
|
<div>
|
|
<Button
|
|
className='bg-[#DD8306] text-white font-bold'
|
|
size='sm'
|
|
>
|
|
Lihat Lebih Banyak
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|