feat: enhance Carousel component with dynamic data and new TNews type

This commit is contained in:
Ardeman
2025-02-04 00:51:59 +08:00
parent 7b498173fe
commit a0f37af772
8 changed files with 113 additions and 4 deletions
+6 -2
View File
@@ -1,17 +1,21 @@
import { Card } from '~/components/ui/card'
import { Carousel } from '~/components/ui/carousel'
import { BERITA, KAJIAN, SPOTLIGHT } from './data'
import { Newsletter } from './newsletter'
export const NewsPage = () => {
return (
<div className="relative">
<Card>
<Carousel />
<Carousel {...SPOTLIGHT} />
</Card>
<Newsletter />
<Card>
<Carousel />
<Carousel {...BERITA} />
</Card>
<Card>
<Carousel {...KAJIAN} />
</Card>
</div>
)