<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">

  <title>3 Col Portfolio - Start Bootstrap Template</title>

  <!-- Bootstrap core CSS -->
  <link href="static/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  <!-- Custom styles for this template -->
  <link href="static/css/3-col-portfolio.css" rel="stylesheet">

</head>

<body>


  <!-- Page Content -->
  <div class="row" style="margin:10%">
    <div class="col-7" style="flex-wrap: wrap">

      <!-- Page Heading -->
      <div class="row">
      {% for o in users %}
        <div class="col-lg-4 col-sm-6" >
          <div class="card">
            <a href="#"><img class="card-img" src='media/{{ o.user.profile.icon }}' alt=""></a>
            <br>
            <h3 style="text-align: center;">{{ o.user.username }}</h3>
            <div class="w3-round" >
              <div class="row">
                <div class="col-sm-1">
                  <a href="#"><img src="https://images.vexels.com/media/users/3/143424/isolated/preview/2aa6cd7edd894a7cefa4eaf0f5916ee9-lightning-bolt-small-by-vexels.png" width="20" height="20" alt=""></a>
                </div>
                <div class="col-sm-10">
                  <div class="w3-light-gray w3-round " style="width:100%;">
                    <div class="w3-container w3-yellow w3-round w3-center" style="width:75%;">75%</div>
                  </div><br>
                </div>
              </div>
              <div class="row">
                <div class="col-sm-1">
                  <a href="#"><img src="https://www.chowan.edu/sites/chowan.edu/files/www/info-areas/sidebar-images/it-help-desk-logo.png" width="20" height="20" alt=""></a>
                </div>
                <div class="col-sm-10">
                  <div class="w3-light-gray w3-round " style="width:100%;">
                    <div class="w3-container w3-blue w3-round w3-center" style="width:50%;">50%</div>
                  </div><br>
                </div>
              </div>     
            </div>
          </div>
        </div>
      {% endfor %}
      </div>
    </div>
    <div class="col-1">
    </div>
    <div class="col-4">
      <div class="container achievements">
        <table class="table">
          <thead>
            <tr>
              <th> Available Challenges</th>
            </tr>
          </thead>
          <tbody>
            {% for challenge in challenges %}
                <tr>
                    <td>{{challenge.name}}</td>
                </tr>
            {% endfor %}
          </tbody>
        </table>
      </div>
    </div>
  </div>
  <!-- /.container -->
  <div class = "container">

  </div>
  <!-- Footer -->
  <footer class="py-5 bg-dark">

    <!-- /.container -->
  </footer>

  <!-- Bootstrap core JavaScript -->
  <script src="static/js/bootstrap.min.js"></script>

</body>

</html>
