Card : transformation en lien

This commit is contained in:
Ahurac 2024-01-31 14:57:40 +01:00
parent dae76b9475
commit 1347f8f684

View file

@ -1,8 +1,9 @@
--- ---
const { id, name } = Astro.props; const { id, name, link } = Astro.props;
--- ---
<div class="card"> <a href={link}>
<div class="card">
<div class="image-wrapper"> <div class="image-wrapper">
<img src={`/img/logo/${id}.svg`} alt={`${name} logo`}" /> <img src={`/img/logo/${id}.svg`} alt={`${name} logo`}" />
</div> </div>
@ -10,7 +11,8 @@ const { id, name } = Astro.props;
<h1>{name}</h1> <h1>{name}</h1>
<p><slot /></p> <p><slot /></p>
</div> </div>
</div> </div>
</a>
<style> <style>
.card { .card {