<div class="my-points-and-gems-container">
      <div class="my-points-block">
        <div class="points-container">
          
          {% assign current_points = current_person.properties.points %}
          {% if current_points >= 500 and current_points < 1000 %}
            <img class="gem-image" src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/91327518-e518-422e-9454-3aa2b1fe061a/20240820152515_McNP_Point-Systems_2.png"></img>
          {% elsif current_points >= 1000 and current_points < 1500 %}
            <img class="gem-image" src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/91327518-e518-422e-9454-3aa2b1fe061a/20240820152521_McNP_Point-Systems_3.png"></img>
          {% elsif current_points >= 1500 and current_points < 2000 %}
            <img class="gem-image" src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/91327518-e518-422e-9454-3aa2b1fe061a/20240820152533_McNP_Point-Systems_4.png"></img>
          {% elsif current_points >= 2000 %}
            <img class="gem-image" src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/91327518-e518-422e-9454-3aa2b1fe061a/20240820152540_McNP_Point-Systems_5.png"></img>
          {% endif %}
          <h2>{{ current_person.properties.points }}</h2>
        </div>
        <div class="small-text">
          <p>points</p>
        </div>
      </div>
      <div class="my-gems-block">
        {% assign topaz_count = 0 %}
        {% for course in courses.enrolled %}
        {% if course.name contains "Harri Learning Gem" %}
        {% if course.progress == 100 %}
        {% assign topaz_count = topaz_count | plus: 1 %}
        {% endif %}
        {% endif %}
        {% endfor %}
  
        <div class="gem-grid-container">
          <div class="gem-container">
            {% for i in (1..topaz_count) %}
              <img class="gem-image" src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/91327518-e518-422e-9454-3aa2b1fe061a/20240820152507_McNP_Point-Systems_1.png"></img>
            {% endfor %}
          </div>
  
          {% if topaz_count == 0 and current_points < 500 %}
            <h5>
              <a href="/app/dashboard">Get started>></a>
            </h5>
          {% endif %}
  
          <div class="small-text">
            <p>gems</p>
          </div>
        </div>
      </div>
    </div>
  
  <style>
  
    .my-points-and-gems-container {
      display: grid;
      grid-template-rows: 1fr 1fr;
      gap: 20px;
      height: 100%;
    }
  
    .my-points-block,
    .my-gems-block {
      background-color: #F8FBFF;
      width: 100%;
      position: relative;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 36pt;
    }
  
    .points-container {
      display: flex;
      align-items: center;
      gap: 20px;
    }
  
    .gem-grid-container {
      display: flex;
      flex-direction: column;
    }
  
    .gem-container {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      grid-gap: 10px;
    }
  
    .gem-image {
      max-width: 100px;
      height: auto;
    }
  
    .small-text {
      font-size: 14px;
    }
  </style>