update footer links
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:
ngn 2025-01-19 23:18:56 +03:00
parent d1e2d1fa1f
commit 2b13a79013
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -1,27 +1,22 @@
import Link from 'next/link'; import Link from 'next/link';
import { useRouter } from 'next/router';
import styles from 'src/styles/modules/layout/footer.module.scss'; import styles from 'src/styles/modules/layout/footer.module.scss';
const links = [ const links = [
{ path: '/about', text: 'About' }, { url: 'https://github.com/zyachel/libremdb', text: 'Source' },
{ path: '/find', text: 'Find' }, { url: 'https://git.ngn.tf/ngn/libremdb', text: 'Modified Source' },
{ path: '/privacy', text: 'Privacy' },
{ path: '/contact', text: 'Contact' },
] as const; ] as const;
const Footer = () => { const Footer = () => {
const { pathname } = useRouter();
return ( return (
<footer id='footer' className={styles.footer}> <footer id='footer' className={styles.footer}>
<nav aria-label='primary navigation' className={styles.nav}> <nav aria-label='primary navigation' className={styles.nav}>
<ul className={styles.list}> <ul className={styles.list}>
{links.map(link => ( {links.map(link => (
<li className={styles.nav__item} key={link.path}> <li className={styles.nav__item} key={link.url}>
<Link href={link.path}> <Link href={link.url}>
<a <a
className={styles.nav__link} className={styles.nav__link}
aria-current={pathname === link.path ? 'page' : undefined} aria-current={undefined}
> >
{link.text} {link.text}
</a> </a>