Skip to content

Commit

Permalink
🐛 Then Cards...
Browse files Browse the repository at this point in the history
  • Loading branch information
Funasitien committed Feb 7, 2024
1 parent ea062d2 commit 1965e05
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/components/Card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@ interface Props {
const { img_url, img_alt ="Icone du jeu", title, body, href } = Astro.props;
---

<div class="container">
<div class="mt-4 card w-80 bg-base-300 shadow-xl h-full">
<figure>
<img
class="object-cover aspect-square"
src={ img_url }
alt={ img_alt }
/>
</figure>
<div class="card-body">
<h2 class="card-title">{ title }</h2>
<p>{ body }</p>
<div class="card-actions justify-end">
<a href={ href } class="btn btn-primary">Jouer</a>
<div class="heart"></div>
</div>
<div class="mt-4 card w-80 bg-base-300 shadow-xl h-full">
<figure>
<img
class="object-cover aspect-square"
src={ img_url }
alt={ img_alt }
/>
</figure>
<div class="card-body">
<h2 class="card-title">{ title }</h2>
<p>{ body }</p>
<div class="card-actions justify-end">
<a href={ href } class="btn btn-primary">Jouer</a>
<div class="heart"></div>
</div>
</div>
</div>
</div>

0 comments on commit 1965e05

Please sign in to comment.