From 25e5b90ee88585bcf21f725abd87f2b7d1683e85 Mon Sep 17 00:00:00 2001 From: Norbert Maciaszek Date: Fri, 15 Aug 2025 15:20:10 +0200 Subject: [PATCH] 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. --- src/app/(withGlobalData)/o-mnie/page.tsx | 21 +++++++++++++++++++++ src/app/(withGlobalData)/page.tsx | 16 +--------------- src/components/organisms/Navbar/index.tsx | 2 +- 3 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 src/app/(withGlobalData)/o-mnie/page.tsx diff --git a/src/app/(withGlobalData)/o-mnie/page.tsx b/src/app/(withGlobalData)/o-mnie/page.tsx new file mode 100644 index 0000000..78e99fd --- /dev/null +++ b/src/app/(withGlobalData)/o-mnie/page.tsx @@ -0,0 +1,21 @@ +import { MovieList } from "@/components/molecules/MovieList"; + +export default async function Home() { + return ( + <> + + + + + + ); +} diff --git a/src/app/(withGlobalData)/page.tsx b/src/app/(withGlobalData)/page.tsx index 78e99fd..07c0d52 100644 --- a/src/app/(withGlobalData)/page.tsx +++ b/src/app/(withGlobalData)/page.tsx @@ -1,21 +1,7 @@ -import { MovieList } from "@/components/molecules/MovieList"; - export default async function Home() { return ( <> - - - - +

Strona główna

); } diff --git a/src/components/organisms/Navbar/index.tsx b/src/components/organisms/Navbar/index.tsx index 89054f1..1b7eab5 100644 --- a/src/components/organisms/Navbar/index.tsx +++ b/src/components/organisms/Navbar/index.tsx @@ -4,7 +4,7 @@ import { Search } from "./components/Search"; const links = [ { label: "O mnie", - href: "/", + href: "/o-mnie", }, { label: "Odkryj",