Refactor Dashboard components and styles for improved functionality and UI consistency
This commit is contained in:
@@ -5,19 +5,28 @@
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
padding: 27px 17px;
|
||||
|
||||
.side-pannel-container {
|
||||
padding: 32px;
|
||||
min-width: 240px;
|
||||
height: 100vh;
|
||||
min-width: 280px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
border-right: 1px solid var(--border-color);
|
||||
// border-right: 1px solid var(--border-color);
|
||||
background: var(--background-color);
|
||||
backdrop-filter: blur(20px);
|
||||
border-radius: 30px;
|
||||
box-shadow: var(--box-shadow-medium);
|
||||
|
||||
.side-pannel-header {
|
||||
@include flex-space-between;
|
||||
|
||||
.user-container {
|
||||
@include flex-center;
|
||||
gap: 6px;
|
||||
|
||||
.user-profile {
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
@@ -28,10 +37,12 @@
|
||||
color: var(--primary-color);
|
||||
border-radius: #{$border-radius-circle};
|
||||
}
|
||||
|
||||
.user-name {
|
||||
color: var(--accent-color);
|
||||
}
|
||||
}
|
||||
|
||||
.notifications-container {
|
||||
@include flex-center;
|
||||
height: 24px;
|
||||
@@ -39,82 +50,117 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.new-project-button {
|
||||
padding: 12px 16px;
|
||||
cursor: not-allowed;
|
||||
color: var(--accent-color);
|
||||
color: var(--text-color);
|
||||
background: var(--background-color-secondary);
|
||||
border-radius: #{$border-radius-large};
|
||||
border-radius: #{$border-radius-xxx};
|
||||
}
|
||||
|
||||
.side-bar-content-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
|
||||
.side-bar-options-container {
|
||||
.option-list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
padding: 8px 10px;
|
||||
margin: 4px 0;
|
||||
border-radius: #{$border-radius-medium};
|
||||
border-radius: #{$border-radius-extra-large};
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: var(--background-color-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
color: var(--accent-color);
|
||||
color: var(--text-button-color);
|
||||
font-weight: var(--font-weight-medium);
|
||||
background: var(--highlight-accent-color);
|
||||
background: var(--background-color-button);
|
||||
|
||||
&:hover {
|
||||
background: var(--highlight-accent-color);
|
||||
background: var(--background-color-button);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-home-container {
|
||||
width: 100%;
|
||||
padding-left: 18px;
|
||||
|
||||
.dashboard-navbar-container {
|
||||
margin-top: 28px;
|
||||
padding: 8px 34px 8px 12px;
|
||||
margin-bottom: 22px;
|
||||
@include flex-center;
|
||||
|
||||
.title {
|
||||
text-transform: capitalize;
|
||||
font-size: var(--font-size-large);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.market-place-button {
|
||||
@include flex-center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
background: var(--accent-gradient-color);
|
||||
background: var(--background-color-button);
|
||||
white-space: nowrap;
|
||||
border-radius: #{$border-radius-large};
|
||||
color: var(--primary-color);
|
||||
border-radius: #{$border-radius-extra-large};
|
||||
|
||||
color: var(--text-button-color);
|
||||
}
|
||||
|
||||
.search-wrapper {
|
||||
width: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 22px 0;
|
||||
width: 100%;
|
||||
padding: 0 12px;
|
||||
.header {
|
||||
height: calc(100% - 357px);
|
||||
|
||||
|
||||
.header-wrapper {
|
||||
font-size: var(--font-size-large);
|
||||
|
||||
.header {
|
||||
color: var(--input-text-color);
|
||||
padding: 6px 8px;
|
||||
border-radius: #{$border-radius-extra-large};
|
||||
|
||||
&.active {
|
||||
|
||||
background: var(--background-color-button);
|
||||
color: var(--text-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cards-container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
padding-top: 18px;
|
||||
gap: 18px;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.dashboard-card-container {
|
||||
@@ -123,11 +169,23 @@
|
||||
min-width: 260px;
|
||||
position: relative;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: #{$border-radius-large};
|
||||
border-radius: #{$border-radius-extra-large};
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
overflow: visible;
|
||||
position: relative;
|
||||
|
||||
.dashboard-card-wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.preview-container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
@@ -135,27 +193,38 @@
|
||||
vertical-align: top;
|
||||
border: none;
|
||||
outline: none;
|
||||
border-radius: #{$border-radius-extra-large};
|
||||
}
|
||||
}
|
||||
|
||||
.project-details-container {
|
||||
@include flex-space-between;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
padding: 8px 16px;
|
||||
background: var(--primary-color);
|
||||
border-radius: #{$border-radius-large};
|
||||
padding: 13px 16px;
|
||||
background: var(--background-color);
|
||||
// backdrop-filter: blur(18px);
|
||||
|
||||
border-radius: #{$border-radius-xlarge};
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.25s linear;
|
||||
|
||||
.project-details {
|
||||
.project-name {
|
||||
margin-bottom: 2px;
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
.project-data {
|
||||
color: var(--accent-color);
|
||||
color: var(--input-text-color);
|
||||
}
|
||||
}
|
||||
|
||||
.users-list-container {
|
||||
@include flex-center;
|
||||
gap: 6px;
|
||||
position: relative; // Needed for absolute positioning of kebab-options-wrapper
|
||||
|
||||
.user-profile {
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
@@ -165,8 +234,65 @@
|
||||
color: var(--primary-color);
|
||||
border-radius: #{$border-radius-circle};
|
||||
}
|
||||
|
||||
.kebab {
|
||||
padding: 10px;
|
||||
@include flex-center;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.kebab-options-wrapper {
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
right: 40px;
|
||||
background: var(--background-color);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transform: translate(100%, 100%);
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
|
||||
.option {
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s ease;
|
||||
text-transform: capitalize;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--background-color-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&:hover {
|
||||
|
||||
|
||||
overflow: visible;
|
||||
|
||||
.kebab-options-wrapper {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.project-details-container {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.market-place-banner-container {
|
||||
@@ -174,13 +300,14 @@
|
||||
height: 230px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
padding: 0 24px;
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: #{$border-radius-xxx};
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
position: absolute;
|
||||
left: 52px;
|
||||
@@ -191,6 +318,7 @@
|
||||
color: #ffffff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.context {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
@@ -201,11 +329,13 @@
|
||||
color: #ffffff;
|
||||
font-family: #{$font-roboto};
|
||||
}
|
||||
|
||||
.arrow-context {
|
||||
position: absolute;
|
||||
bottom: 27px;
|
||||
right: 300px;
|
||||
}
|
||||
|
||||
.explore-button {
|
||||
position: absolute;
|
||||
top: 95px;
|
||||
@@ -218,4 +348,4 @@
|
||||
font-family: #{$font-roboto};
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user