feat(home): implement new homepage design with full-bleed hero slider and component refactor

- Replace old HomePage layout with Apple TV+/Hulu-inspired design (HomePage3)
- Extract all home UI into reusable components under src/components/home/:
  HeroSlider, BackdropCard, BackdropScrollCard, PopularBelt,
  NumberedListItem, MiniPosterCard, UpcomingCard, SectionHeader
- Hero slider: true slide-track animation, embedded search bar, autoplay with dot indicators
- Trending Now: rotating 2x2 backdrop grid with slide-out/slide-in stagger animation (7s interval)
- Popular Right Now: infinite CSS marquee belt, pauses on hover
- Top Rated: 16:9 featured backdrop + 4 poster cards, no labels
- Coming Soon: compact horizontal scroll, date overlay, relative countdown on hover
- Fix sidebar ml offset in AppLayout (md:ml-56 -> md:ml-20) to re-center all pages
- Move Collections page filters to top-right, search input to left
This commit is contained in:
Mohammed Abad committed 2026-05-25 04:42:24 +01:00
1 parent 070aea3c51
commit 8641e55362
13 files changed
+749 -1077

No files matched your search

@@ -0,0 +1,35 @@
import { Link } from 'react-router-dom';
import type { TmdbEntry } from '@/types';
interface MiniPosterCardProps {
entry: TmdbEntry;
hideTitle?: boolean;
}
export function MiniPosterCard({ entry, hideTitle }: MiniPosterCardProps) {
const title = entry.title || entry.name || 'Untitled';
const poster = entry.poster_path
? `https://image.tmdb.org/t/p/w342${entry.poster_path}`
: null;
const isTv = entry.media_type === 'tv' || !!entry.name;
const linkTo = `/entry/tmdb/${isTv ? 'tv' : 'movie'}/${entry.id}`;
return (
<Link to={linkTo} className="group space-y-2">
<div className="relative overflow-hidden rounded-lg bg-muted" style={{ aspectRatio: '2/3' }}>
{poster ? (
<img
src={poster}
alt={title}
className="h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"
/>
) : (
<div className="flex h-full w-full items-center justify-center text-xs text-muted-foreground">
No Image
</div>
)}
</div>
{!hideTitle && <p className="truncate text-xs font-medium">{title}</p>}
</Link>
);
}