

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

<head>

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css'>
  
<style>
@import url("https://fonts.googleapis.com/css?family=Merriweather:400,700,900&display=swap");
body {
  background-color: #000;
  background-image: url("img/bg.jpg");
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

h5 {
  font-size: 1.1rem;
}

/** Bootstrap Cards **/
.card {
  border: 0px;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform;
}

.card .card-title {
  margin-top: 0;
  margin-bottom: 0;
}
.card .card-body {
  overflow: hidden;
  padding-top: 1rem;
  padding-bottom: 0.15rem;
}
.card .card-footer {
  border: 0px;
  background-color: white;
  font-size: 0.75rem;
  color: var(--secondary);
  padding-bottom: 1.25rem;
}
</style>

</head>

<body translate="no" >
  <div class="container py-4">
  <center><img src="img/banner.png" width="400" height="150" /></center>
  <div class="card-group">
<?php
$db = new SQLite3('./api/.db.db');
$items = $db->query('SELECT * FROM apks'); 
while ($item = $items -> fetchArray(SQLITE3_ASSOC)) {
?>
    <div class="col-md-4 py-3">
      <div class="card">
        <img src="<?=$item['imge']?>" height="200" class="card-img-top" alt="Card Component">
        <div class="card-body">
          <div class="card-title">
            <h4><?=$item['name']?></h4>
          </div>
			<h5><?=$item['desc']?></h5>
			<a href="<?=$item['url']?>" target="_blank"><button type="button" class="btn btn-outline-success">Download</button></a>
        </div>
        <div class="card-footer">Versão: <?=$item['vers']?>&nbsp;&nbsp;&nbsp;Data: <?=$item['date']?></div>
      </div>
    </div>
<?php } ?>
  </div>
</body>
</html>
 
