console
<div class="b-body">
</div>
<div class="box">hello</div>
<div class="bd1">
<div class="box1">hello</div>
</div>
<div class="box2">
<div class="line"></div>
</div>
body{
background: #000;
}
.b-body{
height: 100px;
width: 100px;
background: linear-gradient(to top, cyan 70%, palegoldenrod 30%);
clip-path: polygon(0% 0%, 0% 100%, 1% 100%, 1% 1%, 99% 1%, 99% 99%, 1% 99%, 1% 100%, 100% 100%, 100% 0%);
}
.box{
position: absolute;
text-align: center;
margin: 15px;
width: 50px;
height: 50px;
color: white;
background-color: gold;
z-index: 100;
top: 4%;
}
.bd1{
margin: 5px;
height: 100px;
width: 100px;
border: 4px solid;
border-image: linear-gradient(to top, cyan 70%, palegoldenrod 30%) 1;
}
.box1{
text-align: center;
margin: 15px;
width: 50px;
height: 50px;
color: white;
background-color: gold;
}
.box2{
width: 200px;
height: 200px;
background-color: gold;
position: relative;
}
.line{
top: 0;
left: 0;
position: absolute;
width:5px;
height:200px;
background: linear-gradient(44deg,rgba(0,255,255,1) 100%,rgba(0,255,255,0) 0%);
}