2024-03-03 14:05:33 +05:00
|
|
|
---
|
|
|
|
interface Props {
|
|
|
|
name: string
|
|
|
|
slug: string
|
|
|
|
}
|
|
|
|
const { name, slug } = Astro.props
|
|
|
|
---
|
|
|
|
|
|
|
|
<a class="tag" href={`/tags/${slug}`}>
|
|
|
|
<img width="12" height="12" src="/icons/tag.svg" />
|
|
|
|
{name}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.tag {
|
2024-03-11 19:59:21 +05:00
|
|
|
width: fit-content;
|
2024-03-03 14:05:33 +05:00
|
|
|
font-size: 10px;
|
|
|
|
background-color: #323232;
|
|
|
|
padding: 2px 8px;
|
|
|
|
border-radius: 15px;
|
|
|
|
display: flex;
|
|
|
|
gap: 5px;
|
|
|
|
align-items: center;
|
|
|
|
color: #ddd;
|
|
|
|
}
|
|
|
|
</style>
|