]> git.r.bdr.sh - rbdr/forum/blobdiff - src/routes/__layout.svelte
Add svelte check
[rbdr/forum] / src / routes / __layout.svelte
index b856e214daa128a99772412475154de333fefff4..007781075796fd16a0ca4aba114d78676e6ebc56 100644 (file)
@@ -1,5 +1,5 @@
-<script>
-  import "../app.css";
+<script lang="ts">
+       import '../app.css';
        import '$lib/i18n';
 
        import { isLoading } from 'svelte-i18n';
        import '$lib/i18n';
 
        import { isLoading } from 'svelte-i18n';
        <Loader />
 {:else}
        <Header />
        <Loader />
 {:else}
        <Header />
-       <main>
+       <main class="col-start-2 col-span-11">
                <slot />
        </main>
                <slot />
        </main>
-  <nav title={$_('forum_list.title')}>
-    {#if $store.loading}
-      <Loader />
-    {/if}
-    {#if $store.error}
-      <ErrorBlock message={$_('forum_list.error.unavailable')} />
-    {/if}
-    {#if forums}
-      <ForumList forums={forums} />
-    {/if}
-  </nav>
+       <nav
+               class="col-start-1 row-start-2 border-r-2 border-2-black border-solid"
+               title={$_('forum_list.title')}
+       >
+               {#if $store.loading}
+                       <Loader />
+               {/if}
+               {#if $store.error}
+                       <ErrorBlock message={$_('forum_list.error.unavailable')} />
+               {/if}
+               {#if forums}
+                       <ForumList {forums} />
+               {/if}
+       </nav>
        <Footer />
 {/if}
        <Footer />
 {/if}
-
-<style>
-       nav {
-               grid-column: col-start 1;
-               grid-row: 2;
-               border-right: 1px solid black;
-       }
-</style>