<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';
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),
</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>