/
Footer.vue
265 lines (229 loc) · 6.22 KB
/
Footer.vue
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<template>
<footer
class="footer"
:style="{ color: textColor }"
>
<div class="footer__wrapper">
<div class="footer__inner">
<LandingEpicmaxBanner style="margin-bottom: 2rem;" />
<div class="footer__buttons">
<va-button
class="footer__buttons__button"
href="https://epicmax.co/about"
target="blank"
preset="plain"
size="large"
>
<template #prepend>
<va-icon
class="button-icon"
:component="IconEpicmaxRaw"
/>
</template>
{{ $t("landing.footer.buttons.epicmax") }}
</va-button>
<va-button
class="footer__buttons__button"
href="https://github.com/epicmaxco/vuestic-admin"
target="blank"
preset="plain"
size="large"
>
<template #prepend>
<va-icon
class="button-icon"
:component="IconAdminRaw"
/>
</template>
{{ $t("landing.footer.buttons.admin") }}
</va-button>
<va-button
class="footer__buttons__button"
href="https://github.com/epicmaxco/epic-spinners"
target="blank"
preset="plain"
size="large"
>
<template #prepend>
<va-icon
class="button-icon"
:component="IconSpinnersRaw"
/>
</template>
{{ $t("landing.footer.buttons.spinners") }}
</va-button>
</div>
<div class="footer__social">
<va-button
class="footer__social__item"
href="https://github.com/epicmaxco/vuestic-ui/"
aria-label="go to the vuestic ui github page"
target="blank"
preset="plain"
>
<va-icon class="mdi mdi-github" />
</va-button>
<va-button
class="footer__social__item"
href="https://discord.gg/u7fQdqQt8c"
aria-label="go to the vuestic ui discord channel"
target="blank"
preset="plain"
>
<va-icon class="mdi mdi-discord" />
</va-button>
<va-button
class="footer__social__item"
href="https://www.facebook.com/epicmaxco/"
aria-label="go to the vuestic ui facebook page"
target="blank"
preset="plain"
>
<va-icon class="mdi mdi-facebook" />
</va-button>
<va-button
class="footer__social__item"
href="https://twitter.com/epicmaxco"
aria-label="go to the vuestic ui twitter page"
target="blank"
preset="plain"
>
<va-icon class="mdi mdi-twitter" />
</va-button>
</div>
<div class="footer__subtitle">
© {{ currentYear }} {{ $t("landing.footer.text") }}
<a
:style="{ color: primaryColor }"
href="mailto:hello@epicmax.co"
>
hello@epicmax.co
</a>
</div>
</div>
<!-- <LandingNewsBanner />-->
</div>
</footer>
</template>
<script lang="ts" setup>
import {markRaw} from 'vue'
import { useColors, useElementTextColor } from 'vuestic-ui'
import IconEpicmax from './icons/IconEpicmax.vue'
import IconAdmin from './icons/IconAdmin.vue'
import IconSpinners from './icons/IconSpinners.vue'
import LandingEpicmaxBanner from './EpicmaxBanner.vue'
// import LandingNewsBanner from './NewsBanner.vue'
const { getComputedColor } = useColors()
const textColor = useElementTextColor('background-primary')
const primaryColor = getComputedColor('primary')
const currentYear = new Date().getFullYear()
const IconEpicmaxRaw = markRaw(IconEpicmax)
const IconAdminRaw = markRaw(IconAdmin)
const IconSpinnersRaw = markRaw(IconSpinners)
</script>
<style lang="scss" scoped>
@import "@/assets";
.footer {
width: 100%;
position: relative;
padding-top: 4.5rem;
background: var(--va-background-secondary);
// sm
@include sm(padding-top, 1rem);
&__wrapper {
@include wrapper();
}
&__inner {
@include row-flex();
align-items: center;
}
&__image {
@include col();
@include size(12);
display: flex;
align-items: center;
justify-content: center;
padding-top: 3.5rem;
}
&__subtitle {
@include col();
@include size(12);
@include text-font();
line-height: 1.5;
padding: 3rem 0 4rem;
text-align: center;
// sm
@include sm(padding-top, 2rem);
@include sm(padding-bottom, 3rem);
}
&__buttons {
@include row-flex();
@include col();
@include size(8);
@include shift-left(2);
justify-content: center;
align-items: center;
margin: 0 auto;
&__button {
--va-button-font-size: 1.2rem;
@include col();
@include size(4);
@include button-font();
// md
@include md(margin-bottom, 1rem);
width: auto;
.va-icon {
margin-right: 0.75rem;
}
}
&__button + &__button {
margin-left: 3rem;
@include md(margin-left, 1rem);
@include sm(margin-left, 1rem);
}
}
&__social {
@include col();
@include size(12);
display: flex;
justify-content: center;
align-items: center;
padding-top: 3rem;
// sm
@include sm(padding-top, 1.5rem);
&__item {
font-weight: 600;
margin-left: 0.5rem;
margin-right: 0.5rem;
font-size: 1rem;
}
}
&__banner {
width: 100%;
display: flex;
justify-content: center;
&-content {
display: flex;
justify-content: space-between;
align-items: center;
width: calc(100% - 4rem);
background: linear-gradient(180.81deg, #182879 0.7%, #5b3c9b 99.3%);
max-width: 53rem;
margin: 0 2rem 2rem 2rem;
padding: 1.7rem;
color: #ffffff;
border-radius: 0.5rem;
@include sm(flex-direction, column);
@include sm(align-items, start);
}
&-text {
line-height: 1.5;
}
&-logo {
margin-left: 3rem;
@include sm(margin-top, 1rem);
@include sm(align-self, end);
}
}
}
</style>