JSFiddle - React, Tailwind, and code Playground
by alois de gouvello
HTML
<div id="flux">
<div class="circle">
<div class="sun"></div>
<div class="hill"></div>
</div>
</div>
CSS
* {
margin: 0;
padding: 0;
}
body {
background-color: #ffeee3;
}
#flux {
height: 200px;
width: 200px;
position: relative;
margin: 84px auto;
}
#flux .circle, #flux .sun, #flux .hill {
position: absolute;
border-radius: 50%;
}
#flux .circle {
height: 100%;
width: 100%;
background: rgb(243, 204, 128);
overflow: hidden;
}
#flux .sun {
background: rgb(244, 159, 54);
width: 25%;
height: 25%;
right: 18%;
top: 38%;
border: 3px solid #fff;
}
#flux .hill {
height: 90%;
width: 90%;
left: 40%;
top: 40%;
margin-left: -100px;
background: rgb(128, 153, 194);
border-radius: 45% 12% 45% 42%;
-webkit-transform: rotate(40deg);
-moz-transform: rotate(40deg);
-o-transform: rotate(40deg);
transform: rotate(40deg);
}