blob: 76958607610551c51118ba9081ab36e1517ae268 (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
---
export interface Props {
kaigirokuHref?: string;
dougaHref?: string;
}
const { kaigirokuHref, dougaHref } = Astro.props;
const mada = kaigirokuHref ? '' : '(まだ公開されていません)';
---
<div id="kaigiroku" class="kaigiroku-links">
{kaigirokuHref ? (
<a href={kaigirokuHref} rel="noopener noreferrer" target="_blank" class="kgk-link">
📄 会議録
</a>
) : (
<span class="kgk-link kgk-pending">📄 会議録{mada}</span>
)}
{dougaHref && (
<a href={dougaHref} rel="noopener noreferrer" target="_blank" class="kgk-link">
🎞️ 動画
</a>
)}
</div>
<style>
.kaigiroku-links {
display: flex;
gap: 0.5rem;
margin-bottom: 0.25rem;
flex-wrap: wrap;
}
.kgk-link {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.3rem 0.75rem;
border-radius: 100px;
font-size: 0.85em;
font-weight: 500;
text-decoration: none;
background: var(--sl-color-accent-low);
color: var(--sl-color-accent-high);
transition: background 0.15s;
}
.kgk-link:hover {
background: var(--sl-color-accent);
color: #fff;
}
.kgk-pending {
opacity: 0.5;
}
</style>
|