mand-mobile/site/theme/default/components/Footer.vue

154 lines
3.5 KiB
Vue
Raw Normal View History

2018-03-26 16:04:04 +08:00
<template>
<div class="mfe-blog-theme-default-footer">
<div class="default-footer-container">
<ul class="default-footer-category">
<h1>
<img src="//manhattan.didistatic.com/static/manhattan/mand/docs/mand-logo-white.svg" alt="">
<br>
Mand Mobile
</h1>
</ul>
<ul
class="default-footer-category"
v-for="(items, i) in links"
:key="i">
<h1 v-html="items.title"></h1>
<li
v-for="(link, j) in items.link"
:key="j">
<a :href="link.src" v-html="link.text" v-if="link.src"></a>
<p v-html="link.text" v-else></p>
</li>
</ul>
</div>
<div class="default-footer-copyright" v-if="copyRight">
<div class="default-footer-copyright-container">
Copyright &copy; <span v-html="copyRight"></span>
</div>
</div>
<div class="default-footer-bg">
<img src="//manhattan.didistatic.com/static/manhattan/mand/docs/mand-doc-footer-bg.svg" alt="">
</div>
</div>
</template>
<script>
export default {
name: 'mfe-blog-theme-default-footer',
data() {
return {
links: window.mbConfig.links,
copyRight: window.mbConfig.copyRight,
powerBy: window.mbConfig.powerBy,
produceBy: window.mbConfig.produceBy,
}
},
}
</script>
<style lang="stylus">
clearfix()
&:after
content ""
clear both
display table
.mfe-blog-theme-default-footer
position relative
height 673px
-webkit-font-smoothing antialiased
.default-footer-bg
position absolute
top 0
bottom 0
left -2000px
overflow hidden
img
position relative
top -300px
height 250%
.default-footer-copyright
position absolute
left 0
bottom 0
z-index 2
width 100%
height 100px
line-height 100px
color rgba(255, 255, 255, .7)
border solid 1px rgba(255, 255, 255, .3)
.default-footer-container
position relative
z-index 2
width 1280px
margin 0 auto
padding-top 250px
box-sizing border-box
clearfix()
.default-footer-copyright-container
width 1280px
margin 0 auto
.default-footer-category
float left
width 25%
color #FFF
box-sizing border-box
h1
float left
width 100%
margin-bottom 20px
font-size 20px
font-family AvenirNext-Medium, "Microsoft Yahei", "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif !important
font-weight 500
li
float left
width 100%
margin-bottom 10px
font-size 16px
p
float left
i
float left
margin-top 5px
margin-right 10px
a
color #FFF
text-decoration none
span
opacity .8
@media (max-width: 1400px)
.default-footer-container
width 1080px !important
.default-footer-copyright-container
width 1080px !important
2018-03-26 16:04:04 +08:00
@media (max-width: 750px)
.mfe-blog-theme-default-footer
display block
2018-03-30 11:44:29 +08:00
height auto !important
padding .32rem 5% .32rem
background #007CFA
.default-footer-container
2018-03-26 16:04:04 +08:00
width 100% !important
2018-03-30 11:44:29 +08:00
padding .32rem
.default-footer-bg
display none
2018-03-26 16:04:04 +08:00
.default-footer-category
display block
2018-03-30 11:44:29 +08:00
width 50%
2018-03-26 16:04:04 +08:00
margin 0 0 .2rem
h1
margin-bottom .2rem
font-size .24rem
li
margin-bottom .12rem
font-size .2rem
2018-03-30 11:44:29 +08:00
&:first-child
display none
.default-footer-copyright
display none
2018-03-26 16:04:04 +08:00
</style>