blob: 3a1cd20a90c39cbb05790f257eda20c0d6c1ba45 (
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) => (
<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>
|