update footer links
Some checks failed
Build and publish the docker image / build (push) Failing after 40s
Some checks failed
Build and publish the docker image / build (push) Failing after 40s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
d1e2d1fa1f
commit
2b13a79013
@ -1,27 +1,22 @@
|
||||
import Link from 'next/link';
|
||||
import { useRouter } from 'next/router';
|
||||
import styles from 'src/styles/modules/layout/footer.module.scss';
|
||||
|
||||
const links = [
|
||||
{ path: '/about', text: 'About' },
|
||||
{ path: '/find', text: 'Find' },
|
||||
{ path: '/privacy', text: 'Privacy' },
|
||||
{ path: '/contact', text: 'Contact' },
|
||||
{ url: 'https://github.com/zyachel/libremdb', text: 'Source' },
|
||||
{ url: 'https://git.ngn.tf/ngn/libremdb', text: 'Modified Source' },
|
||||
] as const;
|
||||
|
||||
const Footer = () => {
|
||||
const { pathname } = useRouter();
|
||||
|
||||
return (
|
||||
<footer id='footer' className={styles.footer}>
|
||||
<nav aria-label='primary navigation' className={styles.nav}>
|
||||
<ul className={styles.list}>
|
||||
{links.map(link => (
|
||||
<li className={styles.nav__item} key={link.path}>
|
||||
<Link href={link.path}>
|
||||
<li className={styles.nav__item} key={link.url}>
|
||||
<Link href={link.url}>
|
||||
<a
|
||||
className={styles.nav__link}
|
||||
aria-current={pathname === link.path ? 'page' : undefined}
|
||||
aria-current={undefined}
|
||||
>
|
||||
{link.text}
|
||||
</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user