2021-06-01 16:14:24 +02:00
|
|
|
<script lang="ts">
|
2021-06-02 18:30:20 +02:00
|
|
|
import {locals} from "../ts/stores";
|
2021-11-20 18:02:00 +01:00
|
|
|
import {route, hasRoute, hasAnyRoute} from "../../common/Routing";
|
2021-11-21 13:08:57 +01:00
|
|
|
import BaseTemplate from "./templates/BaseTemplate.svelte";
|
2021-06-01 16:14:24 +02:00
|
|
|
</script>
|
|
|
|
|
2021-11-21 13:08:57 +01:00
|
|
|
<BaseTemplate title="{$locals.app.name}" h1={false}>
|
2021-06-02 18:30:20 +02:00
|
|
|
<div class="panel">
|
2021-11-08 00:24:53 +01:00
|
|
|
<h1>swaf - Svelte Web Application Framework</h1>
|
2021-06-02 18:30:20 +02:00
|
|
|
<p>Welcome to {$locals.app.name}!</p>
|
|
|
|
|
2021-11-20 18:02:00 +01:00
|
|
|
{#if hasAnyRoute('tests', 'design')}
|
2021-06-02 18:30:20 +02:00
|
|
|
<nav>
|
|
|
|
<ul>
|
2021-11-20 18:02:00 +01:00
|
|
|
{#if hasRoute('tests')}
|
2021-06-02 18:30:20 +02:00
|
|
|
<li><a href={route('tests')}>Frontend tests</a></li>
|
2021-11-20 18:02:00 +01:00
|
|
|
{/if}
|
|
|
|
{#if hasRoute('design')}
|
2021-11-08 00:24:53 +01:00
|
|
|
<li><a href={route('design')}>Design test</a></li>
|
2021-11-20 18:02:00 +01:00
|
|
|
{/if}
|
2021-06-02 18:30:20 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2021-11-20 18:02:00 +01:00
|
|
|
{/if}
|
2021-06-02 18:30:20 +02:00
|
|
|
</div>
|
2021-11-21 13:08:57 +01:00
|
|
|
</BaseTemplate>
|