diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-18 23:19:10 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-18 23:19:10 +0900 |
| commit | 5bc1e63756cae6974430f1e6cf1a4d5e88f5b9cc (patch) | |
| tree | 46ab1a541403d680fe1719da941d7702159fd453 /src/components/KaigirokuDougaLink.astro | |
Initial commit
Diffstat (limited to 'src/components/KaigirokuDougaLink.astro')
| -rw-r--r-- | src/components/KaigirokuDougaLink.astro | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/components/KaigirokuDougaLink.astro b/src/components/KaigirokuDougaLink.astro new file mode 100644 index 0000000..7695860 --- /dev/null +++ b/src/components/KaigirokuDougaLink.astro @@ -0,0 +1,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> |
