CardUser.astro 699 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. interface Props {
  3. puesto: string;
  4. nombre: string;
  5. imagen?: string;
  6. }
  7. const { puesto, imagen, nombre } = Astro.props;
  8. ---
  9. <a
  10. class="w-full h-full flex flex-col p-5 space-y-4 bg-stone-50 border-2 border-stone-50 rounded-md shadow-md shadow-slate-400"
  11. >
  12. <div class="flex flex-row justify-center items-center">
  13. <div class="w-80 h-80 overflow-hidden rounded-full">
  14. <img class="w-full h-full object-cover object-center" src={imagen} />
  15. </div>
  16. </div>
  17. <div class="w-full">
  18. <h2 class="text-xl text-gray-400">
  19. {puesto}
  20. </h2>
  21. </div>
  22. <hr class="my-2" />
  23. <div class="flex flex-col">
  24. <p class="text-start text-lg font-semibold">{nombre}</p>
  25. </div>
  26. </a>