mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2025-09-07 03:00:45 +00:00
astro first commit
This commit is contained in:
33
src/components/Tag.astro
Normal file
33
src/components/Tag.astro
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
export type Props = {
|
||||
name: string
|
||||
href: string
|
||||
count: number
|
||||
}
|
||||
|
||||
const { name, href, count } = Astro.props
|
||||
---
|
||||
|
||||
<a {href}>
|
||||
<div>
|
||||
{name}
|
||||
<i>{count}</i>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
div {
|
||||
display: inline-block;
|
||||
margin: 0.25rem;
|
||||
padding: 0 0.5rem;
|
||||
background-color: var(--clr-primary);
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
i {
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
font-size: 0.85em;
|
||||
font-weight: bold;
|
||||
color: var(--clr-secondary);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user