JSFiddle - React, Tailwind, and code Playground

by Константин Дралюк

HTML

<div class="card">
  <div class="card__body"></div>
  <div class="card__caption">The Hanged Man (XII)</div>
</div>

SCSS

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

.card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 10px 1px rgba(#000, .3);
  padding: 15px;
  display: inline-flex;
  flex-direction: column;
  width: 400px;
  height: 680px;
  box-sizing: border-box;
  &__body {
    border-radius: 10px 10px 0 0;
    height: calc(100% - 60px);
    width: 100%;
    background: #ccc;
    box-shadow: inset 0 0 0 3px;
  }
  &__caption {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    width: 100%;
    height: 60px;
    background: #222;
    color: #fff;
    font-family: 'Special Elite', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    box-sizing: border-box;
    padding-top: .1em;
  }
}