追加毛玻璃效果

This commit is contained in:
aixianling
2023-10-09 19:23:39 +08:00
parent 656b4be0c3
commit 6f6dc79702
2 changed files with 98 additions and 94 deletions

View File

@@ -88,6 +88,5 @@ export default {
.AiSummary { .AiSummary {
width: 100%; width: 100%;
height: 100%; height: 100%;
backdrop-filter: blur(1px);
} }
</style> </style>

View File

@@ -17,122 +17,127 @@
</template> </template>
<script> <script>
export default { export default {
name: 'summary5', name: 'summary5',
props: { props: {
data: { data: {
type: Array, type: Array,
default: () => [] default: () => []
},
keys: {
type: String,
default: 'key'
},
value: {
type: String,
default: 'value'
}
}, },
data () { keys: {
type: String,
default: 'key'
},
value: {
type: String,
default: 'value'
}
},
data() {
return {
img1: require('../asset/summary5-1.png'),
img2: require('../asset/summary5-2.png'),
img3: require('../asset/summary5-3.png'),
img4: require('../asset/summary5-4.png')
}
},
methods: {
getImg(index) {
return { return {
img1: require('../asset/summary5-1.png'), '0': this.img1,
img2: require('../asset/summary5-2.png'), '1': this.img2,
img3: require('../asset/summary5-3.png'), '2': this.img3,
img4: require('../asset/summary5-4.png') '3': this.img4
} }[index]
},
methods: {
getImg (index) {
return {
'0': this.img1,
'1': this.img2,
'2': this.img3,
'3': this.img4
}[index]
}
} }
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.summary5 { .summary5 {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
div { div {
box-sizing: border-box; box-sizing: border-box;
}
.summary5-item {
display: flex;
position: relative;
align-items: center;
backdrop-filter: blur(1px);
.right {
min-width: 90px;
} }
.summary5-item { .left {
display: flex; display: flex;
position: relative; position: relative;
align-items: center; align-items: center;
justify-content: center;
margin-right: 20px;
width: 50px;
height: 50px;
box-shadow: 0 0 8px 4px #0e3a77 inset;
background: transparent;
.right { .corner {
min-width: 90px; height: 18px;
width: 18px;
position: absolute;
display: block;
background-image: url(./../asset/corner.svg);
background-repeat: no-repeat;
} }
.left { .corner.left-top {
display: flex; left: -6px;
position: relative; top: -6px;
align-items: center; transform: rotateY(180deg);
justify-content: center;
margin-right: 20px;
width: 50px;
height: 50px;
box-shadow: 0 0 8px 4px #0e3a77 inset;
background: transparent;
.corner {
height: 18px;
width: 18px;
position: absolute;
display: block;
background-image: url(./../asset/corner.svg);
background-repeat: no-repeat;
}
.corner.left-top {
left: -6px;
top: -6px;
transform: rotateY(180deg);
}
.corner.right-top {
right: -6px;
top: -6px;
}
.corner.left-bottom {
left: -6px;
bottom: -6px;
transform: rotateX(180deg) rotateY(180deg);
}
.corner.right-bottom {
right: -6px;
bottom: -6px;
transform: rotateX(180deg);
}
} }
h2 { .corner.right-top {
line-height: 24px; right: -6px;
color: #fff; top: -6px;
font-size: 16px;
font-weight: normal;
} }
p { .corner.left-bottom {
font-size: 26px; left: -6px;
color: #fff; bottom: -6px;
font-weight: 700; transform: rotateX(180deg) rotateY(180deg);
}
.corner.right-bottom {
right: -6px;
bottom: -6px;
transform: rotateX(180deg);
} }
} }
h2 {
line-height: 24px;
color: #fff;
font-size: 16px;
font-weight: normal;
}
p {
font-size: 26px;
color: #fff;
font-weight: 700;
}
} }
}
</style> </style>