2023-03-05 00:11:34 +00:00
|
|
|
---
|
|
|
|
export interface Props {
|
2023-03-09 10:44:18 +00:00
|
|
|
title: string
|
|
|
|
link: string
|
|
|
|
image: string
|
2023-03-05 00:11:34 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
const { image, link, title } = Astro.props
|
2023-03-05 00:11:34 +00:00
|
|
|
|
2023-03-14 20:49:13 +00:00
|
|
|
const icon: string = `background-image: url('/assets/technologies/${image}.webp')`
|
2023-03-05 00:11:34 +00:00
|
|
|
---
|
2023-03-09 10:44:18 +00:00
|
|
|
|
2023-03-05 00:11:34 +00:00
|
|
|
<a href={link} target="_blank" rel="noopener noreferrer" aria-label={title}>
|
2023-03-09 10:44:18 +00:00
|
|
|
<article>
|
|
|
|
<div style={icon}>
|
2023-03-15 16:03:50 +00:00
|
|
|
<span>
|
|
|
|
<h2>{title}</h2>
|
|
|
|
</span>
|
2023-03-09 10:44:18 +00:00
|
|
|
</div>
|
|
|
|
</article>
|
2023-03-05 00:11:34 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<style>
|
2023-03-15 16:03:50 +00:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
article {
|
2023-03-05 20:58:01 +00:00
|
|
|
background-color: var(--c-darkergray);
|
|
|
|
border-color: var(--c-darkgray);
|
2023-03-05 00:11:34 +00:00
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
|
|
|
transition: transform var(--speed) var(--ease);
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
2023-03-05 01:00:36 +00:00
|
|
|
line-height: 100px;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
|
|
|
article:hover {
|
2023-03-05 00:11:34 +00:00
|
|
|
transform: scale(var(--hover-scale));
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
|
|
|
article > div {
|
2023-03-14 17:55:58 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-03-05 00:11:34 +00:00
|
|
|
background-size: contain;
|
2023-03-05 01:00:36 +00:00
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
2023-03-05 00:11:34 +00:00
|
|
|
|
2023-03-15 16:03:50 +00:00
|
|
|
article:hover span {
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
background-color: var(--c-darkgray);
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
opacity: 90%;
|
|
|
|
}
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
article:hover h2 {
|
2023-03-15 16:03:50 +00:00
|
|
|
margin: 0;
|
|
|
|
display: inline-flex;
|
|
|
|
font-weight: bold;
|
2023-03-05 00:11:34 +00:00
|
|
|
color: white;
|
|
|
|
font-size: 18px;
|
2023-03-05 01:00:36 +00:00
|
|
|
line-height: 150%;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
2023-03-05 00:11:34 +00:00
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
article h2 {
|
2023-03-05 00:11:34 +00:00
|
|
|
display: none;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
2023-03-15 16:03:50 +00:00
|
|
|
|
|
|
|
article span {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
</style>
|