about summary refs log tree commit diff
path: root/components
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-03 19:14:44 +0100
committerGitHub <noreply@github.com>2020-01-03 19:14:44 +0100
commit6a87f4d381bb43bea3a2b64ea930d4f46783e22c (patch)
tree7e14c6c0ee06edcbc1dd3084d5801ab69be1ee28 /components
parentd81efb1e043180885bfb6ea9eac173a86fea6aad (diff)
parent1b74216fc4afa740991dcc9986eb6843c5b07a59 (diff)
downloadpuszcza-6a87f4d381bb43bea3a2b64ea930d4f46783e22c.tar.gz
puszcza-6a87f4d381bb43bea3a2b64ea930d4f46783e22c.zip
Merge pull request #22 from 19pdh/develop
Google drive link
Diffstat (limited to 'components')
-rw-r--r--components/GoogleDriveLink.stories.js19
-rw-r--r--components/GoogleDriveLink.vue112
-rw-r--r--components/JoinUs.vue4
-rw-r--r--components/Posts/PostLink.vue2
4 files changed, 134 insertions, 3 deletions
diff --git a/components/GoogleDriveLink.stories.js b/components/GoogleDriveLink.stories.js
new file mode 100644
index 0000000..37d67e8
--- /dev/null
+++ b/components/GoogleDriveLink.stories.js
@@ -0,0 +1,19 @@
+import { storiesOf } from '@storybook/vue'
+import { center } from '../.storybook/decorators'
+
+import GoogleDriveLink from './GoogleDriveLink'
+
+const googleDriveLink = {
+  text: 'Test',
+  link: 'https://drive.google.com/u/1'
+}
+
+storiesOf('GoogleDriveLink', module)
+  .addDecorator(center)
+  .add('default', () => {
+    return {
+      components: { GoogleDriveLink },
+      template: `<google-drive-link :text="text" :link="link" />`,
+      data: () => googleDriveLink
+    }
+  })
diff --git a/components/GoogleDriveLink.vue b/components/GoogleDriveLink.vue
new file mode 100644
index 0000000..c54c630
--- /dev/null
+++ b/components/GoogleDriveLink.vue
@@ -0,0 +1,112 @@
+<template>
+  <div class="google-drive-link">
+    <div class="image">
+      <img src="/assets/google-drive.png" alt="Drive" />
+    </div>
+    <div class="text">
+      <p v-html="text"></p>
+    </div>
+    <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;
+  margin: 10px;
+
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+}
+
+.google-drive-link .text {
+  margin: 30px 0;
+  font-size: 18px;
+}
+
+.google-drive-link button,
+.google-drive-link a {
+  width: 100%;
+  display: block;
+  margin: auto;
+  text-decoration: none;
+  max-width: 300px;
+}
+
+.google-drive-link img {
+  display: block;
+  margin: auto;
+  width: 40px;
+}
+
+.google-drive-link .image {
+  background: #f3f3f3;
+  border-radius: 50px;
+  padding: 15px;
+  margin: 0 20%;
+}
+
+@media (min-width: 530px) {
+  .google-drive-link {
+    flex-direction: row;
+  }
+
+  .google-drive-link .text {
+    margin: 0 10px;
+    flex: 1;
+    text-align: left;
+    font-size: 16px;
+  }
+
+  .google-drive-link .image {
+    margin: 0;
+    margin-right: 10px;
+    padding: 10px;
+  }
+
+  .google-drive-link img {
+    width: 30px;
+  }
+
+  .google-drive-link a,
+  .google-drive-link button {
+    margin-right: 0;
+  }
+
+  .google-drive-link a {
+    width: 20%;
+  }
+}
+
+@media (min-width: 960px) {
+  .google-drive-link {
+    width: 100%;
+  }
+}
+</style>
diff --git a/components/JoinUs.vue b/components/JoinUs.vue
index 8c8911d..a219d16 100644
--- a/components/JoinUs.vue
+++ b/components/JoinUs.vue
@@ -26,7 +26,7 @@ export default {
 
   padding: 80px 20%;
 
-  background-image: url('/assets/bg.jpg');
+  background-image: url('/assets/bg.webp');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
@@ -83,4 +83,4 @@ export default {
     padding: 80px 20px;
   }
 }
-</style>
\ No newline at end of file
+</style>
diff --git a/components/Posts/PostLink.vue b/components/Posts/PostLink.vue
index 54cd934..8d0a669 100644
--- a/components/Posts/PostLink.vue
+++ b/components/Posts/PostLink.vue
@@ -44,7 +44,7 @@ export default {
   box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
   background: #ffffff;
   text-align: left;
-  transition: transform 300ms ease-in-out;
+  transition: all 300ms ease-in-out;
 }
 
 .post-link:hover {