2020-08-13 15:18:26 +08:00
< template >
< footer class = "footer" >
< div class = "container" >
< div class = "footer-main" >
< 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 >
< a : href = "'/#/' + lang + '/component/custom-theme'" class = "footer-main-link" target = "_blank" > { { langConfig . theme } } < / a >
< a href = "https://github.com/elemefe/element-react" class = "footer-main-link" target = "_blank" > Element - React < / a >
< a href = "https://github.com/ElemeFE/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 >
< a href = "https://github.com/ElemeFE/element/issues" class = "footer-main-link" target = "_blank" > { { langConfig . feedback } } < / a >
< a : href = "`https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.${ lang }.md`" class = "footer-main-link" target = "_blank" > { { langConfig . contribution } } < / a >
< a href = "https://segmentfault.com/t/element-ui" class = "footer-main-link" target = "_blank" > SegmentFault < / a >
< a href = "https://github.com/ElementUI/awesome-element" class = "footer-main-link" target = "_blank" > Awesome Element < / a >
< / div >
< div class = "footer-social" >
< p class = "footer-social-title" > Element { { version && version . slice ( 0 , 3 ) } } Fullerene < / p >
< el -popover
ref = "weixin"
placement = "top"
width = "120"
popper - class = "footer-popover"
trigger = "hover"
>
< div class = "footer-popover-title" > { { langConfig . eleme } } UED < / div >
< img src = "../assets/images/qrcode.png" alt = "" >
< / e l - p o p o v e r >
<!-- < i v -popover : weixin class = "doc-icon-weixin elementdoc" > < / i > -- >
< a href = "https://github.com/elemefe" target = "_blank" >
< i class = "doc-icon-github elementdoc" > < / i >
< / a >
< a :href ="gitterLink" target = "_blank" >
< i class = "doc-icon-gitter elementdoc" > < / i >
< / a >
2020-08-20 10:19:14 +08:00
< a href = "https://www.netlify.com" >
< img src = "https://www.netlify.com/img/global/badges/netlify-light.svg" alt = "Deploys by Netlify" >
< / a >
2020-08-13 15:18:26 +08:00
< / div >
< / div >
< / footer >
< / template >
< script >
import compoLang from '../i18n/component.json'
const version = '1.0.0' // element version
export default {
data ( ) {
return {
version ,
}
} ,
computed : {
lang ( ) {
return this . $route . path . split ( '/' ) [ 1 ] || 'zh-CN'
} ,
langConfig ( ) {
return compoLang . filter ( config => config . lang === this . lang ) [ 0 ] [ 'footer' ]
} ,
gitterLink ( ) {
return this . lang === 'zh-CN' ? 'https://gitter.im/ElemeFE/element' : 'https://gitter.im/element-en/Lobby'
} ,
} ,
}
< / script >
< style lang = "scss" scoped >
. footer {
background - color : # F7FBFD ;
width : 100 % ;
padding : 40 px 150 px ;
margin - top : - 340 px ;
box - sizing : border - box ;
height : 340 px ;
. container {
box - sizing : border - box ;
width : auto ;
}
. footer - main {
font - size : 0 ;
display : inline - block ;
vertical - align : top ;
margin - right : 110 px ;
h4 {
font - size : 18 px ;
color : # 333 ;
line - height : 1 ;
margin : 0 0 15 px 0 ;
}
. footer - main - link {
display : block ;
margin : 0 ;
line - height : 2 ;
font - size : 14 px ;
color : # 666 ;
& : hover {
color : # 333 ;
}
}
}
. footer - social {
float : right ;
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 ;
}
. elementdoc {
transition : .3 s ;
display : inline - block ;
line - height : 32 px ;
text - align : center ;
color : # c8d6e8 ;
background - color : transparent ;
size : 32 px ;
font - size : 32 px ;
vertical - align : middle ;
margin - right : 20 px ;
& : hover {
transform : scale ( 1.2 ) ;
color : # 8 D99AB ;
}
}
. doc - icon - gitter {
margin - right : 0 ;
}
}
}
. el - popover . 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 ;
}
}
@ media ( max - width : 1140 px ) {
. footer {
height : auto ;
}
}
@ media ( max - width : 1000 px ) {
. footer - social {
display : none ;
}
}
@ media ( max - width : 768 px ) {
. footer {
. footer - main {
margin - bottom : 30 px ;
}
}
}
< / style >