feat(home): cinematic rounded home page with integrated hero
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Home is now a floating rounded window: an integrated header over full-bleed artwork, a large featured title with actions, and a Trending now rail that switches the hero. Existing home sections continue below in the same frame.
This commit is contained in:
1 parent
affbd00157
commit
d5c1bfac64
9 files changed
+873
-489
No files matched your search
+147
-194
@@ -1,211 +1,164 @@
|
||||
/* Home page: a floating, rounded "cinema window" with an integrated header. */
|
||||
.home-cinema {
|
||||
--home-trending-space: 200px;
|
||||
|
||||
.hero-carousel {
|
||||
min-height: 100vh;
|
||||
padding: 16px;
|
||||
box-sizing: border-box;
|
||||
background: #05060a;
|
||||
}
|
||||
|
||||
body:has(.audio-player) .home-cinema {
|
||||
--home-trending-space: 316px;
|
||||
}
|
||||
|
||||
.home-frame {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
isolation: isolate;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
min-height: calc(100vh - 32px);
|
||||
border: 1px solid rgb(255 255 255 / 0.07);
|
||||
border-radius: 28px;
|
||||
background: #08090d;
|
||||
box-shadow: 0 28px 70px rgb(0 0 0 / 0.45);
|
||||
}
|
||||
|
||||
&-slide {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
border: none;
|
||||
border-radius: 20px;
|
||||
grid-area: main;
|
||||
border: 1.2px solid rgb(255 255 255 / 0.1);
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.2);
|
||||
}
|
||||
/* Header floating over the hero artwork. */
|
||||
.home-header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1.3rem clamp(1.5rem, 3vw, 2.5rem) 1.4rem;
|
||||
color: #fff;
|
||||
background: linear-gradient(180deg, rgb(0 0 0 / 0.42), transparent);
|
||||
|
||||
&-background {
|
||||
&-container {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 100%;
|
||||
|
||||
// Gradient overlay to make text readable
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
to top right,
|
||||
rgba(0, 0, 0, 0.9) 0%,
|
||||
rgba(0, 0, 0, 0.4) 50%,
|
||||
transparent 100%
|
||||
);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-image {
|
||||
position: absolute;
|
||||
background-size: cover;
|
||||
z-index: 1;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-position: center;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
// Poster-only item: never stretch/crop a 2:3 poster across 16:9.
|
||||
// Blur it into an ambient background and show the sharp poster on top.
|
||||
&.is-poster {
|
||||
filter: blur(36px) saturate(1.6) brightness(0.65);
|
||||
transform: scale(1.25);
|
||||
}
|
||||
}
|
||||
|
||||
&-blurhash {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
z-index: 0;
|
||||
filter: blur(30px) saturate(1.4);
|
||||
}
|
||||
|
||||
&-icon-container {
|
||||
position: absolute;
|
||||
background: url("/src/assets/herobg.png"), rgb(0 0 0 /0.3);
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-blend-mode: overlay;
|
||||
height: 100%;
|
||||
|
||||
.material-symbols-rounded {
|
||||
position: absolute;
|
||||
font-size: 15em !important;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 50, "opsz" 60;
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-text {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.5em;
|
||||
text-shadow: 0 0 10px rgba(0,0,0,0.5), 0 0 20px rgba(0,0,0,0.3);
|
||||
|
||||
&-logo {
|
||||
max-width: 25vw;
|
||||
max-height: 20vh;
|
||||
object-fit: contain;
|
||||
object-position: left bottom;
|
||||
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
|
||||
// The logo is an <img> inside a line-clamped heading; as an inline image
|
||||
// its box was clipped by the heading's line box (cut-off titles).
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&-poster {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
right: 7%;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
height: 66%;
|
||||
max-width: 26%;
|
||||
object-fit: contain;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 24px 60px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.08);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&-overview {
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.5em;
|
||||
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
display: block;
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.9;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
&-detail {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
&-left,
|
||||
&-right {
|
||||
display: flex;
|
||||
gap: 1.5em;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
max-width: 1400px;
|
||||
padding: 4rem;
|
||||
padding-bottom: 5rem;
|
||||
padding-left: 5rem;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
&-right {
|
||||
justify-content: flex-end;
|
||||
align-items: flex-start;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
&-info {
|
||||
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
||||
|
||||
&-logo {
|
||||
font-size: 1.9rem;
|
||||
font-weight: 600;
|
||||
font-style: italic;
|
||||
letter-spacing: -0.045em;
|
||||
line-height: 1;
|
||||
user-select: none;
|
||||
text-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
|
||||
}
|
||||
|
||||
.home-nav-link {
|
||||
padding: 0.5rem 0.7rem;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: rgb(255 255 255 / 0.76);
|
||||
font: inherit;
|
||||
font-size: 0.92rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 0.18s ease,
|
||||
background-color 0.18s ease;
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: rgb(255 255 255 / 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
.MuiIconButton-root {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
color: rgb(255 255 255 / 0.88);
|
||||
background: rgb(255 255 255 / 0.08);
|
||||
border: 1px solid rgb(255 255 255 / 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
transition:
|
||||
background-color 0.18s ease,
|
||||
color 0.18s ease;
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: rgb(255 255 255 / 0.16);
|
||||
}
|
||||
|
||||
.material-symbols-rounded {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.backdropContainer {
|
||||
background: linear-gradient(
|
||||
45deg,
|
||||
$clr-background-default,
|
||||
$clr-background-light
|
||||
);
|
||||
.home-sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2.5rem clamp(1.5rem, 3vw, 2.5rem) 8rem;
|
||||
background: linear-gradient(180deg, #08090d 0%, #0b0c12 100%);
|
||||
|
||||
.card-scroller-container {
|
||||
margin-bottom: 1.8em;
|
||||
}
|
||||
|
||||
.card-scroller-heading-decoration {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.card-scroller-heading {
|
||||
font-size: 1.15rem !important;
|
||||
font-weight: 600 !important;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1140px) {
|
||||
.carousel {
|
||||
height: 60vh !important;
|
||||
// Never squeeze the hero below the height its own content needs,
|
||||
// otherwise the title/logo is clipped by the slide's overflow.
|
||||
min-height: 430px;
|
||||
}
|
||||
.hero-carousel {
|
||||
&-poster {
|
||||
body:has(.audio-player) .home-sections {
|
||||
padding-bottom: 10rem;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.home-header {
|
||||
.home-nav-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-detail {
|
||||
width: 100%;
|
||||
padding: 3rem;
|
||||
padding-bottom: 4rem;
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
|
||||
}
|
||||
|
||||
&-background-container::after {
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
|
||||
}
|
||||
|
||||
&-text {
|
||||
// Narrow layouts: the hero column is ~400px, a 3.75rem title wraps
|
||||
// to two lines and overflows the slide, clipping the top line.
|
||||
font-size: 2.5rem !important;
|
||||
line-height: 1.15 !important;
|
||||
|
||||
&-logo {
|
||||
max-width: 60vw;
|
||||
max-height: 10vh;
|
||||
}
|
||||
&-logo {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.home-cinema {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.home-frame {
|
||||
min-height: 100vh;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.home-header {
|
||||
padding: 1rem 1.1rem;
|
||||
|
||||
.MuiIconButton-root {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
}
|
||||
|
||||
.home-sections {
|
||||
padding: 2rem 1.1rem 8rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user