Skip to content

Commit cd11973

Browse files
committed
change mobile navbar, add animation
1 parent f76068b commit cd11973

2 files changed

Lines changed: 21 additions & 6 deletions

File tree

src/components/common/BrandNav.vue

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,22 @@ withDefaults(defineProps<{
198198
height: 10px;
199199
border-radius: 50%;
200200
background: var(--color-error-400);
201-
box-shadow: 0 0 12px 0 var(--color-error-400),
202-
0 0 4px 0 hsl(from var(--color-error-400) h s l / 0.5);
201+
box-shadow:
202+
0 0 12px 0 var(--color-error-400),
203+
0 0 4px 0 hsl(from var(--color-error-400) h s l / 0.5);
204+
205+
animation: pulse-opacity 1.5s ease-in-out infinite;
206+
}
207+
208+
@keyframes pulse-opacity {
209+
0%,
210+
100% {
211+
opacity: 1;
212+
}
213+
214+
50% {
215+
opacity: 0.3;
216+
}
203217
}
204218
205219
.brand-nav-logo {
@@ -223,12 +237,13 @@ withDefaults(defineProps<{
223237
position: absolute;
224238
top: 100%;
225239
left: 0;
226-
margin-top: 14px;
240+
margin-top: 13px;
227241
width: max-content;
228242
opacity: 0;
229243
visibility: hidden;
230244
border-radius: 1rem;
231245
padding: 1.25rem;
246+
z-index: 100;
232247
background: var(--color-surface-primary);
233248
-webkit-backdrop-filter: blur(24px);
234249
backdrop-filter: blur(24px);

src/components/header/mobile-menu.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const handleCloseMenu = () => {
7575

7676
<template>
7777
<div>
78-
<div :class="`fixed z-50 top-0 w-full bg-surface-primary-transparent backdrop-blur-3xl ${isMenuOpen ? 'rounded-b-3xl' : 'rounded-none'}`">
78+
<div :class="`fixed z-50 top-0 w-full bg-surface-primary-transparent backdrop-blur-3xl border-b border-surface-quaternary`">
7979
<div :class="`h-full px-5 ${isMenuOpen ? 'pb-5' : 'pb-0'} flex flex-col gap-2 transition-all`">
8080
<div class="flex justify-between items-center py-1.5">
8181
<a :href="homeHref" class="px-1.5 hover:opacity-80 transition-opacity">
@@ -85,12 +85,12 @@ const handleCloseMenu = () => {
8585
<span></span>
8686
</button>
8787
</div>
88-
<nav v-if="isMenuOpen" class="h-full text-sm">
88+
<nav v-if="isMenuOpen" class="h-full text-sm overflow-y-auto">
8989
<div v-if="isServicesOpen">
9090
<h2 class="text-center font-bold text-body-primary py-2.5">
9191
{{ servicesItem?.submenuTitle }}
9292
</h2>
93-
<ServicesList :items="servicesItem?.submenu ?? []" />
93+
<slot name="services" />
9494
<button class="pt-4" @click="isServicesOpen = false">
9595
<component class="w-11 h-11 text-action" :is="BackIcon" />
9696
</button>

0 commit comments

Comments
 (0)