From 25f9e25b3ec9c4eaf62eea4181545edc148b2f3f Mon Sep 17 00:00:00 2001 From: eggy Date: Mon, 23 Jan 2023 19:57:22 -0500 Subject: [PATCH] feat: add portfolio button and dominant button controls --- components/HamburgerMenu.vue | 26 +++++++++++++++++++++++++- components/Navbar.vue | 33 ++++++++++++++++++++++++++++++--- data/navItems.ts | 1 + 3 files changed, 56 insertions(+), 4 deletions(-) diff --git a/components/HamburgerMenu.vue b/components/HamburgerMenu.vue index b46d23c..52401f3 100644 --- a/components/HamburgerMenu.vue +++ b/components/HamburgerMenu.vue @@ -26,7 +26,12 @@ const getSvgIcon = async (name: string) => {
-
  • +
  • @@ -36,6 +41,11 @@ const getSvgIcon = async (name: string) => { preload="auto" /> {{ item.title }} +
  • @@ -133,6 +143,20 @@ html.dark .drawer { width: 100%; } +.drawer li.dominant a { + background: royalblue; + color: white; + font-weight: bold; +} + +.drawer li.dominant img { + filter: invert(1); +} + +.drawer li.dominant a:hover { + background: skyblue; +} + .drawer li a { /* overwrite tailwind */ text-decoration: none; diff --git a/components/Navbar.vue b/components/Navbar.vue index 2e2c63e..78e3b80 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -9,11 +9,16 @@ const props = defineProps<{ activeItem?: string }>();