-
Adopt your perfect companion today!
-
-
+
+
+
+
+
- {[
- { name: "Stella", age: 1, type: "Golden Retriever", img: doggo },
- { name: "Cleo", age: 7, type: "Maine Coon Cat", img: catImg },
- { name: "Bowser", age: 13, type: "Western Painted Turtle", img: turtle },
- { name: "Moon", age: 9, type: "Cockatiel", img: bird },
- ].map((pet) => (
-
-

-
+ {/* ✅ Full-width Grid */}
+
+ {pets.map((pet) => (
+
+

+
Name: {pet.name}
Age: {pet.age}
Type: {pet.type}
))}
-
+
);
}
+
+const buttonStyle = {
+ backgroundColor: "black",
+ color: "white",
+ padding: "0.6rem 1.5rem",
+ borderRadius: "6px",
+ border: "none",
+ fontSize: "1rem",
+ cursor: "pointer"
+};
+
+const iconStyle = {
+ width: "36px",
+ height: "36px"
+};
diff --git a/frontend/src/pages/PetProfile.tsx b/frontend/src/pages/PetProfile.tsx
index 70b8ad6..393386d 100644
--- a/frontend/src/pages/PetProfile.tsx
+++ b/frontend/src/pages/PetProfile.tsx
@@ -17,28 +17,60 @@ function PetProfile() {
fetch('http://localhost:5000/api/pets')
.then(res => res.json())
.then(data => {
- console.log('Received pets:', data); // ✅ inside the .then block
+ console.log('Received pets:', data);
setPets(data);
})
.catch(err => console.error('Error fetching pets:', err));
}, []);
-
return (
-
-
Adoptable Pets
-
+
+
Adoptable Pets
+
+
{pets.map(pet => (
-
+

-
{pet.name}
-
Breed: {pet.breed}
-
Age: {pet.age}
-
Temperament: {pet.personality}
+
{pet.name}, {pet.age}
+
Breed: {pet.breed}
+
Temperament: {pet.personality}
+
+
+
+
))}
@@ -46,6 +78,15 @@ function PetProfile() {
);
}
-
+const buttonStyle = {
+ backgroundColor: "black",
+ color: "white",
+ padding: "0.5rem 1.25rem",
+ border: "none",
+ borderRadius: "8px",
+ fontSize: "0.9rem",
+ cursor: "pointer",
+ flex: "1"
+};
export default PetProfile;