feat: refactor news components and add news detail layout

This commit is contained in:
Ardeman
2025-02-20 07:01:36 +08:00
parent f17627bdf2
commit e73949295d
12 changed files with 179 additions and 209 deletions
+11 -6
View File
@@ -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>
}