about summary refs log tree commit diff
path: root/components/GoogleDriveLink.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-29 22:34:01 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-29 22:34:01 +0100
commit8afae8ea960b7162df851ad5946f4bbebd729ff3 (patch)
treea427b953476963ff4615b33843990453c182b94d /components/GoogleDriveLink.vue
parentd81efb1e043180885bfb6ea9eac173a86fea6aad (diff)
downloadpuszcza-8afae8ea960b7162df851ad5946f4bbebd729ff3.tar.gz
puszcza-8afae8ea960b7162df851ad5946f4bbebd729ff3.zip
Basic template
Diffstat (limited to 'components/GoogleDriveLink.vue')
-rw-r--r--components/GoogleDriveLink.vue60
1 files changed, 60 insertions, 0 deletions
diff --git a/components/GoogleDriveLink.vue b/components/GoogleDriveLink.vue
new file mode 100644
index 0000000..729c03d
--- /dev/null
+++ b/components/GoogleDriveLink.vue
@@ -0,0 +1,60 @@
+<template>
+  <div class="google-drive-link">
+    <div class="image">
+      <img src="/assets/google-drive.png" alt="Drive" />
+    </div>
+    <p>
+      {{ text }}
+    </p>
+    <a :href="link">
+      <plain-button text="Przejdź" />
+    </a>
+  </div>
+</template>
+
+<script>
+import PlainButton from './Buttons/PlainButton'
+
+export default {
+  name: 'GoogleDriveLink',
+  components: { PlainButton },
+  props: {
+    text: {
+      type: String,
+      required: true
+    },
+    link: {
+      type: String,
+      required: true
+    }
+  }
+}
+</script>
+
+<style scoped>

+.google-drive-link {
+  background: white;
+  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
+
+  padding: 20px;
+
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+
+  min-width: 200px;
+}
+
+.google-drive-link img {
+  display: block;
+  margin: auto;
+}
+
+.google-drive-link .image {
+  background: #f3f3f3;
+  border-radius: 50px;
+  padding: 20px;
+  margin: 20%;
+}
+</style>