JSFiddle - React, Tailwind, and code Playground

Classes Timetable

by Jennifer Perrin

HTML

<div id="content">
  <h1>Classes Timetable</h1>

  <ul class="timeline">
    <li class="event" data-date="7:00am - 07:45am">
      <h3>Circuit Training</h3>
      <p>Short interval training circuits to condition muscles and burn fat fast. Circuits may vary from centre to centre.</p>
    </li>
    <li class="event" data-date="9:30am - 10:30am">
      <h3>Total tone</h3>
      <p>Focuses on strength and endurance for the whole body and improves muscle tone. Instructor led.</p>    
    </li>
    <li class="event" data-date="10:30am - 11:30am">
      <h3>Zumba</h3>
      <p>A vigorous dance class to Latin music. Helps tone, shape and condition your body, burning up to 800 calories in one hour depending on how much you put in.</p>    
    </li>
    <li class="event" data-date="12:30pm - 1:30pm">
      <h3>Active Me</h3>
      <p>Active Me is an inclusive sports programme aimed at disabled people in Liverpool who experience barriers to doing physical activities and sport.</p>
    </li>
    <li class="event" data-date="5:30pm - 6:30pm">
      <h3>Zumba</h3>
      <p>A vigorous dance class to Latin music. Helps tone, shape and condition your body, burning up to 800 calories in one hour depending on how much you put in.</p>    
    </li>
    <li class="event" data-date="6:00pm - 6:45pm">
      <h3>Spinning</h3>
      <p>A vigorous class using stationary bikes with weighted flywheel. Focuses on strength, endurance, intervals and recovery. Burns calories and shapes muscles. Instructor led.</p>    
    </li>
    <li class="event" data-date="6:30pm - 7:30pm">
      <h3>Pilates</h3>
      <p>Lengthens and tones muscles using breathing and slow controlled movements.</p>
    </li>
    <li class="event" data-date="7:00pm - 7:45pm">
      <h3>Spinning</h3>
      <p>A vigorous class using stationary bikes with weighted flywheel. Focuses on strength, endurance, intervals and recovery. Burns calories and shapes muscles. Instructor led.</p>    
    </li>
    <li class="event"...

CSS

@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700|Oswald:400,300,700);
body {
  background: #e3e3e3;
  font-size: 16px;
}
strong {
  font-weight: 600;
}
h1 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  color: #333333;
  font-weight: 100;
  font-size: 2.4em;
}
#content {
  margin-top: 50px;
  text-align: center;
}
/* Timeline */
.timeline {
  border-left: 4px solid #4298c3;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: #333;
  font-family: 'Source Sans Pro', sans-serif;
  margin: 50px auto;
  letter-spacing: 0.5px;
  position: relative;
  line-height: 1.4em;
  font-size: 1.03em;
  padding: 30px;
  list-style: none;
  text-align: left;
  font-weight: 1;
  max-width: 50%;
}
.timeline h1,
.timeline h2,
.timeline h3 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  font-weight: 100;
  font-size: 1.4em;
}
.timeline .event {
  border-bottom: 1px dashed #4298c3;
  padding-bottom: 25px;
  margin-bottom: 50px;
  position: relative;
}
.timeline .event:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}
.timeline .event:before,
.timeline .event:after {
  position: absolute;
  display: block;
  top: 0;
}
.timeline .event:before {
  left: -217.5px;
  color: #717171;
  content: attr(data-date);
  text-align: right;
  font-weight: 400;
  font-size: 0.9em;
  min-width: 120px;
}
.timeline .event:after {
  box-shadow: 0 0 0 4px #169eda;
  left: -57.85px;
  background: #91c740;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  content: "";
  top: 5px;
}
@media (max-width: 800px) {

  .timeline .event:before {
    left: -0.5px;
    top: 28px;
    background-color: #4298c3;
    color: white;
    margin-top: 8px;
    padding: 2px 8px 2px 8px;
    content: attr(data-date);
    text-align: right;
    font-weight: 400;
    font-size: 0.9em;
    min-width: 120px;
  }
  .timeline .event p {
      top: 27px;
      padding:...