style: Improve titlePage styling

This commit is contained in:
Prayag Prajapati committed 2024-03-26 23:01:31 +05:30
1 parent 1403f57171
commit c362c7e59f
34 files changed
+905 -885

No files matched your search

+30 -10
View File
@@ -1,11 +1,16 @@
$cardWidth: 30%;
.item-episode.item {
gap: 1em;
.item-hero {
height: 50vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: center;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
@@ -16,13 +21,11 @@
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
width: fit-content;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 26% !important;
max-width: 26% !important;
width: 100%;
}
&-blurhash {
position: absolute !important;
@@ -30,9 +33,19 @@
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded{
font-size: 4em;
}
}
}
&-logo {
max-width: 42rem;
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
@@ -41,14 +54,18 @@
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
gap: 0.5em;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
@@ -64,7 +81,7 @@
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(50vh + 4.4em);
height: calc(44vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
@@ -74,14 +91,17 @@
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail {
display: grid;
grid-template-columns: 1fr 5px 35%;
grid-template-columns: 1fr 35%;
justify-items: center;
align-items: start;
gap: 1em;
gap: 3em;
&-cast {
&-container {