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

222 lines
5.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;
.side-pannel-container {
padding: 32px;
min-width: 240px;
height: 100vh;
display: flex;
flex-direction: column;
gap: 16px;
border-right: 1px solid var(--border-color);
.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(--accent-color);
background-color: var(--background-color-secondary);
border-radius: #{$border-radius-large};
}
.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;
margin: 4px 0;
border-radius: #{$border-radius-medium};
&:hover {
background: var(--background-color-secondary);
}
}
.active {
color: var(--accent-color);
font-weight: var(--font-weight-medium);
background-color: var(--highlight-accent-color);
&:hover {
background-color: var(--highlight-accent-color);
}
}
}
}
}
.dashboard-home-container {
width: 100%;
.dashboard-navbar-container {
margin-top: 28px;
padding: 8px 34px 8px 12px;
@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);
white-space: nowrap;
border-radius: #{$border-radius-large};
color: var(--primary-color);
}
.search-wrapper {
width: 400px;
}
}
.container {
margin: 22px 0;
width: 100%;
padding: 0 12px;
.header {
font-size: var(--font-size-large);
}
.cards-container {
display: flex;
flex-wrap: wrap;
position: relative;
width: 100%;
padding: 8px;
gap: 18px;
}
}
}
}
.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-large};
overflow: hidden;
.preview-container {
height: 100%;
width: 100%;
img {
height: 100%;
width: 100%;
object-fit: cover;
vertical-align: top;
border: none;
outline: none;
}
}
.project-details-container {
@include flex-space-between;
position: absolute;
bottom: 0;
width: 100%;
padding: 8px 16px;
background: var(--primary-color);
border-radius: 10px;
.project-details {
.project-name {
margin-bottom: 2px;
}
.project-data {
color: var(--accent-color);
}
}
.users-list-container {
@include flex-center;
gap: 6px;
.user-profile {
height: 26px;
width: 26px;
line-height: 26px;
text-align: center;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: #{$border-radius-circle};
}
}
}
}
.market-place-banner-container {
width: 100%;
height: 230px;
overflow: hidden;
position: relative;
padding: 0 24px;
img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 30px;
}
.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;
}
}