I'd like to make a circular progress bar like this:
I was trying with this code.
.circular-progress{
width:12rem;
height: 12rem;
border-radius:50%;
margin:auto;
background: linear-gradient(
0deg,
black 50%,
pink 50%);
position:relative;
transform: rotate(90deg);
&:before{
content:"Hola";
width:12rem;
height: 12rem;
position:absolute;
top:0;
left:0;
border-radius:50%;
padding: .5rem;
box-sizing:border-box;
font-size: 2rem;
background:#111 content-box;
color: black;
text-align:center;
line-height: 8rem;
transform: rotate(-90deg);
}
&:after{
width:12rem;
height: 12rem;
position:absolute;
top:0;
left:0;
border-radius:50%;
background: linear-gradient(
transparent 50%;
#111 50%
);
transform: scale(1.1) rotate(-90deg);
text-align:center;
color:#fff;
line-height: 13rem;
}
}
<div class="circular-progress"></div>