192 lines
9.0 KiB
PHP
192 lines
9.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Bright Smiles Dental Studio</title>
|
|
|
|
<?php
|
|
// Read project preview data from environment
|
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'A modern, friendly dental practice offering a wide range of services.';
|
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|
?>
|
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>">
|
|
<meta name="keywords" content="dental practice, dentist, teeth whitening, orthodontics, general dentistry">
|
|
|
|
<?php if ($projectDescription): ?>
|
|
<!-- Open Graph meta tags -->
|
|
<meta property="og:title" content="Bright Smiles Dental Studio" />
|
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
<!-- Twitter meta tags -->
|
|
<meta name="twitter:title" content="Bright Smiles Dental Studio" />
|
|
<meta name="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
<?php endif; ?>
|
|
<?php if ($projectImageUrl): ?>
|
|
<!-- Open Graph image -->
|
|
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
<!-- Twitter image -->
|
|
<meta name="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
<?php endif; ?>
|
|
<meta property="og:type" content="website" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
|
|
<!-- Custom CSS -->
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Navbar -->
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top shadow-sm">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="#">Bright Smiles Dental</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 active" aria-current="page" href="index.php">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="about.php">About Us</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#services">Services</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>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Hero Section -->
|
|
<header class="hero">
|
|
<div class="container">
|
|
<h1 class="display-3">Your Smile, Our Passion.</h1>
|
|
<p class="lead">Welcome to a dental experience that is modern, comfortable, and tailored just for you. Let us help you achieve the healthy, beautiful smile you deserve.</p>
|
|
<a href="#appointment-form" class="btn btn-primary btn-lg">Book an Appointment</a>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Features Section -->
|
|
<section id="features" class="section bg-surface">
|
|
<div class="container text-center">
|
|
<h2 class="mb-5">Why Choose Bright Smiles Dental?</h2>
|
|
<div class="row">
|
|
<div class="col-md-4 mb-4">
|
|
<div class="feature-card">
|
|
<div class="icon"><i class="bi bi-gear-wide-connected"></i></div>
|
|
<h3>Modern Technology</h3>
|
|
<p>We use the latest digital X-rays, 3D imaging, and pain-free techniques for accurate and comfortable treatments.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 mb-4">
|
|
<div class="feature-card">
|
|
<div class="icon"><i class="bi bi-people-fill"></i></div>
|
|
<h3>Family-Friendly Care</h3>
|
|
<p>Our friendly team provides a warm, welcoming environment for patients of all ages, from children to seniors.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 mb-4">
|
|
<div class="feature-card">
|
|
<div class="icon"><i class="bi bi-clock-history"></i></div>
|
|
<h3>Emergency Services</h3>
|
|
<p>Dental emergencies can be stressful. We offer prompt, compassionate care when you need it most.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Appointment Form Section -->
|
|
<section id="appointment-form" class="section">
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8 text-center">
|
|
<h2>Request an Appointment</h2>
|
|
<p class="lead">Fill out the form below, and our team will contact you shortly to confirm your booking.</p>
|
|
</div>
|
|
<div class="col-lg-7 mt-4">
|
|
<form action="contact.php" method="POST">
|
|
<div class="mb-3">
|
|
<label for="name" class="form-label">Full Name</label>
|
|
<input type="text" class="form-control" id="name" name="name" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="email" class="form-label">Email Address</label>
|
|
<input type="email" class="form-control" id="email" name="email" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="message" class="form-label">Message (Optional: Preferred date/time)</label>
|
|
<textarea class="form-control" id="message" name="message" rows="4" required></textarea>
|
|
</div>
|
|
<div class="text-center">
|
|
<button type="submit" class="btn btn-primary btn-lg">Send Request</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Footer -->
|
|
<footer class="text-center">
|
|
<div class="container">
|
|
<p class="mb-0">© <?php echo date("Y"); ?> Bright Smiles Dental Studio. All Rights Reserved.</p>
|
|
<p class="small">123 Dental Lane, Smileville, ST 12345 | (123) 456-7890</p>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Toast Notification -->
|
|
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
|
|
<div id="notificationToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
|
<div class="toast-header">
|
|
<strong class="me-auto">Notification</strong>
|
|
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
</div>
|
|
<div class="toast-body">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
// Smooth scroll for anchor links
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
anchor.addEventListener('click', function (e) {
|
|
e.preventDefault();
|
|
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
|
behavior: 'smooth'
|
|
});
|
|
});
|
|
});
|
|
|
|
// Toast notification logic
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
const status = urlParams.get('status');
|
|
const toastEl = document.getElementById('notificationToast');
|
|
if (status && toastEl) {
|
|
const toast = new bootstrap.Toast(toastEl);
|
|
const toastBody = toastEl.querySelector('.toast-body');
|
|
if (status === 'success') {
|
|
toastBody.innerHTML = "Thank you! Your appointment request has been sent. We'll be in touch soon.";
|
|
toastEl.classList.add('bg-success', 'text-white');
|
|
} else if (status === 'error') {
|
|
toastBody.innerHTML = "Oops! Something went wrong. Please check your details and try again.";
|
|
toastEl.classList.add('bg-danger', 'text-white');
|
|
}
|
|
toast.show();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|