This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree 3 files changed +80
-32
lines changed
3 files changed +80
-32
lines changed Original file line number Diff line number Diff line change 10
10
</li >
11
11
</ul >
12
12
</div >
13
-
13
+
14
14
<div class =" footer-right-wrap" >
15
15
<ul class =" copyright" v-if =" copyright" >
16
16
<li class =" copyright-item" v-for =" item in copyright" >
23
23
24
24
<script >
25
25
import {
26
- GithubIcon ,
27
26
FacebookIcon ,
28
- TwitterIcon ,
27
+ GithubIcon ,
28
+ GitlabIcon ,
29
+ GlobeIcon ,
29
30
InstagramIcon ,
30
- LinkedinIcon
31
+ LinkedinIcon ,
32
+ MailIcon ,
33
+ MessageSquareIcon ,
34
+ PhoneIcon ,
35
+ TwitterIcon
31
36
} from ' vue-feather-icons'
32
-
37
+
33
38
export default {
34
39
components: {
35
- GithubIcon,
36
40
FacebookIcon,
37
- TwitterIcon,
41
+ GithubIcon,
42
+ GitlabIcon,
43
+ GlobeIcon,
38
44
InstagramIcon,
39
- LinkedinIcon
45
+ LinkedinIcon,
46
+ MailIcon,
47
+ MessageSquareIcon,
48
+ PhoneIcon,
49
+ TwitterIcon
40
50
},
41
-
51
+
42
52
methods: {
43
53
getIconComponentName (contactType ) {
44
54
switch (contactType) {
45
- case ' github' :
46
- return ' GithubIcon'
47
55
case ' facebook' :
48
56
return ' FacebookIcon'
49
- case ' twitter' :
50
- return ' TwitterIcon'
57
+ case ' github' :
58
+ return ' GithubIcon'
59
+ case ' gitlab' :
60
+ return ' GitlabIcon'
51
61
case ' instagram' :
52
62
return ' InstagramIcon'
53
63
case ' linkedin' :
54
64
return ' LinkedinIcon'
65
+ case ' mail' :
66
+ return ' MailIcon'
67
+ case ' messenger' :
68
+ return ' MessageSquareIcon'
69
+ case ' phone' :
70
+ return ' PhoneIcon'
71
+ case ' twitter' :
72
+ return ' TwitterIcon'
73
+ case ' web' :
74
+ return ' GlobeIcon'
55
75
default :
56
76
return ' '
57
77
}
58
78
},
59
79
},
60
-
80
+
61
81
computed: {
62
82
contact () {
63
83
return (
71
91
})
72
92
.filter (({ iconComponent }) => iconComponent)
73
93
},
74
-
94
+
75
95
copyright () {
76
96
return (
77
97
this .$themeConfig .footer && this .$themeConfig .footer .copyright || []
86
106
list-style none
87
107
margin 0
88
108
padding 0
89
-
109
+
90
110
.footer
91
111
height 60px
92
112
box-sizing border-box
93
- // background-color darken(#3eaf7c, 70%)
94
113
background-color #0 0 0
95
114
color #F F F
96
115
display flex
97
116
padding 15px 32px
98
-
117
+
99
118
.footer-left-wrap
100
119
line-height 30px
101
120
flex 1
102
121
display flex
103
-
122
+
104
123
.contact
105
124
display flex
106
-
125
+
107
126
.contact-item
108
127
flex 1
109
128
margin-right 10px
110
-
129
+
111
130
a
112
131
font-size 12px
113
132
color rgba (255 , 255 , 255 , 0.45 )
114
133
text-decoration none
115
134
transition color .3s
116
-
135
+
117
136
& :hover
118
137
color #F F F
119
-
138
+
120
139
.footer-right-wrap
121
140
flex 1
122
141
display flex
125
144
126
145
@media (min-width : $MQNarrow)
127
146
justify-content flex-end
128
-
147
+
129
148
.copyright
130
149
display flex
131
150
justify-content flex-end
132
-
151
+
133
152
.copyright-item
134
153
flex 0 0 auto
135
154
padding 0 10px
136
155
position relative
137
156
line-height 12px
138
157
border-right 1px solid rgba (255 , 255 , 255 , 0.6 )
139
-
158
+
140
159
& :last-child
141
160
border-right none
142
-
161
+
143
162
a
144
163
font-size 12px
145
164
color rgba (255 , 255 , 255 , 0.6 )
146
165
text-decoration none
147
166
transition color .3s
148
-
167
+
149
168
& :hover
150
169
color rgba (255 , 255 , 255 , 0.9 )
151
-
170
+
152
171
@media (max-width : $MQMobile)
153
172
.footer
154
173
height 100px
155
174
flex-direction column
156
-
175
+
157
176
.footer-left-wrap
158
177
align-items center
159
178
justify-content center
Original file line number Diff line number Diff line change @@ -86,11 +86,16 @@ module.exports = {
86
86
87
87
For now ` ContactType ` supports following enums:
88
88
89
- - github
90
89
- facebook
91
- - twitter
90
+ - github
91
+ - gitlab
92
92
- instagram
93
93
- linkedin
94
+ - mail
95
+ - messenger
96
+ - phone
97
+ - twitter
98
+ - web
94
99
95
100
::: tip
96
101
Welcome contribution of adding more built-in contact type.
Original file line number Diff line number Diff line change @@ -25,10 +25,18 @@ module.exports = {
25
25
*/
26
26
footer : {
27
27
contact : [
28
+ {
29
+ type : 'facebook' ,
30
+ link : '#' ,
31
+ } ,
28
32
{
29
33
type : 'github' ,
30
34
link : 'https://github.com/ulivz' ,
31
35
} ,
36
+ {
37
+ type : 'gitlab' ,
38
+ link : '#' ,
39
+ } ,
32
40
{
33
41
type : 'instagram' ,
34
42
link : '#' ,
@@ -37,10 +45,26 @@ module.exports = {
37
45
type : 'linkedin' ,
38
46
link : '#' ,
39
47
} ,
48
+ {
49
+ type : 'mail' ,
50
+ link : '#' ,
51
+ } ,
52
+ {
53
+ type : 'messenger' ,
54
+ link : '#' ,
55
+ } ,
56
+ {
57
+ type : 'phone' ,
58
+ link : '#' ,
59
+ } ,
40
60
{
41
61
type : 'twitter' ,
42
62
link : 'https://twitter.com/_ulivz' ,
43
63
} ,
64
+ {
65
+ type : 'web' ,
66
+ link : '#' ,
67
+ }
44
68
] ,
45
69
copyright : [
46
70
{
You can’t perform that action at this time.
0 commit comments