120 lines
5.8 KiB
PHP
120 lines
5.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Australia Broadband Internet</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="#">ABI</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav ms-auto">
|
|
<li class="nav-item"><a class="nav-link" href="#hero">Home</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="#plans">Plans</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
|
|
<li class="nav-item"><a class="btn btn-primary ms-lg-3" href="#hero">Check Availability</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<section id="hero" class="hero text-center">
|
|
<div class="container">
|
|
<h1>Fast, Reliable Internet for Your Home</h1>
|
|
<p class="lead">Check if Australia Broadband Internet is available at your address.</p>
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-8">
|
|
<form id="availability-form">
|
|
<div class="input-group input-group-lg">
|
|
<input type="text" id="address-input" class="form-control" placeholder="Enter your street address, suburb and postcode...">
|
|
<button class="btn btn-primary" type="submit">Check Now</button>
|
|
</div>
|
|
</form>
|
|
<div id="availability-result" class="mt-3" style="display: none;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="plans" class="py-5">
|
|
<div class="container">
|
|
<h2 class="text-center mb-5">Our Plans</h2>
|
|
<div class="row">
|
|
<?php
|
|
require_once __DIR__ . '/db/config.php';
|
|
try {
|
|
$pdo = db();
|
|
$stmt = $pdo->query("SELECT * FROM plans WHERE is_active = 1 ORDER BY price");
|
|
$plans = $stmt->fetchAll();
|
|
} catch (PDOException $e) {
|
|
// For the public page, we might not want to show a detailed error.
|
|
// We can log the error and show a generic message or an empty state.
|
|
error_log($e->getMessage());
|
|
$plans = [];
|
|
}
|
|
|
|
if (empty($plans)):
|
|
?>
|
|
<div class="col-12 text-center">
|
|
<p>No plans available at the moment. Please check back later.</p>
|
|
</div>
|
|
<?php else: ?>
|
|
<?php foreach ($plans as $plan): ?>
|
|
<div class="col-md-3">
|
|
<div class="plan-card text-center">
|
|
<h3><?php echo htmlspecialchars($plan['speed']); ?></h3>
|
|
<p class="price">$<?php echo htmlspecialchars(number_format($plan['price'], 2)); ?><span class="period">/mo</span></p>
|
|
<p><?php echo htmlspecialchars($plan['description']); ?></p>
|
|
<a href="signup.php?plan_id=<?php echo $plan['id']; ?>" class="btn btn-primary">Choose Plan</a>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="about" class="bg-light py-5">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-8 mx-auto text-center">
|
|
<h2>About Us</h2>
|
|
<p class="lead">Australia Broadband Internet is a leading provider of high-speed internet services. We are dedicated to delivering reliable and affordable connectivity to homes across Australia.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="contact" class="py-5">
|
|
<div class="container text-center">
|
|
<h2>Contact Us</h2>
|
|
<p>Email: support@abinet.com.au</p>
|
|
<p>Phone: 1300 864 341</p>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="py-4 bg-dark text-white text-center">
|
|
<div class="container">
|
|
<p>© 2025 Australia Broadband Internet. All Rights Reserved.</p>
|
|
<p><a href="privacy.php" class="text-white">Privacy Policy</a></p>
|
|
</div>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
</body>
|
|
</html>
|