about summary refs log tree commit diff
path: root/components/GoogleDriveLink.vue
blob: 729c03d5c76d4066ca23a6032a479c9b29eda5d7 (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
<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>