From c5477e63c37436c1396034f2c7ad834950fb0e69 Mon Sep 17 00:00:00 2001 From: iqbalpa Date: Thu, 11 Jul 2024 16:09:51 +0700 Subject: [PATCH] feat(home): implement responsive design --- src/components/backdrop/backdrop.tsx | 6 +++--- src/components/card/card.tsx | 2 +- src/components/header/header.tsx | 17 +++++++++++------ src/components/listMovies/listMovies.tsx | 2 +- src/modules/home/home.tsx | 2 +- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/backdrop/backdrop.tsx b/src/components/backdrop/backdrop.tsx index 336bfb8..e7b0198 100644 --- a/src/components/backdrop/backdrop.tsx +++ b/src/components/backdrop/backdrop.tsx @@ -14,11 +14,11 @@ const Backdrop: React.FC = ({ movie, backdrop }) => { return (
-
-

+

+

{movie?.title} ({movie?.release_date.split('-')[0]})

-

{movie?.overview}

+

{movie?.overview}

{isLoading && ( diff --git a/src/components/card/card.tsx b/src/components/card/card.tsx index 0bd2ce1..e6a3a7c 100644 --- a/src/components/card/card.tsx +++ b/src/components/card/card.tsx @@ -16,7 +16,7 @@ const Card: React.FC = ({ movie }) => { return (
diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 5f6be80..7bb0486 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -20,15 +20,20 @@ const Header: React.FC = () => { }, []); return ( -
- - Movies Catalog - -
+
+ + Movies Catalog + +
+ ); }; diff --git a/src/components/listMovies/listMovies.tsx b/src/components/listMovies/listMovies.tsx index c9adae4..660b861 100644 --- a/src/components/listMovies/listMovies.tsx +++ b/src/components/listMovies/listMovies.tsx @@ -9,7 +9,7 @@ interface IListMovies { const ListMovies: React.FC = ({ movies }) => { return ( -
+
{movies.map((movie, index) => ( ))} diff --git a/src/modules/home/home.tsx b/src/modules/home/home.tsx index 1a7c75d..4cb9793 100644 --- a/src/modules/home/home.tsx +++ b/src/modules/home/home.tsx @@ -69,7 +69,7 @@ const HomeModule: React.FC = () => { }; return ( -
+