Commit b6cbc8ae authored by “yiyousong”'s avatar “yiyousong”

perf: 优化首页

parent cc975344
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
content: ""; content: "";
display: inline-block; display: inline-block;
height: 4px; height: 4px;
width: 50%; width: 30%;
background: #ffffff; background: #ffffff;
border-radius: 2px; border-radius: 2px;
position: absolute; position: absolute;
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
content: ""; content: "";
display: inline-block; display: inline-block;
height: 4px; height: 4px;
width: 50%; width: 30%;
background: #ffffff; background: #ffffff;
border-radius: 2px; border-radius: 2px;
position: absolute; position: absolute;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="main w-[80%]"> <div class="main w-[90%]">
<!-- 主题数据分析 --> <!-- 主题数据分析 -->
<div <div
class="theme-data-analyse mb-[36px] flex w-full flex-col items-center" class="theme-data-analyse mb-[36px] flex w-full flex-col items-center"
...@@ -235,4 +235,19 @@ export default { ...@@ -235,4 +235,19 @@ export default {
border-radius: 8px; border-radius: 8px;
} }
} }
@media screen and (max-width: 1700px) {
.area-list {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
}
@media screen and (max-width: 1480px) and (min-width: 1200px) {
.area-list {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
@media screen and (max-width: 1200px) {
.area-list {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
</style> </style>
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
]" ]"
@click="handleClick" @click="handleClick"
> >
<img class="banner" :src="data.img" /> <div class="banner">
<img class="banner-img" :src="data.img" />
</div>
<div class="content"> <div class="content">
<!-- 对接时间 --> <!-- 对接时间 -->
<div class="w-full"> <div class="w-full">
...@@ -67,8 +69,13 @@ export default { ...@@ -67,8 +69,13 @@ export default {
position: absolute; position: absolute;
left: 0px; left: 0px;
top: 0px; top: 0px;
overflow: hidden;
.banner-img {
width: 100%;
height: 100%;
transition: all 0.5s; transition: all 0.5s;
} }
}
.content { .content {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -115,7 +122,7 @@ export default { ...@@ -115,7 +122,7 @@ export default {
} }
.is-hover { .is-hover {
&:hover { &:hover {
.banner { .banner-img {
transform: scale(1.1); transform: scale(1.1);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment