JSFiddle - React, Tailwind, and code Playground

by jschr

HTML

<!doctype html>
<html>

<head>
  <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
  <link href="styles.css" rel="stylesheet" />
  <link href="animations.css" rel="stylesheet" />
</head>

<body>
  <div class="container">
    <div class="image-container">
      <img class="image" src="assets/skewers.png" />
    </div>
    <div class="text-container">
      <h1 class="text-heading">Skewer Sunday</h1>
      <h2 class="text-body">Happy Hour $1.99, 4-6pm</h2>
    </div>
  </div>
</body>

</html>

CSS

html {
  font-size: 42px;
  font-family: Roboto, sans-serif;
}

body {
  margin: 0;
  background-color: #333333;
  color: #ffffff;
}

.container {
  box-sizing: border-box;
  height: 100vh;
  padding: 0.5em;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.image-container {
  width: 60%;
  height: 100%;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2em;
}

.text-heading {
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffad0a;
}

.text-body {
  font-weight: 400;
  font-size: 1.5em;
  margin-top: 0;
  color: #fff;
}