index.vue
5.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<template>
<div class="hager-solution-index">
<el-image :style="{ width: '100%', height: top_img_height }" fit="cover" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"></el-image>
<hager-box class="box-n">
<hager-h1 title="行业解决方案" sub="Industry Solutions" style="margin: 2rem 0;"></hager-h1>
<div> 海格电气产品已广泛应用于电子产品制造业,为其供配电系统稳定、可靠的运行提供可靠保障。 </div>
<div class="hager-industry-solutions">
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
<div class="card">
<img src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" alt="学校图片" class="card-image">
<div class="card-content">
<div style="display: flex; align-items: center; justify-content: space-between;">
<span>住宅解决方案</span>
<i class="el-icon-right"></i>
</div>
<p>Residential Solution Case</p>
</div>
</div>
</div>
</hager-box>
</div>
</template>
<script>
import mixin from 'common/mixin';
import hagerBox from '@/components/common/hagerBox';
import hagerH1 from '@/components/common/hagerH1.vue';
import hagerMore from '@/components/hagerMore.vue';
export default {
components: { hagerBox, hagerH1, hagerMore },
mixins: [mixin.init],
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style lang="less" scoped>
.hager-solution-index {
.hager-industry-solutions {
margin: 2rem 0;
display: grid;
grid-template-columns: repeat(4, 1fr); /* 一行显示4个 */
gap: 1.5rem; /* 每个项目之间的间距 */
.case-item {
position: relative;
height: 12rem;
padding: 1.5rem;
text-align: center;
color: #FFF;
border-radius: 8px;
background-image: url('https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg');
background-size: cover;
background-position: top center;
transition: transform 0.3s ease-in-out;
&:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
}
.card {
// width: 300px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
background-color: #fff;
margin: 0;
transition: transform 0.3s ease-in-out;
&:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.card-image {
width: 100%;
height: auto;
object-fit: cover;
}
.card-content {
padding: 15px;
}
.card h3 {
font-size: 18px;
color: #0072c6;
margin-bottom: 10px;
}
.card p {
font-size: 14px;
color: #333;
line-height: 1.6;
margin-bottom: 15px;
}
}
}
}
</style>