layoff score logo

by Spencer Smith

HTML

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap" rel="stylesheet">

<a class="logo" to="/">
  <span>layoff</span>
  <div class="score">
    score
    <div class="bubble-wrap">
      <span class="bubble green"></span>
      <span class="bubble orange"></span>
      <span class="bubble red"></span>
    </div>
  </div>
</a>

SCSS

:root {
  --bg: #f4efeb;
  --orange: #ed642b;
  --red: indianred;
  --green: mediumseagreen;
  --risk-green: mediumseagreen;
  --risk-gray: var(--transparent-darker);
  --risk-orange: goldenrod;
  --risk-red: indianred;
}
body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  background-color: var(--bg);
  color: black;
  margin-bottom: 30px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}
a.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: initial;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5rem;
}
.score {
  display: inline-flex;
  flex-direction: column;
  font-weight: 400;
  justify-content: center;
  text-align: center;
}
.bubble-wrap {
  margin-top: 2px;
  display: inline-flex;
  justify-content: space-between;
}
.bubble {
  display: inline-block;
  height: 10px;
  width: 18px;
  border-radius: 5px;
  &.red {
    background-color: var(--risk-red);
  }
  &.orange {
    background-color: var(--risk-orange);
  }
  &.green {
    background-color: var(--risk-green);
  }
}