CSS Shapes

by elizabethkmathew

HTML

<section class="section-emoji align-flex">
  <div class="circle align-flex">
    <div class="inner-circle">
      KT
    </div>
  </div>
</section>

CSS

body {
  margin: 0;
  padding: 0;
}

.align-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-emoji {
  background-color: #fff09b;
  width: 100%;
  height: 100%;
}

.circle {
  width: 200px;
  height: 200px;
  border: 2px solid #000;
  border-radius: 50%;
  background-color: #e07f80;
  position: relative;
  z-index: 2;
}

.circle::before {
  position: absolute;
  content: "";
  width: 30px;
  height: 15px;
  top: 40px;
  left: 82px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  border: 3px solid #000;
  border-top: 0;
}

.circle::after {
  position: absolute;
  content: '';
  right: 2px;
  background-color: #faa7a8;
  width: 94%;
  height: 94%;
  top: 0;
  border-radius: 50%;
  z-index: -1;
}

.inner-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: #fff09b;
  position: relative;
  text-align: center;
  line-height: 50px;
}

.inner-circle::before,
.inner-circle::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000;
  top: -50px;
}

.inner-circle::before {
  left: 5px;
}

.inner-circle::after {
  right: 5px;
}

JavaScript

//#e07f80