Dwinzo_dev/app/src/styles/pages/dashboard.scss

351 lines
7.0 KiB
SCSS
Raw Normal View History

@use "../abstracts/variables.scss" as *;
@use "../abstracts/mixins.scss" as *;
.dashboard-main {
height: 100vh;
width: 100vw;
display: flex;
padding: 27px 17px;
.side-pannel-container {
padding: 32px;
min-width: 280px;
height: 100%;
display: flex;
flex-direction: column;
gap: 16px;
// 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;
line-height: 32px;
text-align: center;
font-weight: var(--font-weight-medium);
background: var(--accent-color);
color: var(--primary-color);
border-radius: #{$border-radius-circle};
}
.user-name {
color: var(--accent-color);
}
}
.notifications-container {
@include flex-center;
height: 24px;
width: 24px;
cursor: pointer;
}
}
.new-project-button {
padding: 12px 16px;
cursor: not-allowed;
color: var(--text-color);
background: var(--background-color-secondary);
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: 8px 10px;
margin: 4px 0;
border-radius: #{$border-radius-extra-large};
cursor: pointer;
&:hover {
background: var(--background-color-secondary);
}
}
.active {
color: var(--text-button-color);
font-weight: var(--font-weight-medium);
background: var(--background-color-button);
&:hover {
background: var(--background-color-button);
}
}
}
}
}
.dashboard-home-container {
width: 100%;
padding-left: 18px;
.dashboard-navbar-container {
margin-top: 28px;
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(--background-color-button);
white-space: nowrap;
border-radius: #{$border-radius-extra-large};
color: var(--text-button-color);
}
.search-wrapper {
width: 400px;
}
}
.container {
margin: 22px 0;
width: 100%;
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-top: 18px;
gap: 18px;
overflow: auto;
}
}
}
}
.dashboard-card-container {
height: 242px;
width: calc((100% / 5) - 23px);
min-width: 260px;
position: relative;
border: 1px solid var(--border-color);
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%;
object-fit: cover;
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: 13px 16px;
background: var(--background-color);
// backdrop-filter: blur(18px);
border-radius: #{$border-radius-xlarge};
2025-06-02 05:50:00 +00:00
// transform: translateY(100%);
transition: transform 0.25s linear;
.project-details {
.project-name {
margin-bottom: 7px;
}
.project-data {
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;
line-height: 26px;
text-align: center;
background: var(--accent-color);
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 {
width: 100%;
height: 230px;
overflow: hidden;
position: relative;
img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: #{$border-radius-xxx};
}
.hero-text {
position: absolute;
left: 52px;
bottom: 25px;
font-size: 48px;
font-family: #{$font-roboto};
font-weight: 800;
color: #ffffff;
text-transform: uppercase;
}
.context {
position: absolute;
top: 20px;
right: 58px;
text-transform: uppercase;
font-size: 22px;
width: 300px;
color: #ffffff;
font-family: #{$font-roboto};
}
.arrow-context {
position: absolute;
bottom: 27px;
right: 300px;
}
.explore-button {
position: absolute;
top: 95px;
right: 52px;
padding: 10px 20px;
text-transform: uppercase;
font-size: 24px;
border: 1px solid #ffffff;
color: #ffffff;
font-family: #{$font-roboto};
cursor: pointer;
}
}