mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-18 20:55:05 +00:00
.html -> .svelte
This commit is contained in:
22
src/routes/_layout.svelte
Normal file
22
src/routes/_layout.svelte
Normal 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>
|
||||
Reference in New Issue
Block a user