2016-08-23 08:57:58 +00:00
< template >
< footer class = "footer" >
< div class = "container" >
2016-09-08 10:11:18 +00:00
< div class = "footer-main" >
2017-10-23 09:50:25 +00: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 >
2019-06-11 11:35:43 +00:00
< a : href = "'/#/' + lang + '/component/custom-theme'" class = "footer-main-link" target = "_blank" > { { langConfig . theme } } < / a >
2018-06-22 11:02:31 +00:00
< a href = "https://github.com/elemefe/element-react" class = "footer-main-link" target = "_blank" > Element - React < / a >
2018-01-26 03:24:09 +00:00
< a href = "https://github.com/ElemeFE/element-angular" class = "footer-main-link" target = "_blank" > Element - Angular < / a >
2017-10-23 09:50:25 +00:00
< / div >
< div class = "footer-main" >
< h4 > { { langConfig . community } } < / h4 >
< a :href ="gitterLink" class = "footer-main-link" target = "_blank" > { { langConfig . gitter } } < / a >
2016-11-10 13:46:55 +00:00
< a href = "https://github.com/ElemeFE/element/issues" class = "footer-main-link" target = "_blank" > { { langConfig . feedback } } < / a >
2017-02-04 08:42:28 +00: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 03:58:58 +00:00
< a href = "https://segmentfault.com/t/element-ui" class = "footer-main-link" target = "_blank" > SegmentFault < / a >
2017-10-23 09:50:25 +00:00
< a href = "https://github.com/ElementUI/awesome-element" class = "footer-main-link" target = "_blank" > Awesome Element < / a >
2016-09-08 10:11:18 +00:00
< / div >
2016-08-23 08:57:58 +00:00
< div class = "footer-social" >
2018-05-28 09:36:40 +00:00
< p class = "footer-social-title" > Element { { version && version . slice ( 0 , 3 ) } } Fullerene < / p >
2016-08-23 08:57:58 +00:00
< el -popover
ref = "weixin"
placement = "top"
width = "120"
2016-10-13 05:45:40 +00:00
popper - class = "footer-popover"
2016-08-23 08:57:58 +00:00
trigger = "hover" >
2016-11-10 13:46:55 +00:00
< div class = "footer-popover-title" > { { langConfig . eleme } } UED < / div >
2016-08-23 08:57:58 +00: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 09:50:25 +00:00
< a href = "https://github.com/elemefe" target = "_blank" >
2016-08-23 08:57:58 +00:00
< i class = "doc-icon-github elementdoc" > < / i >
< / a >
2017-10-23 09:50:25 +00:00
< a :href ="gitterLink" target = "_blank" >
< i class = "doc-icon-gitter elementdoc" > < / i >
< / a >
2016-08-23 08:57:58 +00:00
< / div >
< / div >
< / footer >
< / template >
2019-03-18 11:41:08 +00:00
< style lang = "scss" >
2016-08-23 08:57:58 +00:00
. footer {
2017-10-23 09:50:25 +00:00
background - color : # F7FBFD ;
2016-08-23 08:57:58 +00:00
width : 100 % ;
2017-10-23 09:50:25 +00:00
padding : 40 px 150 px ;
2017-10-25 03:58:58 +00:00
margin - top : - 340 px ;
2017-10-23 09:50:25 +00:00
box - sizing : border - box ;
2017-10-25 03:58:58 +00:00
height : 340 px ;
2016-08-23 08:57:58 +00:00
. container {
2016-11-18 08:49:07 +00:00
box - sizing : border - box ;
2017-10-24 07:24:35 +00:00
width : auto ;
2016-08-23 08:57:58 +00:00
}
2016-10-13 05:45:40 +00:00
2016-08-23 08:57:58 +00:00
. footer - main {
font - size : 0 ;
display : inline - block ;
2017-10-23 09:50:25 +00:00
vertical - align : top ;
margin - right : 110 px ;
2019-06-11 11:35:43 +00:00
2017-10-23 09:50:25 +00:00
h4 {
font - size : 18 px ;
color : # 333 ;
2016-08-23 08:57:58 +00:00
line - height : 1 ;
2017-10-23 09:50:25 +00:00
margin : 0 0 15 px 0 ;
2016-08-23 08:57:58 +00:00
}
2016-10-13 05:45:40 +00:00
2016-08-23 08:57:58 +00:00
. footer - main - link {
2017-10-23 09:50:25 +00:00
display : block ;
margin : 0 ;
line - height : 2 ;
font - size : 14 px ;
color : # 666 ;
2016-08-23 08:57:58 +00:00
2017-10-23 09:50:25 +00:00
& : hover {
color : # 333 ;
2016-08-23 08:57:58 +00:00
}
}
}
2016-10-13 05:45:40 +00:00
2016-08-23 08:57:58 +00:00
. footer - social {
float : right ;
2017-10-23 09:50:25 +00:00
text - align : right ;
2019-06-11 11:35:43 +00:00
2017-10-23 09:50:25 +00:00
. 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 08:57:58 +00:00
. elementdoc {
transition : .3 s ;
display : inline - block ;
line - height : 32 px ;
text - align : center ;
2017-10-23 09:50:25 +00:00
color : # c8d6e8 ;
2016-09-13 12:02:33 +00:00
background - color : transparent ;
2016-08-23 08:57:58 +00:00
size : 32 px ;
2016-09-13 12:02:33 +00:00
font - size : 32 px ;
vertical - align : middle ;
2017-10-23 09:50:25 +00:00
margin - right : 20 px ;
2016-08-23 08:57:58 +00:00
& : hover {
2017-10-23 09:50:25 +00:00
transform : scale ( 1.2 ) ;
color : # 8 D99AB ;
2016-08-23 08:57:58 +00:00
}
}
2017-10-23 09:50:25 +00:00
. doc - icon - gitter {
2016-08-23 08:57:58 +00:00
margin - right : 0 ;
}
}
}
2016-10-13 05:45:40 +00:00
2017-10-23 09:50:25 +00:00
. el - popover . footer - popover {
2016-10-13 05:45:40 +00: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 ;
}
}
2017-12-18 09:38:51 +00:00
@ media ( max - width : 1140 px ) {
. footer {
height : auto ;
}
}
2019-06-11 11:35:43 +00:00
2017-12-18 09:38:51 +00:00
@ media ( max - width : 1000 px ) {
. footer - social {
display : none ;
}
}
2019-06-11 11:35:43 +00:00
2016-11-18 08:49:07 +00:00
@ media ( max - width : 768 px ) {
. footer {
2017-12-18 09:38:51 +00:00
. footer - main {
margin - bottom : 30 px ;
2016-11-18 08:49:07 +00:00
}
}
}
2016-08-23 08:57:58 +00:00
< / style >
2016-11-10 13:46:55 +00:00
< script type = "text/babel" >
import compoLang from '../i18n/component.json' ;
2019-01-23 03:34:19 +00:00
import Element from 'main/index.js' ;
const { version } = Element ;
2016-11-10 13:46:55 +00:00
export default {
2016-12-27 10:38:16 +00:00
data ( ) {
return {
version
} ;
} ,
2016-11-10 13:46:55 +00:00
computed : {
lang ( ) {
2017-05-12 08:33:36 +00:00
return this . $route . path . split ( '/' ) [ 1 ] || 'zh-CN' ;
2016-11-10 13:46:55 +00:00
} ,
langConfig ( ) {
return compoLang . filter ( config => config . lang === this . lang ) [ 0 ] [ 'footer' ] ;
2017-10-23 09:50:25 +00:00
} ,
gitterLink ( ) {
return this . lang === 'zh-CN' ? 'https://gitter.im/ElemeFE/element' : 'https://gitter.im/element-en/Lobby' ;
2016-11-10 13:46:55 +00:00
}
}
} ;
< / script >