Skip to content

Commit a4622c5

Browse files
committed
Update Home.vue
1 parent 481e551 commit a4622c5

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

src/views/Home.vue

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@
55
<div class="lbox">
66

77
<div class="ad whitebg"> </div>
8-
<div class="whitebg bloglist">
8+
<div v-if="isShow" v-for="i in 6" :key="i">
9+
<el-row :gutter="20">
10+
<el-col :span="7"><div class="grid-content bg-purple"></div></el-col>
11+
12+
</el-row>
13+
<el-row :gutter="24">
14+
<el-col :span="24"><div class="grid-content bg-purple"></div></el-col>
15+
</el-row>
16+
17+
<p class="bloginfo"><i class="avatar"></i><span>loadding...</span><span ></span><span></span>
18+
<a href="/" class="viewmore-row">更多</a>
19+
</p>
20+
</div>
21+
<div v-else class="whitebg bloglist">
922
<h2 class="htitle">最新博文
1023

1124
<router-link :to="'/Editor'" class="prev" style="float:right;" rel="prev">
@@ -131,5 +144,36 @@ export default {
131144
</script>
132145

133146
<style>
147+
.el-row {
148+
margin-bottom: 20px;
149+
}
150+
.el-col {
151+
border-radius: 4px;
152+
}
153+
.bg-purple-dark {
154+
background: #99a9bf;
155+
}
156+
.bg-purple {
157+
background: #d3dce6;
158+
}
159+
.bg-purple-light {
160+
background: #e5e9f2;
161+
}
162+
.grid-content {
163+
border-radius: 4px;
164+
min-height: 36px;
165+
}
166+
.row-bg {
167+
padding: 10px 0;
168+
background-color: #f9fafc;
169+
}
170+
.viewmore-row{
134171
172+
float: right;
173+
background: #12b7de;
174+
color: #fff;
175+
border-radius: 3px;
176+
padding: 0px 10px;
177+
height: 30px;
178+
}
135179
</style>

0 commit comments

Comments
 (0)