Fix layout of courses list page
This commit is contained in:
@@ -19,10 +19,12 @@
|
||||
{#if !['login', 'signup'].includes($page.path.replace('/', ''))}
|
||||
<Navigation {segment} />
|
||||
{/if}
|
||||
<slot />
|
||||
{#if $page.path.includes('courses')}
|
||||
<Apps />
|
||||
{/if}
|
||||
<div class="flex justify-between">
|
||||
<slot />
|
||||
{#if $page.path.includes('courses')}
|
||||
<Apps />
|
||||
{/if}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<Footer />
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import { stores } from "@sapper/app";
|
||||
import PageNav from "../components/PageNav/index.svelte";
|
||||
import Courses from "../components/Courses/index.svelte";
|
||||
import { stores } from '@sapper/app';
|
||||
import PageNav from '../components/PageNav/index.svelte';
|
||||
import Courses from '../components/Courses/index.svelte';
|
||||
|
||||
const { page } = stores();
|
||||
let tab = "";
|
||||
let tab = '';
|
||||
|
||||
$: tab = $page.query.tab || "mine";
|
||||
$: tab = $page.query.tab || 'mine';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
Reference in New Issue
Block a user