diff --git a/package.json b/package.json index bf90c98..596cf66 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@fontsource-variable/noto-sans": "^5.3.0", "@fontsource-variable/plus-jakarta-sans": "^5.3.0", "@fontsource-variable/space-grotesk": "^5.3.0", + "@fontsource/tilt-neon": "^5.3.0", "@jellyfin/sdk": "1.0.1", "@mui/lab": "9.0.0-beta.10", "@mui/material": "9.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85f317e..91c3c0c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,9 @@ importers: '@fontsource-variable/space-grotesk': specifier: ^5.3.0 version: 5.3.0 + '@fontsource/tilt-neon': + specifier: ^5.3.0 + version: 5.3.0 '@jellyfin/sdk': specifier: 1.0.1 version: 1.0.1(axios@1.20.0(debug@4.4.3)) @@ -583,6 +586,9 @@ packages: '@fontsource-variable/space-grotesk@5.3.0': resolution: {integrity: sha512-2IxmvfB08i9vnGB3Ym/AXvhRE+8XOjWMXIyDum03c+tPwH0FUoMNQfGpU8NXPxjbws0Vvss3AH0Zqt4oJBBAdw==} + '@fontsource/tilt-neon@5.3.0': + resolution: {integrity: sha512-A9C6HZEwi8TWuLiSzJQdpeb7F3rbB+nfe5MswkiR27iZVgZ9DAAB3fORtYIkAbndhH9ydnwfOJC2oR04HXyW5w==} + '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} engines: {node: '>=18.18.0'} @@ -3608,6 +3614,8 @@ snapshots: '@fontsource-variable/space-grotesk@5.3.0': {} + '@fontsource/tilt-neon@5.3.0': {} + '@humanfs/core@0.19.2': dependencies: '@humanfs/types': 0.15.0 diff --git a/src/components/carousel/carousel.scss b/src/components/carousel/carousel.scss index 9721dc9..12d8b16 100644 --- a/src/components/carousel/carousel.scss +++ b/src/components/carousel/carousel.scss @@ -454,6 +454,42 @@ body:has(.audio-player) .cinema-hero .hero-carousel-overview { } } +/* Short windows (and the player bar) leave little vertical room: drop the + secondary copy instead of pushing the headline under the header. */ +@media (max-height: 760px) { + .cinema-hero { + height: calc(100vh - 32px); + min-height: 540px; + + .hero-carousel-detail { + gap: 0.65rem; + padding-bottom: calc(var(--home-trending-space, 200px) + 1rem); + } + + .hero-carousel-overview, + .hero-carousel-info { + display: none; + } + + .hero-carousel-text { + max-width: 18ch; + font-size: clamp(2rem, 3.2vw, 3rem) !important; + } + + .cinema-trending { + padding-top: 1rem; + } + + .cinema-trending-head { + margin-bottom: 0.6rem; + } + + .cinema-trending-card { + width: clamp(150px, 15vw, 220px); + } + } +} + @media (max-width: 700px) { .cinema-hero { min-height: 520px; diff --git a/src/components/carousel/tickers.tsx b/src/components/carousel/tickers.tsx deleted file mode 100644 index b99213c..0000000 --- a/src/components/carousel/tickers.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import type { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; -import { Typography } from "@mui/material"; -import React from "react"; -import { getTypeIcon } from "../utils/iconsCollection"; - -type CarouselTickersProps = { - imageUrl?: string | undefined | null; - itemName: string; - itemYear: string; - onTickerClick: (index: number) => void; - index: number; - isActive: boolean; - itemType: BaseItemKind; -}; - -const CarouselTickers = React.memo( - ({ - imageUrl, - itemName, - itemYear, - onTickerClick, - index, - isActive, - itemType, - }: CarouselTickersProps) => { - const handleClick = React.useCallback(() => { - onTickerClick(index); - }, [index, onTickerClick]); - - return ( -
- {imageUrl ? ( - {itemName} - ) : ( -
- {" "} - {getTypeIcon(itemType)} -
- )} -
- - {itemName} - - - {itemYear} - -
-
- ); - }, -); -export default CarouselTickers; diff --git a/src/routes/_api/home/home.scss b/src/routes/_api/home/home.scss index 9088821..6e1b408 100644 --- a/src/routes/_api/home/home.scss +++ b/src/routes/_api/home/home.scss @@ -50,13 +50,16 @@ body:has(.audio-player) .home-cinema { } &-logo { - font-size: 1.9rem; - font-weight: 600; - font-style: italic; - letter-spacing: -0.045em; + font-family: "Tilt Neon", "Plus Jakarta Sans Variable", sans-serif; + font-size: 2rem; + font-weight: 400; + font-style: normal; + letter-spacing: 0.005em; line-height: 1; user-select: none; - text-shadow: 0 2px 18px rgb(0 0 0 / 0.35); + text-shadow: + 0 0 22px rgb(120 210 255 / 0.35), + 0 2px 18px rgb(0 0 0 / 0.45); } .home-nav-link { diff --git a/src/routes/_api/home/homeHeader.tsx b/src/routes/_api/home/homeHeader.tsx index 7ead9ab..dc6b0c9 100644 --- a/src/routes/_api/home/homeHeader.tsx +++ b/src/routes/_api/home/homeHeader.tsx @@ -1,3 +1,4 @@ +import "@fontsource/tilt-neon/400.css"; import IconButton from "@mui/material/IconButton"; import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client"; import { useNavigate } from "@tanstack/react-router";