<!DOCTYPE html>
<html>
<head>
<style>
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.05em;
  background: #171A31;
  color: white;
  margin: 0;
  padding: 20px;
}

.timeline {
  margin: 4em auto;
  position: relative;
  max-width: 46em;
  padding: 0;
}

.timeline:before {
  background-color: white;
  content: '';
  margin-left: -1px;
  position: absolute;
  top: 0;
  left: 2em;
  width: 2px;
  height: 100%;
}

.timeline-event {
  position: relative;
  margin: 3em 0;
  list-style: none;
}

.timeline-event-icon {
  transition: transform 0.2s ease-in;
  transform: rotate(45deg);
  background-color: white;
  outline: 10px solid #171A31;
  display: block;
  margin: 0.5em 0.5em 0.5em -0.5em;
  position: absolute;
  top: 0;
  left: 2em;
  width: 1em;
  height: 1em;
}

.timeline-event:hover .timeline-event-icon {
  transform: rotate(-45deg);
  background-color: #E74C3C;
}

.timeline-event-copy {
  padding: 2em;
  position: relative;
  top: -1.875em;
  left: 4em;
  width: 80%;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.timeline-event-copy h3 {
  font-size: 1.75em;
  margin: 0 0 0.5em;
}

.timeline-event-copy h4 {
  font-size: 1.2em;
  margin: 0 0 1.2em;
}

.timeline-event-copy strong {
  font-weight: 700;
}

.timeline-event-copy p {
  margin: 0 0 1.2em;
}

.timeline-event-thumbnail {
  color: white;
  font-size: 0.75em;
  background-color: #E74C3C;
  display: inline-block;
  margin-bottom: 1.2em;
  padding: 0.25em 1em;
  border-radius: 25px;
}
</style>
</head>
<body>

<ul class="timeline">
  <li class="timeline-event">
    <label class="timeline-event-icon"></label>
    <div class="timeline-event-copy">
      <p class="timeline-event-thumbnail">2022 - Present</p>
      <h3>Company One</h3>
      <h4>Senior Developer</h4>
      <p><strong>Frontend Development</strong><br>
      Building responsive and adaptive websites using modern technologies.</p>
    </div>
  </li>
  <li class="timeline-event">
    <label class="timeline-event-icon"></label>
    <div class="timeline-event-copy">
      <p class="timeline-event-thumbnail">2020 - 2022</p>
      <h3>Company Two</h3>
      <h4>Web Developer</h4>
      <p>Design and development of digital products using latest web technologies.</p>
    </div>
  </li>
  <li class="timeline-event">
    <label class="timeline-event-icon"></label>
    <div class="timeline-event-copy">
      <p class="timeline-event-thumbnail">2018 - 2020</p>
      <h3>Company Three</h3>
      <h4>Junior Developer</h4>
      <p><strong>Development & Consulting</strong><br>
      Working on various client projects and internal systems.</p>
    </div>
  </li>
</ul>

</body>
</html>