132 lines
6.1 KiB
PHP
132 lines
6.1 KiB
PHP
<?php
|
|
// search.php
|
|
$pageTitle = "Search Corals - Coral Hub";
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo $pageTitle; ?></title>
|
|
<meta name="description" content="Search and filter through a vast collection of corals from sellers worldwide. Find your perfect coral at Coral Hub.">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
|
|
<!-- Google Fonts -->
|
|
<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@300;400;600;700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
|
|
|
|
<!-- Custom CSS -->
|
|
<link rel="stylesheet" href="assets/css/custom.css">
|
|
|
|
<!-- Feather Icons -->
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
</head>
|
|
<body class="bg-light">
|
|
|
|
<!-- Navbar -->
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm sticky-top">
|
|
<div class="container">
|
|
<a class="navbar-brand fw-bold text-primary" href="index.php"><i data-feather="box" class="me-2"></i>Coral Hub</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
<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="index.php">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link active" aria-current="page" href="search.php">Search Corals</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="index.php#about">About</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="index.php#contact">Contact</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Main Content -->
|
|
<main class="container my-5">
|
|
<header class="text-center mb-5">
|
|
<h1 class="display-4 fw-bold">Find Your Perfect Coral</h1>
|
|
<p class="lead text-muted">Our entire collection at your fingertips.</p>
|
|
</header>
|
|
|
|
<!-- Search and Filter Section -->
|
|
<div class="row mb-4">
|
|
<div class="col-lg-8 mx-auto">
|
|
<div class="input-group input-group-lg mb-3">
|
|
<input type="text" id="searchInput" class="form-control" placeholder="Search by name, e.g., 'Zoanthid', 'Acropora'..." aria-label="Search for corals">
|
|
<button class="btn btn-primary" type="button" id="searchButton"><i data-feather="search" class="align-text-bottom"></i></button>
|
|
</div>
|
|
<div class="row g-2">
|
|
<div class="col-md-4">
|
|
<select id="filterType" class="form-select">
|
|
<option selected value="">All Types</option>
|
|
<option value="SPS">SPS</option>
|
|
<option value="LPS">LPS</option>
|
|
<option value="Soft Coral">Soft Coral</option>
|
|
<option value="Zoanthid">Zoanthid</option>
|
|
<option value="Mushroom">Mushroom</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<select id="filterColor" class="form-select">
|
|
<option selected value="">All Colors</option>
|
|
<option value="Blue">Blue</option>
|
|
<option value="Red">Red</option>
|
|
<option value="Green">Green</option>
|
|
<option value="Yellow">Yellow</option>
|
|
<option value="Pink">Pink</option>
|
|
<option value="Rainbow">Rainbow</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<input type="range" class="form-range" id="priceRange" min="0" max="500" step="10">
|
|
<div class="d-flex justify-content-between">
|
|
<small>Price: $<span id="priceValue">0</span></small>
|
|
<small>$500</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Coral Grid -->
|
|
<div id="coral-grid" class="row g-4">
|
|
<!-- Corals will be dynamically inserted here -->
|
|
</div>
|
|
<div id="no-results" class="text-center my-5" style="display: none;">
|
|
<h3 class="fw-light">No Corals Found</h3>
|
|
<p class="text-muted">Try adjusting your search or filters.</p>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer class="bg-white border-top py-4 mt-5">
|
|
<div class="container text-center text-muted">
|
|
<p class="mb-1">© <?php echo date("Y"); ?> Coral Hub. All Rights Reserved.</p>
|
|
<p class="mb-0 small"><a href="privacy.php" class="text-muted">Privacy Policy</a></p>
|
|
</div>
|
|
</footer>
|
|
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
|
|
|
<!-- Custom JS for Search -->
|
|
<script src="assets/js/corals.js?v=<?php echo time(); ?>"></script>
|
|
|
|
<script>
|
|
feather.replace()
|
|
</script>
|
|
</body>
|
|
</html>
|