swaf/test/assets/views/layout.svelte

35 lines
844 B
Svelte
Raw Normal View History

2021-03-24 16:07:50 +01:00
<script>
export let title = undefined;
export let description = undefined;
export let refresh_after = undefined;
</script>
<style>
.body {
border: 1px solid blue;
}
</style>
2021-03-24 16:07:50 +01:00
<svelte:head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>{title || 'Undefined title'}</title>
{#if description}
<meta name="description" content={description}>
{/if}
<link rel="shortcut icon" type="image/png" href="/img/logox1024.png">
<link rel="shortcut icon" type="image/png" href="/img/logox128.png">
<link rel="shortcut icon" type="image/svg" href="/img/logo.svg">
{#if refresh_after}
<meta http-equiv="refresh" content={refresh_after}>
{/if}
</svelte:head>
<div class="body">
hello
<slot name="body"/>
</div>