]> git.r.bdr.sh - rbdr/forum/blobdiff - app/components/forum_list/forum_list.svelte
Update to SvelteKit
[rbdr/forum] / app / components / forum_list / forum_list.svelte
diff --git a/app/components/forum_list/forum_list.svelte b/app/components/forum_list/forum_list.svelte
deleted file mode 100644 (file)
index 5ce4dc1..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<script>
-  import { _ } from 'svelte-i18n';
-  import { forums } from '../../stores/forums.js';
-  import ErrorBlock from '../error_block/error_block.svelte';
-</script>
-
-<nav title="List of Forums">
-  {#if !$forums.length}
-    <ErrorBlock message={$_('forum_list.error.unavailable')} />
-  {/if}
-  <ul>
-    {#each $forums as forum}
-      <li>
-        <a href="/f/{forum.id}">
-          <span aria-hidden="true" class="navigation-glyph {forum.glyph}">{forum.glyph}</span>
-          <span class="navigation-label">{$_(forum.label)}</span>
-        </a>
-      </li>
-    {/each}
-  </ul>
-</nav>
-
-<style>
-  nav {
-    grid-column: col-start 1;
-    grid-row: 2;
-    border-right: 1px solid black;
-  }
-
-  ul {
-    padding: 0;
-  }
-
-  li {
-    display: block;
-    text-align: left;
-    margin-bottom: 20px;
-  }
-
-  .navigation-glyph {
-    font-size: 1.5rem;
-    display: block;
-  }
-
-  .☽ {
-    font-size: 2rem;
-  }
-
-  a {
-    text-decoration: none;
-  }
-</style>