<div class="top"></div>
<div
class="text"
v-html="element.frontendText.body"
/>
<div class="bottom"></div>
.top {
width: 100%;
height: 50px;
background: var(--color-primary);
clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.bottom {
width: 100%;
height: 50px;
background: var(--color-primary);
clip-path: polygon(100% -1px, 0 -1px, 0 100%);
}
.text {
background: var(--color-primary);
color: #fff;
padding: 1rem;
}
<div class="top"></div>
<div
class="text"
v-html="element.frontendText.body"
/>
<div class="bottom"></div>
.top {
width: 100%;
height: 50px;
background: var(--color-primary);
clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.bottom {
width: 100%;
height: 50px;
background: var(--color-primary);
clip-path: polygon(100% -1px, 0 -1px, 0 100%);
}
.text {
background: var(--color-primary);
color: #fff;
padding: 1rem;
}