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 />
+
+<style>
+ main {
+ grid-column: col-start 2 / span 11;
+ }
+</style>