1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-14 16:15:28 -04:00

remove global .icon style

This commit is contained in:
2022-01-30 09:00:59 -05:00
parent 6fbe9ae66b
commit 2a29d713bb
17 changed files with 79 additions and 56 deletions
+6 -6
View File
@@ -13,22 +13,22 @@ type Props = {
const links = [
{
icon: <HomeIcon className={classNames("icon", styles.icon)} aria-hidden={true} />,
icon: <HomeIcon className={styles.icon} aria-hidden={true} />,
text: "Home",
href: "/",
},
{
icon: <NotesIcon className={classNames("icon", styles.icon)} aria-hidden={true} />,
icon: <NotesIcon className={styles.icon} aria-hidden={true} />,
text: "Notes",
href: "/notes",
},
{
icon: <ProjectsIcon className={classNames("icon", styles.icon)} aria-hidden={true} />,
icon: <ProjectsIcon className={styles.icon} aria-hidden={true} />,
text: "Projects",
href: "/projects",
},
{
icon: <ContactIcon className={classNames("icon", styles.icon)} aria-hidden={true} />,
icon: <ContactIcon className={styles.icon} aria-hidden={true} />,
text: "Contact",
href: "/contact",
},
@@ -40,13 +40,13 @@ const Menu = ({ className }: Props) => {
return (
<ul className={classNames(styles.menu, className)}>
{links.map((link, index) => (
<li key={index} className={styles.menu_item}>
<li key={index} className={styles.link}>
{/* kinda weird/hacky way to determine if the *first part* of the current path matches this href */}
<MenuLink {...link} current={link.href === `/${router.pathname.split("/")[1]}`} />
</li>
))}
<li className={styles.menu_item}>
<li className={styles.link}>
<ThemeToggle className={styles.icon} />
</li>
</ul>