comfycamp/src/components/Tag.astro

27 lines
443 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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" alt="Тег" />
{name}
</a>
<style>
.tag {
width: fit-content;
font-size: 10px;
background-color: #323232;
padding: 2px 8px;
border-radius: 15px;
display: flex;
gap: 5px;
align-items: center;
color: #ddd;
}
</style>