Skip to content

Commit

Permalink
feat: add default layout, TheFooter, TheHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisbelt committed Sep 29, 2019
1 parent 0e7f9b4 commit 6eb1798
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/TheFooter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<nav class="TheFooter">
<NuxtLink to="/"></NuxtLink>
</nav>
</template>

<script>
export default {
name: 'TheFooter'
}
</script>
11 changes: 11 additions & 0 deletions components/TheHeader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<nav class="TheHeader">
<NuxtLink to="/"></NuxtLink>
</nav>
</template>

<script>
export default {
name: 'TheHeader'
}
</script>
18 changes: 18 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<div>
<TheHeader />
<Nuxt />
<TheFooter />
</div>
</template>

<script>
import TheHeader from '~/components/TheHeader'
export default {
name: 'Default',
components: {
TheHeader,
TheFooter: () => import('~/components/TheFooter')
}
}
</script>

0 comments on commit 6eb1798

Please sign in to comment.