From 6f0adcab0f529ed614c6e521cb79086eeb226c21 Mon Sep 17 00:00:00 2001 From: Vishnu Date: Fri, 5 Sep 2025 11:18:05 +0530 Subject: [PATCH] refactor: simplify project creation button and enhance sidebar option styles --- app/src/components/Dashboard/SidePannel.tsx | 42 ++++++++++----------- app/src/styles/pages/_dashboard.scss | 24 +++++++++++- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/app/src/components/Dashboard/SidePannel.tsx b/app/src/components/Dashboard/SidePannel.tsx index 06ce8ac..b612ba6 100644 --- a/app/src/components/Dashboard/SidePannel.tsx +++ b/app/src/components/Dashboard/SidePannel.tsx @@ -92,16 +92,12 @@ const SidePannel: React.FC = ({ setActiveTab, activeTab }) => { -
+
+ New project
-
= ({ setActiveTab, activeTab }) => { > Home -
-
+
-
+
-
+
-
+
+
-
+
-
+
-
+ +
+
diff --git a/app/src/styles/pages/_dashboard.scss b/app/src/styles/pages/_dashboard.scss index a87c966..eb98525 100644 --- a/app/src/styles/pages/_dashboard.scss +++ b/app/src/styles/pages/_dashboard.scss @@ -92,20 +92,42 @@ .side-bar-options-container { .option-list { display: flex; + position: relative; align-items: center; gap: 8px; padding: 8px 10px; margin: 4px 0; border-radius: #{$border-radius-extra-large}; width: 100%; + overflow: hidden; cursor: pointer; + transition: color 0.3s; + + &::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + transform: translate(-50%, -50%); + height: 0px; + width: 0px; + border-radius: 50%; + background: #7b4cd323; + z-index: -1; + transition: all 0.5s ease-in-out; + } &:disabled { cursor: help; } &:hover { - background: var(--background-color-secondary); + &::after { + height: 260px; + width: 260px; + left: 50%; + scale: 1; + } } }