82 lines
4.7 KiB
PHP
82 lines
4.7 KiB
PHP
<?php include 'header.php'; ?>
|
|
|
|
<div class="container">
|
|
<div class="row align-items-center mb-5">
|
|
<div class="col-lg-7">
|
|
<h1 class="display-4 fw-bold mb-3">Download the Best <span class="text-success">Android APKs</span> Professionally</h1>
|
|
<p class="lead text-muted mb-4">Fast, safe, and secure downloads for your favorite mobile apps and games. No registration required to browse.</p>
|
|
<div class="d-flex gap-2">
|
|
<a href="#latest" class="btn btn-success btn-lg px-4 rounded-pill">Explore Apps</a>
|
|
<a href="/register" class="btn btn-outline-dark btn-lg px-4 rounded-pill">Join Referral</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-5 d-none d-lg-block">
|
|
<div class="position-relative">
|
|
<div class="bg-success opacity-10 position-absolute rounded-circle" style="width: 400px; height: 400px; top: -50px; right: -50px; z-index: -1;"></div>
|
|
<img src="https://img.icons8.com/color/512/android-os.png" class="img-fluid floating-animation" alt="Android APKs">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<section id="latest" class="mb-5">
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h2 class="fw-bold mb-0">Latest Releases</h2>
|
|
<div class="dropdown">
|
|
<button class="btn btn-light dropdown-toggle rounded-pill" type="button" data-bs-toggle="dropdown">
|
|
Categories
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="/">All</a></li>
|
|
<?php
|
|
$db = db();
|
|
$categories = $db->query("SELECT * FROM categories")->fetchAll();
|
|
foreach ($categories as $cat): ?>
|
|
<li><a class="dropdown-item" href="/?category=<?php echo $cat['slug']; ?>"><?php echo $cat['name']; ?></a></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row g-4">
|
|
<?php foreach ($apks as $apk): ?>
|
|
<div class="col-12 col-md-6 col-lg-4">
|
|
<div class="card h-100 border-0 shadow-sm rounded-4 hover-lift">
|
|
<div class="card-body p-4">
|
|
<div class="d-flex align-items-center mb-3">
|
|
<?php
|
|
$icon = !empty($apk['icon_path']) ? '/'.$apk['icon_path'] : $apk['image_url'];
|
|
?>
|
|
<img src="<?php echo $icon; ?>" class="rounded-3 me-3" width="60" height="60" alt="<?php echo $apk['title']; ?>" style="object-fit: cover;">
|
|
<div>
|
|
<h5 class="card-title fw-bold mb-0 text-truncate" style="max-width: 180px;"><?php echo $apk['title']; ?></h5>
|
|
<span class="badge bg-light text-dark fw-normal">v<?php echo $apk['version']; ?></span>
|
|
<?php if ($apk['is_vip']): ?>
|
|
<span class="badge bg-warning text-dark ms-1"><i class="bi bi-star-fill"></i> VIP</span>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<p class="card-text text-muted small mb-4 line-clamp-2"><?php echo $apk['description']; ?></p>
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span class="text-muted small"><i class="bi bi-download me-1"></i> <?php echo number_format($apk['total_downloads']); ?></span>
|
|
<a href="/apk/<?php echo $apk['slug']; ?>" class="btn btn-success rounded-pill px-4 btn-sm fw-medium">Details</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="bg-dark text-white p-5 rounded-5 mt-5">
|
|
<div class="row align-items-center text-center text-lg-start">
|
|
<div class="col-lg-8">
|
|
<h2 class="fw-bold mb-3">Start your referral journey today</h2>
|
|
<p class="mb-0 text-white-50">Earn <b>Rp 500</b> for every download via your link. Join our community and share your favorite APKs.</p>
|
|
</div>
|
|
<div class="col-lg-4 text-center text-lg-end mt-4 mt-lg-0">
|
|
<a href="/register" class="btn btn-success btn-lg px-5 rounded-pill">Get Started</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php include 'footer.php'; ?>
|