Skip to content

Commit f671810

Browse files
committed
update site
1 parent 3698c02 commit f671810

File tree

4 files changed

+44
-8
lines changed

4 files changed

+44
-8
lines changed

site/components/CarbonAds.vue

+12-7
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,23 @@ export default {
5959
</script>
6060
<style lang="less">
6161
#carbon-ads {
62+
width: 280px;
63+
float: right;
64+
position: relative;
65+
right: 0;
66+
bottom: 0;
67+
padding: 0;
6268
overflow: hidden;
63-
width: 145px;
64-
position: fixed;
6569
z-index: 9;
66-
bottom: 10px;
67-
right: 10px;
68-
padding: 10px;
6970
background-color: #fff;
7071
border-radius: 3px;
7172
font-size: 13px;
7273
background: #f5f5f5;
7374
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
7475
}
76+
#carbonads {
77+
overflow: hidden;
78+
}
7579
#carbon-ads a {
7680
display: inline-block;
7781
color: #7f8c8d;
@@ -81,7 +85,8 @@ export default {
8185
color: #7f8c8d;
8286
}
8387
#carbon-ads img {
84-
width: 125px;
88+
float: left;
89+
margin-right: 10px;
8590
}
8691
#carbon-ads .carbon-img,
8792
#carbon-ads .carbon-text {
@@ -90,7 +95,7 @@ export default {
9095
color: #34495e;
9196
}
9297
#carbon-ads .carbon-text {
93-
margin-top: 6px;
98+
padding-top: 6px;
9499
display: -webkit-box;
95100
-webkit-box-orient: vertical;
96101
-webkit-line-clamp: 4;

site/components/geektime.vue

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
<div id="geektime">
3+
<a
4+
href="http://gk.link/a/102BE"
5+
target="_blank"
6+
>
7+
<img
8+
width="160"
9+
alt="Vue 实战教程"
10+
src="https://cdn.nlark.com/yuque/0/2019/gif/87084/1552897186489-assets/web-upload/3ac01ea3-9c6f-4f23-b52e-d47dae5532d2.gif"
11+
>
12+
</a>
13+
</div>
14+
</template>
15+
16+
<script>
17+
export default {
18+
19+
};
20+
</script>
21+
22+
<style lang="less">
23+
#geektime {
24+
position: fixed;
25+
bottom: 6px;
26+
right: 6px;
27+
}
28+
</style>
29+

site/components/layout.vue

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import AllDemo from '../demo';
44
import Header from './header';
55
import Footer from './footer';
66
import CarbonAds from './CarbonAds';
7+
import Geektime from './geektime';
78
import Sponsors from './sponsors';
89
import zhCN from 'antd/locale-provider/zh_CN';
910
import enUS from 'antd/locale-provider/default';
@@ -303,6 +304,7 @@ export default {
303304
</div>
304305
</a-locale-provider>
305306
{ name.indexOf('back-top') === -1 ? <a-back-top /> : null }
307+
<Geektime />
306308
</div>
307309
);
308310
},

site/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
bottom: 250px;
187187
}
188188
.toc-affix .ant-anchor-wrapper {
189-
max-height: calc(~'100vh - 350px') !important;
189+
max-height: calc(~'100vh - 250px') !important;
190190
}
191191

192192
.drawer-wrapper .drawer-content {

0 commit comments

Comments
 (0)