Card : transformation en lien
This commit is contained in:
parent
dae76b9475
commit
1347f8f684
1 changed files with 11 additions and 9 deletions
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
const { id, name } = Astro.props;
|
||||
const { id, name, link } = Astro.props;
|
||||
---
|
||||
|
||||
<a href={link}>
|
||||
<div class="card">
|
||||
<div class="image-wrapper">
|
||||
<img src={`/img/logo/${id}.svg`} alt={`${name} logo`}" />
|
||||
|
@ -11,6 +12,7 @@ const { id, name } = Astro.props;
|
|||
<p><slot /></p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
.card {
|
||||
|
|
Loading…
Reference in a new issue