feat: implement banner component with carousel functionality and dynamic content

This commit is contained in:
fredy.siswanto
2025-03-03 13:42:01 +07:00
parent 1b4ff4c3e7
commit b42aa6c960
2 changed files with 51 additions and 11 deletions
+23
View File
@@ -1,4 +1,9 @@
import type { TNews } from '~/types/news'
type TBanner = {
urlImage: string
alt: string
link: string
}
export const DUMMY_DESCRIPTION = 'Berita Terhangat hari ini'
@@ -147,3 +152,21 @@ export const KAJIAN: TNews = {
},
],
}
export const BANNER: TBanner[] = [
{
urlImage: '/images/banner.png',
alt: 'banner',
link: '/category/spotlight',
},
{
urlImage: 'https://placehold.co/1000x65.png',
alt: 'banner',
link: '/#',
},
{
urlImage: '/images/banner.png',
alt: 'banner',
link: '/#',
},
]