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
@@ -137,6 +137,20 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
|
||||
},
|
||||
}}
|
||||
>
|
||||
<MotionStack
|
||||
custom={animationDirection}
|
||||
variants={textVariants}
|
||||
direction="row"
|
||||
sx={{ alignItems: "center", gap: 1 }}
|
||||
>
|
||||
<span className="hero-carousel-label">
|
||||
{item.UserData?.PlaybackPositionTicks
|
||||
? "Continue watching"
|
||||
: item.Type === BaseItemKind.Series
|
||||
? "New series"
|
||||
: "New movie"}
|
||||
</span>
|
||||
</MotionStack>
|
||||
<MotionTypography
|
||||
custom={animationDirection}
|
||||
variants={textVariants}
|
||||
@@ -146,26 +160,9 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
|
||||
sx={{
|
||||
fontWeight: 600,
|
||||
overflow: "visible",
|
||||
mb: "5px",
|
||||
}}
|
||||
>
|
||||
{!item.ImageTags?.Logo ? (
|
||||
item.Name
|
||||
) : (
|
||||
<img
|
||||
alt={item.Name ?? "Item"}
|
||||
className="hero-carousel-text-logo"
|
||||
src={`${api?.basePath}/Items/${item.Id}/Images/Logo?quality=90&tag=${item.ImageTags.Logo}`}
|
||||
style={{
|
||||
opacity: 0,
|
||||
transition: "opacity 0.2s",
|
||||
objectFit: "contain",
|
||||
}}
|
||||
onLoad={(e) => {
|
||||
e.currentTarget.style.opacity = "1";
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{item.Name}
|
||||
</MotionTypography>
|
||||
<MotionStack
|
||||
custom={animationDirection}
|
||||
|
||||
Reference in new issue
Block a user