From e4d9e2fa17421627d584b45e5f68e51a460a16ac Mon Sep 17 00:00:00 2001 From: Mahasvin24 Date: Sun, 20 Aug 2023 19:30:56 -0700 Subject: [PATCH] Fixed Card Issues + Added Styling --- components/PetCard.tsx | 10 +++++---- components/Search.tsx | 46 +++++++++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/components/PetCard.tsx b/components/PetCard.tsx index ff8f47c..9d414b7 100644 --- a/components/PetCard.tsx +++ b/components/PetCard.tsx @@ -28,8 +28,10 @@ const PetCard = ({ type, name, species, breed, age, gender, size, description, s return (
-
- hero image +
+
{/**Use this to adjust image height*/} + hero image +
{name}

@@ -37,8 +39,8 @@ const PetCard = ({ type, name, species, breed, age, gender, size, description, s

- {type == 'A' ? 'Adoption' : 'Foster' } - {age} years old + {type === 'A' ? 'Adoption' : 'Foster'} + {age} y/o {breed} {gender}
diff --git a/components/Search.tsx b/components/Search.tsx index b6d8e72..acf9638 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -146,8 +146,8 @@ const Search = (props: any) => {
-
- +
+
@@ -155,7 +155,13 @@ const Search = (props: any) => {
- +
@@ -171,15 +177,15 @@ const Search = (props: any) => {
@@ -205,12 +211,16 @@ const Search = (props: any) => {
-
- { - pets.map((pet) => ( - sortPets(pet) - )) - } +
+
+ { + pets.map((pet) => ( +
+ {sortPets(pet)} +
+ )) + } +
);