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

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" /> 
  <link rel="stylesheet" href="/stylesheets/map.css">
  <link rel="stylesheet" href="/stylesheets/finalNav.css.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css"
    integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
    integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
  <style>
    .mapboxgl-popup {
      max-width: 400px;
      font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
      border-radius: 5px;
    }

    .mapboxgl-popup-content {
      position: relative;
      background: #fff;
      border-radius: 3px;
      box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
      padding: 10px 10px 15px;
      pointer-events: auto;
      border: 4px solid #00ffcc;
      font-style: italic;
      font-family: Georgia, 'Times New Roman', Times, serif;
      background-color: aqua;
    }

    p {
      padding: 0px auto;
    }
  </style>
  <script src="https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.js"></script>
  <link href="https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.css" rel="stylesheet" />
  <title>Donor Locator</title>
</head>

<body>
  <div class="container mt-3">
    <div id="mySidebar" class="sidebar">
      <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
     
      <a href="/">
          <i class="fa fa-home"></i>
          Home
      </a>

      <a href="/search">
          <i class="fa fa-search"></i>
          Search Donor
      </a>
      <a href="/register">
          <i class="fa fa-donate"></i>
          Be Donor
      </a>

      <a href="/#team">
          <i class="fas fa-users-cog"></i>
          Team
      </a>
      <a href="/about">
          <i class="fa fa-crosshairs"></i>
          Our Aim
      </a>
    </div>
    
    
  <div class="t">
      <h3>GIO
          <span> Plasma</span>
      </h3>
  </div>


    <div id="main">
      <button class="openbtn" onclick="openNav()">&#9776;</button>
    </div>
    <h1 class="display-4 text-center mt-5">
      <i class="fas fa-map-marked mr-4"></i>Donor <span>Locator</span>
    </h1>

    <div class="my-5 map" id="map" style="width: 100%; height: 500px; border-radius: 5px"></div>
  </div>

    <div class="container mb-5">
      <div class=" row py-2 px-5">
        <form id="dist" class="Box col-12 col-sm-10 col-md-6 col-lg-4  offset-0 offset-sm-1 offset-lg-4 offset-md-3">
           <div class="form-group pt-3">
               <label for="store-id">Blood Group </label>
               <input id="store-id" class="form-control" value=<%= bg %> readonly />
                   
             </div>

             <div class="form-group">
               <label for="maxd" style="font-size: larger;"><small>Max distance between you and donor in kms</small></label>
               <input type="number" id="maxd" class="form-control" min="1" placeholder="Distance in kms"/>
             </div>

             <button type="submit" class="btn btn-primary mb-4 mt-4 col-12">Filter Donors</button>

        </form>

        <h4 id="err" class="col-12 text-center pt-5">No Donors or Blood Banks in such short Region</h4>
    </div>
    </div>
    

    <div class="listBox  container my-5">

      <div class="row px-5" id="123">
        </div>
      
        <div class="row px-5" id="1234">
        </div>
      </div>
    </div>

  
  <script src="/js/map.js"></script>
  <script src="/js/dashBoard.js"></script>
</body>

</html>
