feat: enhance Carousel component with dynamic data and new TNews type
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user