From aec575c3b5797069e4964cfafa26e3de3b92f99e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 13 Dec 2021 22:04:03 +0100 Subject: chore: add main-nav component I choose to implement main-nav paths manually instead of fetching them from GraphQL to ensure functional navigation without JS. --- src/config/nav.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/config/nav.ts (limited to 'src/config/nav.ts') diff --git a/src/config/nav.ts b/src/config/nav.ts new file mode 100644 index 0000000..de60369 --- /dev/null +++ b/src/config/nav.ts @@ -0,0 +1,9 @@ +import { t } from '@lingui/macro'; +import { NavItem } from '@ts/types/nav'; + +export const mainNav: NavItem[] = [ + { id: 'home', name: t`Home`, slug: '/' }, + { id: 'blog', name: t`Blog`, slug: '/blog' }, + { id: 'cv', name: t`Resume`, slug: '/cv' }, + { id: 'contact', name: t`Contact`, slug: '/contact' }, +]; -- cgit v1.2.3