Skip to content

Commit

Permalink
added icons back to mobile sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jhilker98 committed Mar 12, 2024
1 parent 876b2a0 commit a4b86a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/FixedSidebar.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { SITE_META } from "@consts";
import type { SocialLink } from "@types";
//import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import { Image } from "astro:assets";
import sidebar from "@assets/img/sidebar.svg";
import SearchWidget from "@components/SearchWidget.astro";
Expand All @@ -26,6 +26,12 @@ import SearchWidget from "@components/SearchWidget.astro";
href={link.href}
class="text-branding-white hover:text-blue-400 transition-colors duration-75 group"
title={link.name}>
<Icon
name={link.icon}
class="h-5 w-5 fill-branding-white hover:fill-blue-400"
aria-hidden="true"
focusable="false"
/>
<span class="sr-only">{link.name}</span>
</a>
))}
Expand Down
7 changes: 7 additions & 0 deletions src/components/MobileSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { type SocialLink } from "@types";
import "@fontsource/ibm-plex-sans/600.css";
import sidebar from "@assets/img/sidebar.svg";
import SearchWidget from "@components/SearchWidget.astro";
import { Icon } from "astro-icon/components";
---

<aside
Expand Down Expand Up @@ -36,6 +37,12 @@ import SearchWidget from "@components/SearchWidget.astro";
class="text-branding-white hover:text-blue-400 transition-colors duration-75 group"
aria-label={link.name}
title={link.name}>
<Icon
name={link.icon}
class="h-5 w-5 fill-branding-white hover:fill-blue-400"
aria-hidden="true"
focusable="false"
/>
<span class="sr-only">{link.name}</span>
</a>
))}
Expand Down

0 comments on commit a4b86a7

Please sign in to comment.