2016-08-23 16:57:58 +08:00
< template >
< footer class = "footer" >
< div class = "container" >
2016-09-08 18:11:18 +08:00
< div class = "footer-main" >
2017-05-05 08:33:00 +08:00
< p class = "footer-main-title" > Element { { version } } Beryllium < / p >
2016-11-10 21:46:55 +08:00
< a href = "https://github.com/ElemeFE/element/issues" class = "footer-main-link" target = "_blank" > { { langConfig . feedback } } < / a >
2017-02-04 16:42:28 +08:00
< a : href = "`https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.${ lang }.md`" class = "footer-main-link" target = "_blank" > { { langConfig . contribution } } < / a >
2017-05-10 20:44:49 +08:00
< a : href = "`https://eleme.github.io/element-react/#/${ lang }/quick-start`" class = "footer-main-link" target = "_blank" > Element - React < / a >
2016-09-08 18:11:18 +08:00
< / div >
2016-08-23 16:57:58 +08:00
< div class = "footer-social" >
< el -popover
ref = "weixin"
placement = "top"
width = "120"
2016-10-13 13:45:40 +08:00
popper - class = "footer-popover"
2016-08-23 16:57:58 +08:00
trigger = "hover" >
2016-11-10 21:46:55 +08:00
< div class = "footer-popover-title" > { { langConfig . eleme } } UED < / div >
2016-08-23 16:57:58 +08:00
< img src = "../assets/images/qrcode.png" alt = "" >
< / e l - p o p o v e r >
< i class = "doc-icon-weixin elementdoc" v -popover : weixin > < / i >
< a href = "//github.com/elemefe" target = "_blank" >
< i class = "doc-icon-github elementdoc" > < / i >
< / a >
< / div >
< / div >
< / footer >
< / template >
< style >
. footer {
height : 120 px ;
background - color : # 324057 ;
2016-09-13 20:02:33 +08:00
color : # a4aebd ;
2016-08-23 16:57:58 +08:00
width : 100 % ;
z - index : 1000 ;
2016-08-23 19:15:15 +08:00
margin - top : - 120 px ;
2016-10-13 13:45:40 +08:00
2016-08-23 16:57:58 +08:00
* {
word - spacing : 0 ;
}
. container {
height : 100 % ;
2016-11-18 16:49:07 +08:00
box - sizing : border - box ;
2016-08-23 16:57:58 +08:00
}
2016-10-13 13:45:40 +08:00
2016-08-23 16:57:58 +08:00
. footer - main {
font - size : 0 ;
padding - top : 40 px ;
display : inline - block ;
2016-10-13 13:45:40 +08:00
2016-08-23 16:57:58 +08:00
. footer - main - title {
line - height : 1 ;
font - size : 22 px ;
margin : 0 ;
}
2016-10-13 13:45:40 +08:00
2016-08-23 16:57:58 +08:00
. footer - main - link {
display : inline - block ;
margin : 12 px 18 px 0 0 ;
line - height : 1 ;
font - size : 12 px ;
2016-09-13 20:02:33 +08:00
color : # 768193 ;
2016-08-23 16:57:58 +08:00
a {
2016-09-13 20:02:33 +08:00
color : # 768193 ;
2016-08-23 16:57:58 +08:00
text - decoration : none ;
}
}
}
2016-10-13 13:45:40 +08:00
2016-08-23 16:57:58 +08:00
. footer - social {
float : right ;
line - height : 120 px ;
. elementdoc {
transition : .3 s ;
display : inline - block ;
line - height : 32 px ;
text - align : center ;
2016-09-13 20:02:33 +08:00
color : # 8 D99AB ;
background - color : transparent ;
2016-08-23 16:57:58 +08:00
size : 32 px ;
2016-09-13 20:02:33 +08:00
font - size : 32 px ;
vertical - align : middle ;
2016-08-23 16:57:58 +08:00
& : hover {
transform : scale ( 1.2 ) ;
}
}
2016-10-13 13:45:40 +08:00
2016-08-23 16:57:58 +08:00
. doc - icon - weixin {
margin - right : 36 px ;
& : hover {
2016-09-13 20:02:33 +08:00
color : # fff ;
2016-08-23 16:57:58 +08:00
}
}
. doc - icon - github {
margin - right : 0 ;
& : hover {
2016-09-13 20:02:33 +08:00
color : # fff ;
2016-08-23 16:57:58 +08:00
}
}
}
}
2016-10-13 13:45:40 +08:00
. footer - popover {
padding : 0 ;
min - width : 120 px ;
line - height : normal ;
box - shadow : 0 0 11 px 0 rgba ( 174 , 187 , 211 , 0.24 ) ;
. footer - popover - title {
border - bottom : solid 1 px # eaeefb ;
height : 30 px ;
line - height : 30 px ;
text - align : center ;
color : # 99 a9bf ;
background - color : # f8f9fe ;
}
img {
size : 100 px ;
margin : 10 px ;
}
}
2016-11-18 16:49:07 +08:00
@ media ( max - width : 768 px ) {
. footer {
. footer - social {
display : none ;
}
}
}
2016-08-23 16:57:58 +08:00
< / style >
2016-11-10 21:46:55 +08:00
< script type = "text/babel" >
import compoLang from '../i18n/component.json' ;
2016-12-27 18:38:16 +08:00
import { version } from 'main/index.js' ;
2016-11-10 21:46:55 +08:00
export default {
2016-12-27 18:38:16 +08:00
data ( ) {
return {
version
} ;
} ,
2016-11-10 21:46:55 +08:00
computed : {
lang ( ) {
return this . $route . path . split ( '/' ) [ 1 ] ;
} ,
langConfig ( ) {
return compoLang . filter ( config => config . lang === this . lang ) [ 0 ] [ 'footer' ] ;
}
}
} ;
< / script >