blob: f10fa3a35b473bf0fee8da53ea8944866c3aaf98 (
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
|
---
import Default from '../layouts/Default.astro';
import '../styles/blackbox.css'
import { api } from '../lib/api.ts';
const data = await api('get', 'boards');
const boards: string[] = await data.json();
---
<Default title="Boards">
<h1>Boards</h1>
<div class="blackbox">
<ul>
{boards.map((board) => (
<li><a href=`/board/${board}`>{board}</a></li>
))}
</ul>
</div>
</Default>
<style is:inline>
:root {
--wdt: 300px;
}
</style>
|