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:
21
src/app/(withGlobalData)/o-mnie/page.tsx
Normal file
21
src/app/(withGlobalData)/o-mnie/page.tsx
Normal 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} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,21 +1,7 @@
|
|||||||
import { MovieList } from "@/components/molecules/MovieList";
|
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MovieList
|
<h1>Strona główna</h1>
|
||||||
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} />
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Search } from "./components/Search";
|
|||||||
const links = [
|
const links = [
|
||||||
{
|
{
|
||||||
label: "O mnie",
|
label: "O mnie",
|
||||||
href: "/",
|
href: "/o-mnie",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Odkryj",
|
label: "Odkryj",
|
||||||
|
|||||||
Reference in New Issue
Block a user