feat: refactor news components and add news detail layout
This commit is contained in:
+11
-6
@@ -2,10 +2,15 @@ export type TNews = {
|
||||
title: string
|
||||
description: string
|
||||
type: 'hero' | 'grid'
|
||||
items: {
|
||||
title: string
|
||||
content: string
|
||||
image: string
|
||||
tag?: Array<string>
|
||||
}[]
|
||||
items: Pick<TNewsDetail, 'title' | 'content' | 'featured' | 'slug' | 'tag'>[]
|
||||
}
|
||||
|
||||
export type TNewsDetail = {
|
||||
title: string
|
||||
content: string
|
||||
featured: string
|
||||
author: string
|
||||
date: Date
|
||||
slug: string
|
||||
tag?: Array<string>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user