From f7625a8250ffa32bec76eef884191521603a934e Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 24 May 2023 19:25:35 +0100 Subject: [PATCH] Add basic UI for activity dashboard --- src/components/AccountSidebar.astro | 86 +++++++++++-------- src/components/Authenticator/authenticator.ts | 1 + .../Navigation/AccountDropdown.astro | 4 +- src/components/Navigation/Navigation.astro | 4 +- src/components/Navigation/navigation.ts | 3 +- src/pages/account/index.astro | 41 +++++++++ 6 files changed, 98 insertions(+), 41 deletions(-) create mode 100644 src/pages/account/index.astro diff --git a/src/components/AccountSidebar.astro b/src/components/AccountSidebar.astro index 192fbd68c..f4ebeb0a3 100644 --- a/src/components/AccountSidebar.astro +++ b/src/components/AccountSidebar.astro @@ -1,5 +1,5 @@ --- -import Icon from './AstroIcon.astro'; +import AstroIcon from './AstroIcon.astro'; const { activePageId, activePageTitle } = Astro.props; @@ -7,58 +7,74 @@ export interface Props { activePageId: string; activePageTitle: string; } + +const sidebarLinks = [ + { + href: '/account', + title: 'Activity', + id: 'activity', + }, + { + href: '/account/update-profile', + title: 'Profile', + id: 'profile', + }, + { + href: '/account/update-password', + title: 'Security', + id: 'change-password', + }, +]; --- -
+
-