CSSBattle Apr 16, 2025

zimablue·2025년 4월 16일

CSSBattle

목록 보기
9/31

문제

풀이

<div class="container">
  <div class="grid-wrapper">
    <div></div><div></div><div></div><div></div><div></div>
    <div></div><div></div><div></div><div></div><div></div>
    <div></div><div></div><div></div><div></div><div></div>
  </div>
  <div class="u-shape"></div>
</div>
* {
  box-sizing: border-box;
  
  margin: 0;
}


.container {
  position: relative;
  
  width: 100vw;
  height: 100vh;
  
  background: #4FC1AD;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: 100px 40px 120px 40px 100px;
  grid-template-rows: 50px 40px 120px;
}

.grid-wrapper > div:nth-child(even) {
  background: #4C455B;
}

.grid-wrapper > div:nth-child(odd) {
  background: #4FC1AD;
}

.u-shape {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 360px;
  height: 200px;

  border: 40px solid #4C455B;
  border-top: none;

  box-shadow:
    -40px 0 0 #4FC1AD,
    40px 0 0 #4FC1AD; 

  transform: translate(-50%, -50%);
}

0개의 댓글