Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-04 12:12:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a43b2295cfa21d2ffb51217f07eac8d6b9a054ad
a43b2295
1 parent
362e9144
fix 解决方案-成功案例显示优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
8 deletions
src/views/solution/detail.vue
src/views/solution/detail.vue
View file @
a43b229
<!--
* @Date: 2024-09-29 15:49:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-0
3 17:46:50
* @LastEditTime: 2024-12-0
4 12:09:38
* @FilePath: /hager/src/views/solution/detail.vue
* @Description: 文件描述
-->
...
...
@@ -60,12 +60,12 @@
<div v-if="!is_xs">
<div class="hager-success-cases">
<div @click="goToCase(item)" class="card" v-for="(item, index) in success_data_list" :key="index">
<img :src="item.cover" alt="图片" class="card-image">
<div class="card-content">
<img :src="item.cover" alt="图片" class="card-image
-pc
">
<div class="card-content
-pc
">
<h3>{{ item.post_title }}</h3>
<p v-html="item.post_description"></p>
<i class="el-icon-right"></i>
</div>
<i class="el-icon-right pc"></i>
</div>
</div>
<!-- <div style="display: flex; justify-content: center; margin-top: 2rem;">
...
...
@@ -356,19 +356,40 @@ export default {
overflow: hidden;
background-color: #fff;
transition: transform 0.3s ease-in-out;
position: relative;
&:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.card-image-pc {
width: 100%;
height: 15rem;
object-fit: cover;
}
.card-image {
width: 100%;
height: auto;
object-fit: cover;
}
.card-content-pc {
padding: 1rem 1.5rem;
margin-bottom: 2rem;
h3 {
color: @secondary-color;
font-size: 1.25rem;
margin: 0;
margin-bottom: 0.5rem;
}
p {
font-size: 0.95rem;
line-height: 1.8;
}
}
.card-content {
padding: 1rem 1.5rem;
margin-bottom: 2rem;
h3 {
color: @secondary-color;
font-size: 1.25rem;
...
...
@@ -380,10 +401,20 @@ export default {
line-height: 1.8;
}
i {
margin-top: 1rem;
color: @primary-color;
font-size: 1.5rem;
}
margin-top: 0.5rem;
color: @primary-color;
font-size: 1.5rem;
}
}
i.pc {
position: absolute;
bottom: 0;
display: inline-flex;
margin-top: 0.5rem;
margin-left: 1.5rem;
margin-bottom: 1rem;
color: @primary-color;
font-size: 1.5rem;
}
.card p {
...
...
Please
register
or
login
to post a comment