80 lines
1.6 KiB
Vue
80 lines
1.6 KiB
Vue
<template>
|
|
<section class="border5">
|
|
<div class="title">
|
|
<div class="title-left">
|
|
<h2>{{ title }}</h2>
|
|
</div>
|
|
<img src="https://cdn.cunwuyun.cn/dvcp/dv/img/gz.svg" />
|
|
</div>
|
|
<div class="slot">
|
|
<slot/>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'border5',
|
|
props: {title: String}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.border5 {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-top: 10px;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
|
|
.slot {
|
|
width: 100%;
|
|
height: calc(100% - 0px);
|
|
padding: 40px 10px 20px;
|
|
background: rgba(120, 0, 0, 0.2);
|
|
border: 1px solid rgba(203, 45, 0, 0.5);
|
|
}
|
|
|
|
.title {
|
|
display: flex;
|
|
position: absolute;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 111;
|
|
width: 100%;
|
|
|
|
.title-left {
|
|
width: 180px;
|
|
height: 38px;
|
|
padding-left: 32px;
|
|
background: url(./../asset/dq.svg);
|
|
background-size: 100% 100%;
|
|
|
|
h2 {
|
|
padding-top: 4px;
|
|
font-size: 18px;
|
|
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
|
|
font-weight: bold;
|
|
color: #FFFFFF;
|
|
line-height: 24px;
|
|
text-shadow: 0px 2px 4px rgba(117, 9, 9, 0.5);
|
|
background: linear-gradient(180deg, #FFF6C7 0%, #FF9A02 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
}
|
|
|
|
img {
|
|
width: 64px;
|
|
height: 26px;
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
</style>
|