Refactor homepage layout and add new "O mnie" page: remove MovieList components from the main page, replacing them with a heading, and create a new page for movie lists with appropriate filters and headings.

This commit is contained in:
Norbert Maciaszek 2025-08-15 15:20:10 +02:00
parent 7373d64123
commit 25e5b90ee8
3 changed files with 23 additions and 16 deletions

View File

@ -0,0 +1,21 @@
import { MovieList } from "@/components/molecules/MovieList";
export default async function Home() {
return (
<>
<MovieList
heading="Nadchodzące"
filterUpcoming={1}
sortDirection="desc"
/>
<MovieList
heading="Do obejrzenia"
filterReleased={1}
filterSeen={0}
filterFavorites={0}
/>
<MovieList heading="Obejrzane" filterSeen={1} />
<MovieList heading="Ulubione" filterFavorites={1} />
</>
);
}

View File

@ -1,21 +1,7 @@
import { MovieList } from "@/components/molecules/MovieList";
export default async function Home() {
return (
<>
<MovieList
heading="Nadchodzące"
filterUpcoming={1}
sortDirection="desc"
/>
<MovieList
heading="Do obejrzenia"
filterReleased={1}
filterSeen={0}
filterFavorites={0}
/>
<MovieList heading="Obejrzane" filterSeen={1} />
<MovieList heading="Ulubione" filterFavorites={1} />
<h1>Strona główna</h1>
</>
);
}

View File

@ -4,7 +4,7 @@ import { Search } from "./components/Search";
const links = [
{
label: "O mnie",
href: "/",
href: "/o-mnie",
},
{
label: "Odkryj",