Refactor MovieList component to support multiple movie categories with sorting and filtering options; update Home page to display categorized movie lists; enhance global styles for grid layout.

This commit is contained in:
Norbert Maciaszek
2025-08-05 22:10:22 +02:00
parent 2359cfc582
commit b08cdea130
4 changed files with 95 additions and 11 deletions

View File

@@ -43,3 +43,7 @@
width: calc(--value(integer) / 0.12 * 1%);
padding: 0 15px;
}
@utility grid-auto-cols-* {
grid-template-columns: repeat(auto-fill, --value(integer));
}

View File

@@ -5,7 +5,15 @@ export default async function Home() {
return (
<main>
<SearchMovies />
<MovieList />
<MovieList
heading="Upcoming"
onlyUpcoming
sort="releaseDate"
sortDirection="desc"
/>
<MovieList heading="My Watchlist" onlyReleased showFilters />
<MovieList heading="Seen" onlySeen />
<MovieList heading="Favorites" onlyFavorites />
</main>
);
}