JSFiddle - React, Tailwind, and code Playground

by Abdul Ahmad

HTML

<div class='card'>
  <h1 class='card__title'>
    <div>
      Upcoming
    </div>
    <div>
      Movies
    </div>
  </h1>
  <h2 class='card__subtitle'>
    <div class='card__subtitle__line'>
      
    </div>
    <div>
      MOVIES / SERIES
    </div>
  </h2>
</div>

CSS

.card {
  font-family: arial;
  color: white;
  padding: 40px;
  width: 300px;
  height: 400px;
  border-radius: 20px;
  background: linear-gradient(-25deg, #5be4a7, #2d79c3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.card__title {
  text-align: right;
  line-height: 40px;
}

.card__subtitle {
  font-size: 16px;
  display: flex;
}

.card__subtitle__line {
  flex-shrink: 1;
  flex-grow: 1;
  height: 1px;
  background: white;
}