iot-ui-vue/src/views/home/components/PlatformPicCard.vue

90 lines
2.1 KiB
Vue

<template>
<div class="platform-pic-container">
<div class="title">
<span>{{ $t('components.PlatformPicCard.926510-0') }}</span>
<!-- <p>PLATFORM ARCHITECTURE DIAGRAM</p>-->
</div>
<div class='plaid'></div>
<div
class='bj'
:style='{ backgroundImage: `url(${props.image || "/images/home/content.png"})`}'
></div>
</div>
</template>
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t: $t } = useI18n()
const props = defineProps({
image: String,
});
</script>
<style lang="less" scoped>
.platform-pic-container {
position: relative;
width: 100%;
overflow: hidden;
background-color: #fff;
border-bottom: 1px solid #2f54eb;
height: 458px;
.plaid {
background: repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(#000, .1) 36px),
repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(#000, .1) 36px);
position: absolute;
top: 0;
left: 0;
width: 100%;
height:100%;
z-index: 1;
}
.bj {
position: relative;
z-index: 2;
display: block;
width: 100%;
height: calc(100% - 50px);
margin-top: 40px;
background-size: 85%;
background-position: center;
background-repeat: no-repeat;
}
.title {
position: absolute;
width: 100%;
z-index: 3;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 12px;
padding: 24px 40px;
font-weight: 700;
font-size: 18px;
p {
position: absolute;
top: 50px;
width: 100%;
opacity: 0.3;
font-size: 12px;
}
&::before {
position: absolute;
top: 50%;
left: 24px;
width: 8px;
height: 8px;
background-color: #1d39c4;
border: 1px solid #b4c0da;
transform: translateY(-50%);
content: ' ';
}
}
}
</style>