blob: be9a38c8375168c72116889611f6db477f7fda5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
---
interface Props {
keywords: string[];
}
const { keywords } = Astro.props;
---
<p role="list">
{
keywords.map((x, i) => (
<>{i > 0 && " "}<span role="listitem"><a href={`/blog/keywords/${x}`}>#<b
itemprop="keywords"
>{x}</b></a></span></>
))
}
</p>
<style>
p {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
gap: calc(var(--size-0) * 1em);
margin-block: calc(var(--size-0) * 1em);
margin-inline: auto;
& > * > * {
border-radius: calc(infinity * 1px);
background-color: color-mix(
in srgb,
var(--color-active) 10%,
transparent
);
color: var(--color-active);
padding-inline: calc(var(--size-2) * 1em);
}
}
</style>
|