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-10-23 17:50:25 +08:00
< h4 > { { langConfig . links } } < / h4 >
< a href = "https://github.com/ElemeFE/element" class = "footer-main-link" target = "_blank" > { { langConfig . repo } } < / a >
< a href = "https://github.com/ElemeFE/element/releases" class = "footer-main-link" target = "_blank" > { { langConfig . changelog } } < / a >
< a href = "https://github.com/ElemeFE/element/blob/dev/FAQ.md" class = "footer-main-link" target = "_blank" > { { langConfig . faq } } < / a >
< a href = "https://github.com/ElementUI/element-starter" class = "footer-main-link" target = "_blank" > { { langConfig . starter } } < / a >
2017-10-25 11:58:58 +08:00
< a href = "https://github.com/ElementUI/element-theme" class = "footer-main-link" target = "_blank" > { { langConfig . theme } } < / a >
< a href = "https://github.com/ElementUI/theme-chalk-preview" class = "footer-main-link" target = "_blank" > { { langConfig . preview } } < / a >
2017-10-23 17:50:25 +08:00
< a href = "https://github.com/eleme/element-react" class = "footer-main-link" target = "_blank" > Element - React < / a >
< a href = "https://github.com/eleme/element-angular" class = "footer-main-link" target = "_blank" > Element - Angular < / a >
< / div >
< div class = "footer-main" >
< h4 > { { langConfig . community } } < / h4 >
< a :href ="gitterLink" class = "footer-main-link" target = "_blank" > { { langConfig . gitter } } < / a >
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-10-25 11:58:58 +08:00
< a href = "https://segmentfault.com/t/element-ui" class = "footer-main-link" target = "_blank" > SegmentFault < / a >
2017-10-23 17:50:25 +08:00
< a href = "https://github.com/ElementUI/awesome-element" class = "footer-main-link" target = "_blank" > Awesome Element < / a >
2016-09-08 18:11:18 +08:00
< / div >
2016-08-23 16:57:58 +08:00
< div class = "footer-social" >
2017-10-23 17:50:25 +08:00
< p class = "footer-social-title" > Element { { version && version . slice ( 0 , 3 ) } } Carbon < / p >
2016-08-23 16:57:58 +08:00
< 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 >
2017-10-23 17:50:25 +08:00
< a href = "https://github.com/elemefe" target = "_blank" >
2016-08-23 16:57:58 +08:00
< i class = "doc-icon-github elementdoc" > < / i >
< / a >
2017-10-23 17:50:25 +08:00
< a :href ="gitterLink" target = "_blank" >
< i class = "doc-icon-gitter elementdoc" > < / i >
< / a >
2016-08-23 16:57:58 +08:00
< / div >
< / div >
< / footer >
< / template >
< style >
. footer {
2017-10-23 17:50:25 +08:00
background - color : # F7FBFD ;
2016-08-23 16:57:58 +08:00
width : 100 % ;
2017-10-23 17:50:25 +08:00
padding : 40 px 150 px ;
2017-10-25 11:58:58 +08:00
margin - top : - 340 px ;
2017-10-23 17:50:25 +08:00
box - sizing : border - box ;
2017-10-25 11:58:58 +08:00
height : 340 px ;
2016-08-23 16:57:58 +08:00
. container {
2016-11-18 16:49:07 +08:00
box - sizing : border - box ;
2017-10-24 15:24:35 +08:00
width : auto ;
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 ;
display : inline - block ;
2017-10-23 17:50:25 +08:00
vertical - align : top ;
margin - right : 110 px ;
h4 {
font - size : 18 px ;
color : # 333 ;
2016-08-23 16:57:58 +08:00
line - height : 1 ;
2017-10-23 17:50:25 +08:00
margin : 0 0 15 px 0 ;
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 - link {
2017-10-23 17:50:25 +08:00
display : block ;
margin : 0 ;
line - height : 2 ;
font - size : 14 px ;
color : # 666 ;
2016-08-23 16:57:58 +08:00
2017-10-23 17:50:25 +08:00
& : hover {
color : # 333 ;
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 - social {
float : right ;
2017-10-23 17:50:25 +08:00
text - align : right ;
. footer - social - title {
color : # 666 ;
font - size : 18 px ;
line - height : 1 ;
margin : 0 0 20 px 0 ;
padding : 0 ;
font - weight : bold ;
}
2016-08-23 16:57:58 +08:00
. elementdoc {
transition : .3 s ;
display : inline - block ;
line - height : 32 px ;
text - align : center ;
2017-10-23 17:50:25 +08:00
color : # c8d6e8 ;
2016-09-13 20:02:33 +08:00
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 ;
2017-10-23 17:50:25 +08:00
margin - right : 20 px ;
2016-08-23 16:57:58 +08:00
& : hover {
2017-10-23 17:50:25 +08:00
transform : scale ( 1.2 ) ;
color : # 8 D99AB ;
2016-08-23 16:57:58 +08:00
}
}
2017-10-23 17:50:25 +08:00
. doc - icon - gitter {
2016-08-23 16:57:58 +08:00
margin - right : 0 ;
}
}
}
2016-10-13 13:45:40 +08:00
2017-10-23 17:50:25 +08:00
. el - popover . footer - popover {
2016-10-13 13:45:40 +08:00
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 ( ) {
2017-05-12 16:33:36 +08:00
return this . $route . path . split ( '/' ) [ 1 ] || 'zh-CN' ;
2016-11-10 21:46:55 +08:00
} ,
langConfig ( ) {
return compoLang . filter ( config => config . lang === this . lang ) [ 0 ] [ 'footer' ] ;
2017-10-23 17:50:25 +08:00
} ,
gitterLink ( ) {
return this . lang === 'zh-CN' ? 'https://gitter.im/ElemeFE/element' : 'https://gitter.im/element-en/Lobby' ;
2016-11-10 21:46:55 +08:00
}
}
} ;
< / script >