aboutsummaryrefslogtreecommitdiff
path: root/src/pages/boards.astro
blob: 8120bd2d90d5c60fc089b4b4d8f38e708085f950 (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
---
import '../styles/blackbox.css'
import Default from '../layouts/Default.astro';
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;
    --ml: 0px;
  }
</style>