<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Past Workouts</title>
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <div class="text-box">
    <h1>Past Workouts</h1>
    <p class="normal-text">
      <ul>
        <% finess.forEach(function(dat) { %>
          <h2><%= dat.date %></h2>
          Duration: <%= dat.duration %>
          <br>
          Type: <%= dat.type %>
          <br>
      <% }); %>
      </ul>
    </p>
    <form method = "post" action = "/returnHome">
      <input type = "submit" value = "Back" class = "red">
    </form>
  </div>
 </body>
</html>