From 021bcec3f1c1026ee4cb5def603da923fd7f828e Mon Sep 17 00:00:00 2001 From: AmiltonCabral Date: Sat, 21 Sep 2024 22:17:21 -0300 Subject: [PATCH] emotion search design --- src/app/search/page.tsx | 13 ++++++++++--- src/app/search/search.module.css | 18 ++++++++++++++++++ src/components/SearchBar/index.tsx | 5 ++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index 8d9527a..999da59 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -18,7 +18,7 @@ export default function Search() { return (
- +

Explore popular genres

    @@ -27,15 +27,22 @@ export default function Search() { Biography -

    {genre}

    +

    {genre}

    ))}
+ +
+ +

Search books by emotion

+
+ +
); diff --git a/src/app/search/search.module.css b/src/app/search/search.module.css index 47e368a..7223025 100644 --- a/src/app/search/search.module.css +++ b/src/app/search/search.module.css @@ -7,6 +7,8 @@ .title { text-align: center; margin: 4rem 0; + font-size: 3rem; + font-weight: 400; } .genresList { @@ -15,6 +17,7 @@ gap: 4rem 0; justify-content: space-around; text-align: center; + margin-bottom: 8rem; } @media (max-width: 768px) { @@ -35,3 +38,18 @@ text-decoration: none; color: inherit; } + +.genreName { + font-size: 1.3rem; +} + +.emotionSearchContainer { + display: flex; + justify-content: center; + align-items: center; + padding-bottom: 20rem; +} + +.emotionSearchContainer div { + width: min(40rem, 100%); +} diff --git a/src/components/SearchBar/index.tsx b/src/components/SearchBar/index.tsx index caa0023..c6fde2b 100644 --- a/src/components/SearchBar/index.tsx +++ b/src/components/SearchBar/index.tsx @@ -3,12 +3,11 @@ import styles from "./search-bar.module.css"; type SearchBarProps = { placeholder?: string; - width?: string; }; -export default function SearchBar({ placeholder, width }: SearchBarProps) { +export default function SearchBar({ placeholder }: SearchBarProps) { return ( -
+