blob: c54c630fdc93968d8fd5e630d4c3c5391c639f86 (
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
111
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>
|