diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-28 23:22:15 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-28 23:22:15 +0300 |
commit | 9d952483f250a97cbeab4061fa1c4e68341b330f (patch) | |
tree | 9d094911dc5178db9375eaa661e7f4bf0d5bf2cc /src/pages/boards.astro | |
parent | 35b06b4fc851192916e000ad5e7e2f458846448c (diff) |
posting thread and image works
Diffstat (limited to 'src/pages/boards.astro')
-rw-r--r-- | src/pages/boards.astro | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/pages/boards.astro b/src/pages/boards.astro index ab3158f..f10fa3a 100644 --- a/src/pages/boards.astro +++ b/src/pages/boards.astro @@ -1,32 +1,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> - <div class="blackbox"> - <h3>Boards</h3> +<Default title="Boards"> + <h1>Boards</h1> + <div class="blackbox"> <ul> {boards.map((board) => ( - <li><a href=`/board/${board}`>{board}</a></li> + <li><a href=`/board/${board}`>{board}</a></li> ))} </ul> </div> </Default> -<style> - .blackbox { - width: 300px; - height: 210px; - border: 10px solid black; - padding: 10px; - padding-top: 0px; - margin: 10px; - margin-left: 0px; - background-color: white; +<style is:inline> + :root { + --wdt: 300px; } </style> |