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