hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
wjcvelqp
/
public_html
/
despiteloveday.com.ng
/
Upload FileeE
HOME
<?php $page_title = 'Contact Us'; $success = false; $error = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $name = trim($_POST['name'] ?? ''); $email = trim($_POST['email'] ?? ''); $phone = trim($_POST['phone'] ?? ''); $message = trim($_POST['message'] ?? ''); if (empty($name) || empty($email) || empty($message)) { $error = 'Please fill in all required fields.'; } else { // Save to DB if available require_once 'config/database.php'; $db = getDB(); if ($db) { try { $stmt = $db->prepare("INSERT INTO messages (name, email, phone, message) VALUES (?, ?, ?, ?)"); $stmt->execute([$name, $email, $phone, $message]); } catch (Exception $e) {} } $success = true; } } include 'includes/header.php'; ?> <section class="page-hero"> <div class="container"> <h1>Contact Us</h1> <p>Have a question or ready to book? Reach out — we’re happy to help.</p> </div> </section> <section> <div class="container"> <div style="display:grid; grid-template-columns:1fr 1.2fr; gap:48px; max-width:1000px; margin:0 auto;"> <div> <h3 style="color:var(--navy); margin-bottom:24px;">Get in Touch</h3> <div style="margin-bottom:24px;"> <div style="display:flex; gap:14px; margin-bottom:20px;"> <div style="width:44px; height:44px; background:var(--cream); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--gold);"><i class="fas fa-map-marker-alt"></i></div> <div> <strong style="display:block; color:var(--navy);">Location</strong> <span style="color:var(--gray-600); font-size:14px;">12B RANTI ALABI DRIVE EGBEDA AKOWONJO LAGOS</span> </div> </div> <div style="display:flex; gap:14px; margin-bottom:20px;"> <div style="width:44px; height:44px; background:var(--cream); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--gold);"><i class="fas fa-phone-alt"></i></div> <div> <strong style="display:block; color:var(--navy);">Phone / WhatsApp</strong> <span style="color:var(--gray-600); font-size:14px;">+234 906 826 1012</span> </div> </div> <div style="display:flex; gap:14px; margin-bottom:20px;"> <div style="width:44px; height:44px; background:var(--cream); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--gold);"><i class="fas fa-envelope"></i></div> <div> <strong style="display:block; color:var(--navy);">Email</strong> <span style="color:var(--gray-600); font-size:14px;">bookings@despiteloveday.com</span> </div> </div> <div style="display:flex; gap:14px;"> <div style="width:44px; height:44px; background:var(--cream); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--gold);"><i class="fas fa-wifi"></i></div> <div> <strong style="display:block; color:var(--navy);">Amenities</strong> <span style="color:var(--gray-600); font-size:14px;">Free High-Speed Internet on site</span> </div> </div> </div> </div> <div style="background:white; padding:36px; border-radius:16px; box-shadow:var(--shadow);"> <?php if ($success): ?> <div class="alert alert-success">Thank you! Your message has been sent. We will respond shortly.</div> <?php elseif ($error): ?> <div class="alert alert-error"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <form method="POST" data-validate> <div class="form-group"> <label>Your Name *</label> <input type="text" name="name" class="form-control" required> </div> <div class="form-row"> <div class="form-group"> <label>Email *</label> <input type="email" name="email" class="form-control" required> </div> <div class="form-group"> <label>Phone</label> <input type="tel" name="phone" class="form-control"> </div> </div> <div class="form-group"> <label>Message *</label> <textarea name="message" class="form-control" required rows="5"></textarea> </div> <button type="submit" class="btn btn-gold" style="width:100%;">Send Message</button> </form> </div> </div> </div> </section> <style> @media (max-width: 768px) { section > .container > div { grid-template-columns: 1fr !important; } } </style> <?php include 'includes/footer.php'; ?>