Skip to content

Commit e8c567e

Browse files
committed
diseño navbar, login y restablecimiento contraseña
1 parent 0d53585 commit e8c567e

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/front/js/pages/perfilUsuario.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ export const PerfilUsuario = () => {
6969
style={{ cursor: "pointer" }}
7070
>
7171
<img
72-
src={pet.animal_type === "perro" ? "https://images.emojiterra.com/google/noto-emoji/unicode-16.0/color/1024px/1f436.png" :
73-
pet.animal_type === "gato" ? "https://cdn-icons-png.flaticon.com/512/6988/6988878.png" :
74-
pet.animal_type === "exotico" ? "https://cdn-icons-png.flaticon.com/512/802/802338.png" :
75-
"https://via.placeholder.com/60" }
72+
src={pet.url || "https://via.placeholder.com/60"}
7673
alt={pet.name}
7774
className="rounded-circle border border-secondary"
7875
style={{ width: 60, height: 60, objectFit: "cover" }}

src/front/js/pages/vistaMascota.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,10 @@ export const VistaMascota = () => {
9595
<div className="col-md-6">
9696
<div className="card">
9797
<img
98-
src={
99-
petDetails.animal_type === "perro" ? "https://images.emojiterra.com/google/noto-emoji/unicode-16.0/color/1024px/1f436.png" :
100-
petDetails.animal_type === "gato" ? "https://cdn-icons-png.flaticon.com/512/6988/6988878.png" :
101-
petDetails.animal_type === "exotico" ? "https://cdn-icons-png.flaticon.com/512/802/802338.png" :
102-
"https://via.placeholder.com/60"
103-
}
104-
alt={petDetails.name}
105-
className="rounded-circle border border-secondary"
106-
style={{ width: "140px", height: "140px", objectFit: "cover" }}
98+
src={petDetails.url || '/default-image.jpg'}
99+
alt={petDetails.name}
100+
className="card-img-top"
101+
style={{ width: '100%', height: 'auto' }}
107102
/>
108103
<div className="card-body">
109104
<h5 className="card-title">{petDetails.name}</h5>

0 commit comments

Comments
 (0)