style: 更换首页图片

This commit is contained in:
xieyonghong 2023-04-11 16:41:47 +08:00
parent a3fd4b32b6
commit dfbf186c5e
3 changed files with 26 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 210 KiB

View File

@ -4,6 +4,6 @@ export const restPassword = (id: string) => server.post(`/edge/operations/${id}/
export const _control = (deviceId: string) => server.get(`/edge/remote/${deviceId}/url`) export const _control = (deviceId: string) => server.get(`/edge/remote/${deviceId}/url`)
export const _stopControl = (deviceId: string) => server.get(`/edge/remote/${deviceId}/stop`, {}) export const _stopControl = (deviceId: string) => server.post(`/edge/remote/${deviceId}/stop`)

View File

@ -4,11 +4,11 @@
<span>平台架构图</span> <span>平台架构图</span>
<p>PLATFORM ARCHITECTURE DIAGRAM</p> <p>PLATFORM ARCHITECTURE DIAGRAM</p>
</div> </div>
<img <div class='plaid'></div>
:src="props.image || '/images/home/content.png'" <div
class="bj" class='bj'
alt="" :style='{ backgroundImage: `url(${props.image || "/images/home/content.png"})`}'
/> ></div>
</div> </div>
</template> </template>
@ -26,16 +26,34 @@ const props = defineProps({
background-color: #fff; background-color: #fff;
border-bottom: 1px solid #2f54eb; border-bottom: 1px solid #2f54eb;
height: 458px; height: 458px;
.bj {
display: block; .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%; width: 100%;
height: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: contain;
background-position: center;
background-repeat: no-repeat;
} }
.title { .title {
position: absolute; position: absolute;
width: 100%; width: 100%;
z-index: 2; z-index: 3;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;