aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-13 22:04:03 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-13 22:04:26 +0100
commitaec575c3b5797069e4964cfafa26e3de3b92f99e (patch)
treeca58b4e85b4f0d3eb78b57cfa58aa9bad9fd4c2f /src/config
parent5bc55ac0a801cbe82c41a10f7e680612be4deaf8 (diff)
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.
Diffstat (limited to 'src/config')
-rw-r--r--src/config/nav.ts9
1 files changed, 9 insertions, 0 deletions
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' },
+];