|
|
@ -13,16 +13,28 @@ const sidebarLinks = [ |
|
|
|
href: '/account', |
|
|
|
href: '/account', |
|
|
|
title: 'Activity', |
|
|
|
title: 'Activity', |
|
|
|
id: 'activity', |
|
|
|
id: 'activity', |
|
|
|
|
|
|
|
icon: { |
|
|
|
|
|
|
|
glyph: 'analytics', |
|
|
|
|
|
|
|
classes: 'h-3 w-4', |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
href: '/account/update-profile', |
|
|
|
href: '/account/update-profile', |
|
|
|
title: 'Profile', |
|
|
|
title: 'Profile', |
|
|
|
id: 'profile', |
|
|
|
id: 'profile', |
|
|
|
|
|
|
|
icon: { |
|
|
|
|
|
|
|
glyph: 'user', |
|
|
|
|
|
|
|
classes: 'h-4 w-4', |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
href: '/account/update-password', |
|
|
|
href: '/account/update-password', |
|
|
|
title: 'Security', |
|
|
|
title: 'Security', |
|
|
|
id: 'change-password', |
|
|
|
id: 'change-password', |
|
|
|
|
|
|
|
icon: { |
|
|
|
|
|
|
|
glyph: 'security', |
|
|
|
|
|
|
|
classes: 'h-4 w-4' |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
|
--- |
|
|
|
--- |
|
|
@ -58,7 +70,7 @@ const sidebarLinks = [ |
|
|
|
|
|
|
|
|
|
|
|
<div class='container flex min-h-screen items-stretch'> |
|
|
|
<div class='container flex min-h-screen items-stretch'> |
|
|
|
<!-- Start Desktop Sidebar --> |
|
|
|
<!-- Start Desktop Sidebar --> |
|
|
|
<aside class='hidden shrink-0 w-48 border-r border-slate-200 py-10 pr-5 md:block'> |
|
|
|
<aside class='hidden shrink-0 w-44 border-r border-slate-200 py-10 md:block'> |
|
|
|
<nav> |
|
|
|
<nav> |
|
|
|
<ul class='space-y-1'> |
|
|
|
<ul class='space-y-1'> |
|
|
|
{ |
|
|
|
{ |
|
|
@ -66,10 +78,11 @@ const sidebarLinks = [ |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<a |
|
|
|
<a |
|
|
|
href={sidebarLink.href} |
|
|
|
href={sidebarLink.href} |
|
|
|
class={`font-regular flex w-full items-center gap-2 rounded px-2 py-1.5 text-slate-900 hover:underline ${ |
|
|
|
class={`font-regular flex w-full items-center gap-2 px-2 py-1.5 text-sm border-r-2 border-r-transparent ${ |
|
|
|
activePageId === sidebarLink.id ? 'bg-slate-100 hover:no-underline' : '' |
|
|
|
activePageId === sidebarLink.id ? 'text-black border-r-black bg-gray-100' : 'text-gray-500 hover:border-r-gray-300' |
|
|
|
}`} |
|
|
|
}`} |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<AstroIcon icon={sidebarLink.icon.glyph} class={`${sidebarLink.icon.classes} mr-0`} /> |
|
|
|
{sidebarLink.title} |
|
|
|
{sidebarLink.title} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|