Skip to content

Commit

Permalink
test 3 team img
Browse files Browse the repository at this point in the history
  • Loading branch information
clara7227 committed Oct 15, 2024
1 parent ea6bf2f commit c01a242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/core/Cards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const Card = React.forwardRef(
{(img || svg) && (
<Image
className={"h-[220px] rounded-md"}
src={img || "placeholder.jpg"} // La imagen por defecto será una cadena vacía si no hay src
src={"/boiler"+ img || "placeholder.jpg"} // La imagen por defecto será una cadena vacía si no hay src
alt={title || "Image"} // Usa el título como alt si existe
fit="cover" // Ajustamos el contenido al contenedor
hasBadge={position? true : false} // Por defecto, no tiene badge
Expand Down Expand Up @@ -249,8 +249,8 @@ const Card = React.forwardRef(
<CustomCard className={cn(CardVariants({ direction, className }))}>
{img && (
<Image
src={"/boiler" +img || "placeholder.jpg"}
alt={"/boiler"+img || "placeholder.jpg"}
src={/* process.env.PUBLIC_URL */ +img || "placeholder.jpg"}
alt={/* process.env.PUBLIC_URL */ +img || "placeholder.jpg"}
className={"h-24"}
fit="contain"
/>
Expand Down

0 comments on commit c01a242

Please sign in to comment.