about summary refs log tree commit diff
path: root/src/components/Footer.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-29 15:36:31 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-29 15:36:31 +0200
commit69512e87650730fe7668da80093aafb9eaf87468 (patch)
tree77ad7fb8fb227232cc0ba2ed270439001b8dfa09 /src/components/Footer.vue
parent6695e07be17768dd8569a60e09a6ac2823eb2273 (diff)
downloadpuszcza-69512e87650730fe7668da80093aafb9eaf87468.tar.gz
puszcza-69512e87650730fe7668da80093aafb9eaf87468.zip
Add ContactView
Diffstat (limited to 'src/components/Footer.vue')
-rw-r--r--src/components/Footer.vue14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/components/Footer.vue b/src/components/Footer.vue
index 63f8e9a..8288667 100644
--- a/src/components/Footer.vue
+++ b/src/components/Footer.vue
@@ -1,5 +1,5 @@
 <template>
-  <div class="footer">
+  <div class="footer" :style="style">
     <div class="map">
       <div class="routes">
         <router-link v-for="route in routes" :key="route.name" :to="route.path">{{route.name}}</router-link>
@@ -31,14 +31,22 @@
 export default {
   props: {
     routes: Array,
-    specialRoutes: Array
+    specialRoutes: Array,
+    color: {
+      type: String,
+      default: "#507b34"
+    }
+  },
+  computed: {
+    style() {
+      return `background-color: ${this.color}`;
+    }
   }
 };
 </script>
 
 <style scoped>
 .footer {
-  background-color: #507b34;
   color: #ffffff;
   min-height: 175px;
   width: 100vw;