Skip to content

Commit

Permalink
update site add sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Mar 11, 2019
1 parent 5dc6ad7 commit ccd5d64
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
34 changes: 33 additions & 1 deletion site/components/sponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,50 @@
target="_blank"
>
<img
width="34"
height="51"
src="https://cdn.tipe.io/tipe/tipe-cat-no-text.svg"
alt="tipe"
>
</a>
</li>
<li
v-if="isEffective(effectiveTime.bmatch)"
class="sponsorsItem"
>
<a
href="https://www.bmatch.tech/?ref=ant-design-vue"
target="_blank"
>
<img
height="61"
src="https://cdn.nlark.com/yuque/0/2019/png/87084/1552279877057-assets/web-upload/48a6ba91-6750-478c-956f-57aedb632fe5.png"
alt="bmatch"
>
</a>
</li>
</ul>
</div>
</div>
</template>
<script>
import moment from 'moment';
export default {
props: ['title'],
data() {
return {
top: 50,
effectiveTime : {
bmatch: {
start: '2019-03-11',
end: '2019-06-11',
},
},
};
},
methods: {
isEffective({start, end}){
return moment().isBetween(start, end);
},
},
};
</script>
11 changes: 9 additions & 2 deletions site/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
display: none;
}
}
.snd-ad{
padding-bottom: 10px;
}
.sponsorsWrap {
padding-left: 40px;
position: relative;
Expand All @@ -130,11 +133,15 @@
}
ul {
overflow: hidden;
margin-top: 5px;
margin-top: 15px;
li {
position: relative;
}
}
.sponsorsItem {
display: inline-block;
margin-right: 8px;
margin-right: 10px;
height: 51px;
}
}
#nav {
Expand Down

0 comments on commit ccd5d64

Please sign in to comment.