Update Slider

This commit is contained in:
Prayag committed 2022-04-09 12:34:03 +05:30
1 parent be135f6451
commit 8c129cda3c
4 files changed
+512 -274

No files matched your search

+100 -6
View File
@@ -19,7 +19,6 @@
.menu.side__menu {
width: 40vw;
background: rgb(0 0 0 / 0.3);
height: 100vh;
max-width: 20em;
overflow: auto;
@@ -28,6 +27,7 @@
flex-direction: column;
align-items: center;
justify-content: flex-start;
border-right: 1px solid var(--main-brd-clr);
}
.user__menu {
@@ -40,8 +40,8 @@
font-weight: 200;
font-size: 1.9rem;
gap: 0.5em;
background: #102c499c;
padding: 2em 1em;
border-bottom: 1px solid var(--main-brd-clr);
}
.user__menu .image {
@@ -76,12 +76,28 @@ img {
width: 100%;
height: 100vh;
position: relative;
background: linear-gradient(
45deg,
rgba(10, 26, 51, 1) 0%,
rgba(8, 144, 149, 1) 100%
);
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
}
.latestMediaSlider {
width: 100%;
height: 80vh;
width: 90%;
height: 55vh;
position: relative;
z-index: 1;
background: var(--main-bg);
border-radius: var(--rounding);
overflow: hidden;
margin-top: 3em;
box-shadow: 0 5px 30px -20px rgb(0 0 0 / 90%);
}
.slide {
@@ -89,6 +105,7 @@ img {
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.slide.active {
@@ -101,10 +118,10 @@ img {
position: absolute;
z-index: -1;
right: 0;
-webkit-mask-image: linear-gradient(to right, transparent, black),
linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(to right, transparent, black 50%);
-webkit-mask-composite: destination-in;
background-size: cover !important;
opacity: 0.5;
}
canvas.placeholder {
@@ -123,3 +140,80 @@ canvas.placeholder {
width: 100%;
height: 100%;
}
.info__cont {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: flex-start;
justify-content: center;
align-content: center;
width: 70%;
height: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 2em;
}
.title div {
width: 100%;
height: 100%;
position: static;
background-size: contain !important;
background-position: left !important;
background-repeat: no-repeat !important;
}
.title {
width: 100%;
height: 40%;
}
.overview {
width: 100%;
display: flex;
gap: 1em;
font-size: 0.9em;
font-weight: 600;
}
.overview div {
display: flex;
gap: 0.2em;
}
button.filled {
--clr: var(--accent-solid);
background: var(--accent-solid);
color: white;
border: 2px solid var(--clr);
}
button.outlined {
--clr: white;
background: transparent;
color: white;
border: 2px solid var(--clr);
}
.main .buttons {
width: 100%;
margin-top: 1em;
}
.info__cont button {
max-width: 15em;
padding: 0;
}
.info__cont button span {
font-size: 1.5em;
}
@media (max-width: 900px) {
.latestMediaSlider {
height: auto;
aspect-ratio: 16/9;
}
}