feat: adj links kategory

This commit is contained in:
fredy.siswanto 2025-02-20 23:22:04 +07:00
parent 2e09e8a962
commit eafe70a021
4 changed files with 13 additions and 8 deletions

View File

@ -8,31 +8,31 @@ import { XIcon } from '~/components/icons/x'
export const MENU = [ export const MENU = [
{ {
title: 'Spotlight', title: 'Spotlight',
url: '/news/topic?category=spotlight', url: '/news/category/spotlight',
}, },
{ {
title: 'Berita', title: 'Berita',
url: '/news/topic?category=berita', url: '/news/category/berita',
}, },
{ {
title: 'Kasus', title: 'Kasus',
url: '/news/topic?category=kasus', url: '/news/category/kasus',
}, },
{ {
title: 'Kajian', title: 'Kajian',
url: '/news/topic?category=kajian', url: '/news/category/kajian',
}, },
{ {
title: 'Lifestyle', title: 'Lifestyle',
url: '/news/topic?category=lifestyle', url: '/news/category/lifestyle',
}, },
{ {
title: 'Event', title: 'Event',
url: '/news/topic?category=event', url: '/news/category/event',
}, },
{ {
title: 'Travel', title: 'Travel',
url: '/news/topic?category=travel', url: '/news/category/travel',
}, },
] ]

View File

@ -42,6 +42,7 @@ export const BERITA: TNews = {
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.',
featured: '/images/news-4.jpg', featured: '/images/news-4.jpg',
tags: ['Hukum Property', 'PREMIUM CONTENT'], tags: ['Hukum Property', 'PREMIUM CONTENT'],
isPremium: true,
slug: 'helping-a-local-business-reinvent-itself', slug: 'helping-a-local-business-reinvent-itself',
}, },
], ],

View File

@ -2,7 +2,10 @@ export type TNews = {
title: string title: string
description: string description: string
type: 'hero' | 'grid' type: 'hero' | 'grid'
items: Pick<TNewsDetail, 'title' | 'content' | 'featured' | 'slug' | 'tags'>[] items: Pick<
TNewsDetail,
'title' | 'content' | 'featured' | 'slug' | 'tags' | 'isPremium'
>[]
} }
export type TNewsDetail = { export type TNewsDetail = {
@ -13,5 +16,6 @@ export type TNewsDetail = {
date: Date date: Date
slug: string slug: string
tags?: Array<string> tags?: Array<string>
isPremium?: boolean
categories?: Array<string> categories?: Array<string>
} }