mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-19 21:15:21 +00:00
realign with 0.15
This commit is contained in:
24
routes/_layout.html
Normal file
24
routes/_layout.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<Nav segment={child.segment}/>
|
||||
|
||||
<main>
|
||||
<svelte:component this={child.component} {...child.props}/>
|
||||
</main>
|
||||
|
||||
<style>
|
||||
main {
|
||||
position: relative;
|
||||
max-width: 56em;
|
||||
background-color: white;
|
||||
padding: 2em;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
Nav: '../components/Nav.html'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user