TOPVERSE_Official/config/use-nav.ts

87 lines
2.2 KiB
TypeScript
Raw Permalink 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-08-02 15:09:56 +08:00
href: '/solutions/web3',
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-08-02 15:09:56 +08:00
href: '/solutions/digital-twin',
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-08-02 15:09:56 +08:00
href: '/solutions/mixed-reality',
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-06-05 15:36:30 +08:00
{
title: 'nav.solutions.child.land.service[3]',
subtitle: 'nav.solutions.child.land.description[3]',
2023-08-02 15:09:56 +08:00
href: '/solutions/aigc',
2023-06-05 15:36:30 +08:00
icon: 'i-iconoir-brain-electricity',
iconColor: 'amber',
},
2023-04-27 13:58:47 +08:00
],
},
{
2023-05-06 05:39:23 +08:00
title: 'nav.news',
2023-06-01 18:10:04 +08:00
href: '/release',
},
{
title: 'nav.about',
href: '/about',
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-06-01 18:10:04 +08:00
href: '/community/aaao',
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-06-01 18:10:04 +08:00
href: '/community/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-25 03:45:47 +08:00
{
title: 'nav.event.child.act[2]',
subtitle: 'nav.event.child.description[2]',
2023-06-01 18:10:04 +08:00
href: '/community/vamx',
2023-05-25 03:45:47 +08:00
icon: 'i-academicons-archive',
iconColor: 'red',
},
2023-05-06 05:39:23 +08:00
],
2023-05-06 01:50:40 +08:00
},
2023-04-27 13:58:47 +08:00
]
}