Alice Gaudon
6aa37eb9e4
Reorganize views into new "assets" folder structure
Turn locals into a store so locals don't have to be passed through files that don't need them
Some fixes to previous commit (esm) 82ab0b963c
Remove afs in favor of fs.promises (renamed afs.exists to Utils.doesFileExist
Rename Utils.readdirRecursively to Utils.listFilesRecursively
35 lines
844 B
Svelte
35 lines
844 B
Svelte
<script>
|
|
export let title = undefined;
|
|
export let description = undefined;
|
|
export let refresh_after = undefined;
|
|
</script>
|
|
|
|
<style>
|
|
.body {
|
|
border: 1px solid blue;
|
|
}
|
|
</style>
|
|
|
|
<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>
|