about summary refs log tree commit diff
path: root/src/components/Footer.vue
blob: 693f8c299c410e942c0c6357f8e364dd951249a8 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template>
  <div class="footer">
    <div class="map">
      <div class="routes">
        <router-link v-for="route in routes" :key="route.name" :to="route.path">{{route.name}}</router-link>
      </div>
      <div class="routes">
        <router-link
          v-for="route in specialRoutes"
          :key="route.name"
          :to="route.path"
        >{{route.name}}</router-link>
      </div>
    </div>
    <div class="space"></div>
    <div class="author">
      <p>19 Poznańska Drużyna Harcerzy Puszcza</p>
      <div class="social">
        <a href="https://github.com/19pdh/" target="_blank" rel="”noopener”">
          <img class="icon" src="/assets/social/github.png" alt="Github" />
        </a>
        <a href="https://www.facebook.com/19pdhpuszcza/" target="_blank" rel="”noopener”">
          <img class="icon" src="/assets/social/facebook.png" alt="Facebook" />
        </a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    routes: Array,
    specialRoutes: Array
  }
};
</script>

<style scoped>
.footer {
  background-color: #507b34;
  color: #ffffff;
  min-height: 175px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: center;

  padding: 0 15vw;
}

.map {
  display: flex;
  flex-direction: row;

  text-align: left;

  /* margin-right: 100px; */
}

.map a {
  text-decoration: none;
  color: #ffffff;
  margin: 5px;
}

.routes {
  display: flex;
  flex-direction: column;
}

.icon {
  width: 30px;
  height: 30px;

  margin: 0 5px;
}

.space {
  flex: 1;
  max-width: 500px;
}

@media (max-width: 900px) {
  .footer {
    padding: 20px 10vw 20px 10vw;
    flex-direction: column;

    justify-content: center;
  }

  .map {
    text-align: center;
    margin-bottom: 10px;
  }

  .space {
    height: 1px;
    width: 100%;
    flex: none;
    background-color: #ffffff;
  }

  .author {
    margin-top: 10px;
  }
}
</style>