66 lines
978 B
Text
66 lines
978 B
Text
---
|
|
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`} />
|
|
</div>
|
|
<div class="text">
|
|
<h1>{name}</h1>
|
|
<p><slot /></p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
<style>
|
|
.card {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border: 2px #ff1aff solid;
|
|
color: white;
|
|
border-radius: 25px;
|
|
position: relative;
|
|
top: 0;
|
|
background-color: #00000000;
|
|
box-shadow: 0 0 50px #ff1aff80;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.card:hover {
|
|
top: -4px;
|
|
background-color: #ff27f4;
|
|
border: 2px #00000000 solid;
|
|
color: black;
|
|
box-shadow: 0 0 50px #ff1affff;
|
|
}
|
|
|
|
.card:hover img {
|
|
filter: invert(100%) brightness(0%);
|
|
}
|
|
|
|
.text {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.image-wrapper {
|
|
height: 100px;
|
|
width: 100px;
|
|
text-align: center;
|
|
}
|
|
|
|
img {
|
|
height: 100%;
|
|
width: 100px;;
|
|
}
|
|
|
|
img, .card {
|
|
transition: 0.5s ease-out;
|
|
}
|
|
</style>
|