Skip to content

Commit 0f0b0a8

Browse files
author
NicholasCui
committed
refactor: refactor the homepage
1 parent 72304a4 commit 0f0b0a8

File tree

21 files changed

+1223
-647
lines changed

21 files changed

+1223
-647
lines changed

.env.development

Whitespace-only changes.

.env.production

Whitespace-only changes.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@types/lodash": "^4.14.159",
1414
"core-js": "^3.6.5",
1515
"element-ui": "^2.13.2",
16+
"font-awesome": "^4.7.0",
1617
"graphql-request": "^2.0.0",
1718
"lodash": "^4.17.15",
1819
"swiper": "^5.4.5",

src/App.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ export default {
3636
}
3737
3838
body {
39-
background: #fff; font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
39+
background: #f0f2f5;
40+
font-family: Microsoft YaHei, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
4041
-webkit-font-smoothing: antialiased;
4142
-moz-osx-font-smoothing: grayscale;
4243
}
4344
4445
#app {
45-
color: #000;
46+
color: #101010;
47+
min-width: 900px;
4648
}
4749
4850
main {
49-
margin: 0 auto;
51+
min-height: 100vh;
5052
}
5153
</style>

src/assets/images/Home/join.png

820 KB
Loading

src/assets/images/Home/map.png

137 KB
Loading

src/assets/images/Home/sec-01.png

879 KB
Loading

src/assets/images/Home/sec-02.png

394 KB
Loading

src/assets/images/logo.png

-8.26 KB
Loading

src/components/TheFooter.vue

Lines changed: 96 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,50 @@
11
<template>
2-
<footer class="footer" :class="{mobile: this.device === 'mobile'}">
3-
<p class="footer__copyright">
4-
706文化传播有限公司 版权所有 Copyright 2012-2020 All Rights Reserved
2+
<footer class="footer">
3+
<div class="footer__list">
4+
<div class="item col-3">
5+
<p class="item__title">
6+
官方团队
57
</p>
6-
<p class="footer__icp">
7-
京ICP证03157号|京ICP备11043884号|京公网安备110105023734号
8+
<div class="item__list">
9+
<p class="name">706行政</p>
10+
<p class="name">706同学社</p>
11+
<p class="name">706线上沙龙</p>
12+
<p class="name">706上海</p>
13+
<p class="name">706深圳</p>
14+
<p class="name">706系统开发</p>
15+
<p class="name">706成都</p>
16+
<p class="name">706广州</p>
17+
</div>
18+
</div>
19+
<div class="item col-2">
20+
<p class="item__title">
21+
合作伙伴
822
</p>
9-
</footer>
23+
<div class="item__list">
24+
<p class="name">知乎</p>
25+
<p class="name">Bilibili</p>
26+
<p class="name">微师</p>
27+
<p class="name">Someet</p>
28+
<p class="name">喜马拉雅</p>
29+
<p class="name">围炉</p>
30+
</div>
31+
</div>
32+
<div class="item col-1">
33+
<p class="item__title">
34+
服务与支持
35+
</p>
36+
<div class="item__list">
37+
<p class="name">联系我们</p>
38+
<p class="name">商务合作</p>
39+
<p class="name">获得帮助</p>
40+
</div>
41+
</div>
42+
</div>
43+
<div class="footer__copyright">
44+
<p>706文化传播有限公司 版权所有 Copyright 2012-2020 All Rights Reserved</p>
45+
<p>京ICP证03157号|京ICP备11043884号|京公网安备110105023734号</p>
46+
</div>
47+
</footer>
1048
</template>
1149

1250
<script>
@@ -23,19 +61,60 @@ export default {
2361
</script>
2462

2563
<style scoped lang="less">
26-
.footer {
27-
padding: 40px 0 30px 0;
28-
font-size: 13px;
29-
text-align: center;
30-
background: #000;
31-
color: #fff;
64+
.footer {
65+
padding-bottom: 14px;
66+
border-top: 2px solid #0B800B;
67+
background: #333333;
3268
33-
&__copyright {
34-
margin-bottom: 5px;
35-
}
69+
&__content {
70+
max-width: 1200px;
71+
}
3672
37-
&.mobile {
38-
font-size: 9px;
73+
&__list {
74+
display: flex;
75+
width: 757px;
76+
padding: 0 32px;
77+
box-sizing: border-box;
78+
margin: 0 auto;
79+
font-size: 12px;
80+
line-height: 17px;
81+
color: #D7D7D7;
82+
.col-1 {
83+
flex: 1 1;
84+
}
85+
.col-2 {
86+
flex: 2 1;
87+
}
88+
.col-3 {
89+
flex: 3 1;
90+
}
91+
.item {
92+
padding: 0 32px;
93+
&__title {
94+
margin-bottom: 6px;
95+
padding: 15px 0 9px 5px;
96+
font-size: 13px;
97+
border-bottom: 1px solid #fff;
98+
}
99+
&__list {
100+
display: flex;
101+
flex-wrap: wrap;
102+
.name {
103+
width: 77px;
104+
padding-left: 5px;
105+
height: 18px;
106+
line-height: 18px;
107+
}
39108
}
109+
}
40110
}
111+
112+
&__copyright {
113+
margin-top: 17px;
114+
font-size: 10px;
115+
line-height: 17px;
116+
text-align: center;
117+
color: #6B6B6B;
118+
}
119+
}
41120
</style>

0 commit comments

Comments
 (0)