From 9ad43ed4d41906af8ae33160b30d6cd6a6ae9bc0 Mon Sep 17 00:00:00 2001 From: kartofen Date: Wed, 26 Oct 2022 18:03:58 +0300 Subject: prod version --- src/pages/board/[board].astro | 2 +- src/pages/boards.astro | 27 ---------- src/pages/index.astro | 120 ++++++++---------------------------------- 3 files changed, 24 insertions(+), 125 deletions(-) delete mode 100644 src/pages/boards.astro (limited to 'src/pages') diff --git a/src/pages/board/[board].astro b/src/pages/board/[board].astro index de76964..69959aa 100644 --- a/src/pages/board/[board].astro +++ b/src/pages/board/[board].astro @@ -19,7 +19,7 @@ const threads: Thread[] = await data.json();

- {board} + {board}

diff --git a/src/pages/boards.astro b/src/pages/boards.astro deleted file mode 100644 index 8120bd2..0000000 --- a/src/pages/boards.astro +++ /dev/null @@ -1,27 +0,0 @@ ---- -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(); ---- - - -

Boards

- -
-
    - {boards.map((board) => ( -
  • {board}
  • - ))} -
-
-
- - diff --git a/src/pages/index.astro b/src/pages/index.astro index 4dfffe3..8120bd2 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,101 +1,27 @@ --- -import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.astro'; ---- - - -
-

Welcome to Astro

-

- Check out the src/pages directory to get started.
- Code Challenge: Tweak the "Welcome to Astro" message above. -

- -
-
- - -- cgit v1.2.3