about summary refs log tree commit diff
path: root/layouts/default.vue
blob: 58970ba5b0f2cdc7af0c99e2cf8059cb11e2305b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<template>
  <div id="app">
    <the-header :routes="routes" title="19 PDH Puszcza" logo="/assets/krajka-logo.svg" />
    <nuxt id="content" :key="$route.path" />
    <the-footer :routes="routes" />
  </div>
</template>

<script>
import TheHeader from '../components/TheHeader.vue'
import TheFooter from '../components/TheFooter.vue'

export default {
  name: 'app',
  components: { TheHeader, TheFooter },
  data() {
    return {
      routes: [
        { path: '/', name: 'Strona główna' },
        { path: '/download', name: 'Do pobrania' },
        { path: '/kontakt', name: 'Kontakt' },
        { path: '/kronika', name: 'Kronika' }
      ]
    }
  }
}
</script>

<style>
#app {
  text-align: center;
  align-items: center;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}
</style>