JSFiddle - React, Tailwind, and code Playground

by Abdul Ahmad

HTML

<div class='level-1'>
  <div class='level-2'>
    content on this side
  </div>
  <div class='level-2 with-child'>
    <div class='large-image-container'>
      <div class='large-image'>
      </div>
    </div>
  </div>
</div>

SCSS

.level-1 {
  display: flex;
  border: 1px dashed red;
  box-sizing: border-box;
  padding: 20px;
}

.level-2 {
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px dashed blue;
  box-sizing: border-box;
  padding: 20px;
  max-width: 66%;
}

.with-child {
  max-width: 33%;
}

.large-image-container {
  width: 400px;
  height: 400px;
  position: relative;
  border: 1px dashed orange;
}

.large-image {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 100%;
  background: #aaa;
  box-sizing: border-box;
  padding: 20px;
  width: inherit;
  height: inherit;
  overflow-x: visible;
  background-image: url(https://static.addtoany.com/images/dracaena-cinnabari.jpg);
  background-size: cover;
}

.contents {
  border: 1px dashed gray;
  box-sizing: border-box;
  padding: 20px;
  max-width: 400px;
  min-width: 200px;
  flex-grow: 1;
  flex-shrink: 1;
  
  .content {
    width: calc(100% + 70px);
    height: 70px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    border-top-left-radius: 70px;
    border-bottom-left-radius: 70px;
    margin-top: 30px;
    position: relative;
    left: -70px;
    
    &:first-child {
      margin-top: 0;
      left: -95px;
    }
    
    &:last-child {
      left: -95px;
    }
  }
}