Skip to content

Commit

Permalink
Simplify footer link grid
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Nov 20, 2024
1 parent 2a66df3 commit 7fdd824
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/components/nav/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,21 @@ function FooterLogo() {

function FooterNav() {
return (
<nav className="flex text-md font-medium">
<ul className={`${styles.linkGrid}`}>
<nav className="text-md font-medium">
<ul style={{ gridTemplateColumns: 'auto auto auto' }} className="grid gap-x-7 gap-y-1.5">
{footerLinks.map((item) => (
<li key={item.title}>
<Link
className={styles.linkItem}
className="flex items-center capitalize underline-offset-2 hover:underline"
target={item.external ? '_blank' : '_self'}
href={item.url}
>
{item?.icon && <div className="mr-4 w-5">{item?.icon}</div>}
<div className="">{item.title}</div>
{item?.icon && <div className="mr-3 mt-1 w-4">{item?.icon}</div>}
{!item?.icon && <div>{item.title}</div>}
</Link>
</li>
))}
</ul>
</nav>
);
}

const styles = {
linkGrid: 'grid grid-cols-3 gap-x-6 gap-y-1.5',
linkItem: 'flex items-center capitalize text-decoration-none hover:underline underline-offset-2',
};

0 comments on commit 7fdd824

Please sign in to comment.