From 051bc761c23a27385b8ade60dc2aa20030cb5aa9 Mon Sep 17 00:00:00 2001 From: SatyaRajAwasth1 Date: Mon, 14 Oct 2024 18:56:05 +0545 Subject: [PATCH] refactor: Updates design of sidebar and profiles page --- src/components/MainContent.astro | 2 +- src/components/shared/LeftSidebar.astro | 97 +++++++++++++++++++++---- src/pages/profiles/index.astro | 34 +++++---- 3 files changed, 103 insertions(+), 30 deletions(-) diff --git a/src/components/MainContent.astro b/src/components/MainContent.astro index fad97e7..49e6ee6 100644 --- a/src/components/MainContent.astro +++ b/src/components/MainContent.astro @@ -1,3 +1,3 @@ -
+
\ No newline at end of file diff --git a/src/components/shared/LeftSidebar.astro b/src/components/shared/LeftSidebar.astro index 835c8b4..37cd49a 100644 --- a/src/components/shared/LeftSidebar.astro +++ b/src/components/shared/LeftSidebar.astro @@ -4,20 +4,91 @@ const currentYear = (new Date()).getFullYear(); const yearsRange = Array.from({ length: currentYear - startYear + 1 }, (_, i) => startYear + i); --- - + + + + + + + + + diff --git a/src/pages/profiles/index.astro b/src/pages/profiles/index.astro index db68144..7e404e8 100644 --- a/src/pages/profiles/index.astro +++ b/src/pages/profiles/index.astro @@ -33,22 +33,24 @@ const sortedYears = Array.from(batchMap.keys()).sort(); --- - {sortedYears.map((year) => { - let showAll = false; - - return ( -
-

- {year} Batch -

-
- {(showAll ? batchMap.get(year) : batchMap.get(year).slice(0, 3)) - .map((profile) => ( - - ))} +
+ {sortedYears.map((year) => { + let showAll = false; + + return ( +
+

+ {year} Batch +

+
+ {(showAll ? batchMap.get(year) : batchMap.get(year).slice(0, 3)) + .map((profile) => ( + + ))} +
-
- ); - })} + ); + })} +