TOPVERSE_Official/config/use-nav.ts

69 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-04-27 13:58:47 +08:00
import type { colors } from 'unocss/preset-mini'
interface NavMenu {
title: string
icon?: string
href?: string
subtitle?: string
iconColor?: keyof typeof colors
child?: NavMenu[]
}
export function useNav(): NavMenu[] {
return [
{
title: 'nav.home',
2023-05-07 16:38:23 +08:00
href: '/',
2023-04-27 13:58:47 +08:00
},
{
title: 'nav.solutions.t',
child: [
{
2023-05-06 05:39:23 +08:00
title: 'nav.solutions.child.land.service[0]',
subtitle: 'nav.solutions.child.land.description[0]',
2023-05-07 16:38:23 +08:00
href: '/land',
2023-05-16 20:07:06 +08:00
icon: 'i-tabler-affiliate',
2023-04-27 13:58:47 +08:00
iconColor: 'red',
},
{
2023-05-06 05:39:23 +08:00
title: 'nav.solutions.child.land.service[1]',
subtitle: 'nav.solutions.child.land.description[1]',
2023-05-07 16:38:23 +08:00
href: '/land',
2023-05-16 20:07:06 +08:00
icon: 'i-tabler-a-b',
2023-05-06 05:39:23 +08:00
iconColor: 'amber',
},
{
title: 'nav.solutions.child.land.service[2]',
subtitle: 'nav.solutions.child.land.description[2]',
2023-05-07 16:38:23 +08:00
href: '/land',
2023-05-16 20:07:06 +08:00
icon: 'i-tabler-3d-cube-sphere',
2023-04-27 13:58:47 +08:00
iconColor: 'amber',
},
],
},
{
2023-05-06 05:39:23 +08:00
title: 'nav.news',
2023-05-07 16:38:23 +08:00
href: '/news',
2023-04-27 13:58:47 +08:00
},
2023-05-06 01:50:40 +08:00
{
2023-05-06 05:39:23 +08:00
title: 'nav.event.t',
child: [
{
title: 'nav.event.child.act[0]',
subtitle: 'nav.event.child.description[0]',
2023-05-07 16:38:23 +08:00
href: '/land',
2023-05-16 20:07:06 +08:00
icon: 'i-tabler-apple',
2023-05-06 05:39:23 +08:00
iconColor: 'red',
},
{
title: 'nav.event.child.act[1]',
subtitle: 'nav.event.child.description[1]',
2023-05-07 16:38:23 +08:00
href: '/land',
2023-05-16 20:07:06 +08:00
icon: 'i-tabler-api-app',
2023-05-06 05:39:23 +08:00
iconColor: 'red',
},
],
2023-05-06 01:50:40 +08:00
},
2023-04-27 13:58:47 +08:00
]
}