.html -> .svelte

This commit is contained in:
Rich Harris
2019-02-08 19:39:25 -05:00
parent 11cca1abde
commit 47e6ead4eb
6 changed files with 213 additions and 0 deletions

22
src/routes/_layout.svelte Normal file
View File

@@ -0,0 +1,22 @@
<script>
import Nav from '../components/Nav.html';
export let child;
</script>
<style>
main {
position: relative;
max-width: 56em;
background-color: white;
padding: 2em;
margin: 0 auto;
box-sizing: border-box;
}
</style>
<Nav segment={child.segment}/>
<main>
<svelte:component this={child.component} {...child.props}/>
</main>