summaryrefslogtreecommitdiffstats
path: root/src/components/FooterNav/FooterNav.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-13 22:52:24 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-13 22:52:24 +0100
commite8a61bd7e49bf2a24fa1905a45e83380056a7368 (patch)
tree52f4552b5cb90717e8caf3e674f0cfaf245ec26f /src/components/FooterNav/FooterNav.tsx
parentaec575c3b5797069e4964cfafa26e3de3b92f99e (diff)
chore: add footer nav
Diffstat (limited to 'src/components/FooterNav/FooterNav.tsx')
-rw-r--r--src/components/FooterNav/FooterNav.tsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/FooterNav/FooterNav.tsx b/src/components/FooterNav/FooterNav.tsx
new file mode 100644
index 0000000..7266e7e
--- /dev/null
+++ b/src/components/FooterNav/FooterNav.tsx
@@ -0,0 +1,25 @@
+import Link from 'next/link';
+import styles from './FooterNav.module.scss';
+import { footerNav } from '@config/nav';
+
+const FooterNav = () => {
+ const navItems = footerNav.map((item) => {
+ return (
+ <li key={item.id} className={styles.item}>
+ <Link href={item.slug}>
+ <a className={styles.link}>{item.name}</a>
+ </Link>
+ </li>
+ );
+ });
+
+ return (
+ <div className={styles.wrapper}>
+ <nav className={styles.nav}>
+ <ul className={styles.list}>{navItems}</ul>
+ </nav>
+ </div>
+ );
+};
+
+export default FooterNav;