forked from telepenin/cloudlinux-doc-theme
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Footer.vue
106 lines (94 loc) · 2.44 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
<template>
<div class="footer">
<!-- <div class="sidebar-width"></div> -->
<div>
<a :href="$site.themeConfig.cloudlinuxSite">
<img v-if="$site.themeConfig.repo == 'cloudlinux/kuberlogic-doc'" :src="$site.themeConfig.footerCustomLogo" :alt="$site.themeConfig.footerCustomAltText" style="height: 50px;">
<img v-else src="./we-are-cloudlinux.svg" alt="We are Cloudlinux">
</a>
</div>
<div v-if="$site.themeConfig.repo != 'cloudlinux/kuberlogic-doc'" class="footer-company-title">{{ year }}. CloudLinux Inc</div>
<div>
<div v-for="item in $themeLocaleConfig.bottomLinks">
<a :href="item.url" target="_blank">{{ item.text }}</a>
</div>
</div>
<div class="social">
<span class="footer-social-text">{{ $themeLocaleConfig.stayInTouch }}</span>
<a v-for="item in $site.themeConfig.social" :href="item.url" target="_blank">
<img :src="item.logo" class="footer-social-logo">
</a>
</div>
</div>
</template>
<script>
export default {
name: 'Footer',
computed: {
year() {
return (new Date()).getFullYear();
}
},
}
</script>
<style lang="stylus" scoped>
@require './styles/config.styl'
.footer
margin-left $sidebarWidth
color #314659
text-align center
border-top 1px solid $borderColor
height 102px
// width 100%
background #fff
display flex
flex-flow row wrap
justify-content space-around
align-items center
margin-right 20px
// margin-left 2rem
div
margin 5px
font-size 0.8rem
display inline-flex
a
display inline-block
margin-left 10px
&:hover
text-decoration underline
img
border none
cursor pointer
.footer-company-title
font-size 0.8rem
color #d8d8d8
.social
display flex
justify-content center
align-items center
padding-left 20px
.footer-social-text
margin-right 13px
line-height 20px
padding-left 12px
border-left 1px solid #ccc
a
margin 7px -5px 0 0
.footer-social-logo
height 42px
width auto
.sidebar-width
width $sidebarWidth + 2rem
@media (max-width: $MQTablet)
.footer
height 140px
@media (max-width: $MQMobile)
.footer
justify-content center
margin-left 0
height 140px
div
display flex
.footer-social-text
border none
</style>