X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/24be7b5399ae4162702ad9a1f17b5711922a2da4..862a5f9cdbbda522c608ea63c1e296e81f44de10:/app/forum.svelte

diff --git a/app/forum.svelte b/app/forum.svelte
index 038f176..d2a6e1b 100644
--- a/app/forum.svelte
+++ b/app/forum.svelte
@@ -1,8 +1,15 @@
 <script>
   import LightRouter from 'lightrouter';
 
+  // Initialize localization
+
+  import './config/i18n';
+
+  // Global components
+
   import ForumList from './components/forum_list/forum_list.svelte';
   import Header from './components/header/header.svelte';
+  import Footer from './components/footer/footer.svelte';
 
   // Routed Components
   import Author from './components/author/author.svelte';
@@ -20,14 +27,15 @@
   const setRoute = function setRoute(targetPage) {
 
     return function (routerParams) {
+
       params = routerParams;
       page = targetPage;
-    }
-  }
+    };
+  };
 
   const router = new LightRouter({
     routes: {
-      '': () => page = Home,
+      '': () => (page = Home) && true,
       'f/{id}': setRoute(TopicIndex),
       'g/{id}': setRoute(TopicIndex),
       'a/{id}': setRoute(Author),
@@ -42,5 +50,14 @@
 </script>
 
 <Header />
-<svelte:component this={ page } params={ params } />
+<main>
+  <svelte:component this={ page } params={ params } />
+</main>
 <ForumList />
+<Footer />
+
+<style>
+  main {
+    grid-column: col-start 2 / span 11;
+  }
+</style>
