feat: add tag component

Changed files
+15 -1
src
components
pages
+14
src/components/Tag.astro
···
···
+
---
+
interface Props {
+
text: string
+
color: string
+
}
+
+
const { text, color } = Astro.props
+
const bgColorCss = "var(" + color + "-950)"
+
const borderColorCss = "var(" + color + "-800)"
+
---
+
<span class="p-0.5 pl-2 pr-2 border text-xs rounded-full scale-95 font-extrabold"
+
style={`background:${bgColorCss};border-color:${borderColorCss};`}>
+
{text}
+
</span>
+1 -1
src/pages/index.astro
···
<Layout>
<section class="h-[50%] grid-cols-5 grid p-24 pt-48 gap-16">
<Profile/>
-
<div class="col-span-3 gap-16 flex flex-col">
<Contributions/>
<Pinned/>
</div>
···
<Layout>
<section class="h-[50%] grid-cols-5 grid p-24 pt-48 gap-16">
<Profile/>
+
<div class="col-span-3 gap-12 flex flex-col">
<Contributions/>
<Pinned/>
</div>