Compare commits
No commits in common. "ai-dev" and "master" have entirely different histories.
35
about.php
@ -1,35 +0,0 @@
|
|||||||
<?php
|
|
||||||
$pageTitle = "Our Story";
|
|
||||||
include 'header.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="container py-5">
|
|
||||||
<div class="row align-items-center mb-5">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h1 class="mb-4">Why ElderEase Exists</h1>
|
|
||||||
<p class="lead mb-4">ElderEase was created with one simple belief: growing older should never mean losing dignity, independence, or safety.</p>
|
|
||||||
|
|
||||||
<p class="mb-4">As mobility becomes more challenging, everyday tasks can feel risky or frustrating. We focus on simple, thoughtfully designed essentials that make daily life easier — without complicated technology or learning curves.</p>
|
|
||||||
|
|
||||||
<p class="mb-4">ElderEase products are chosen to support comfort, confidence, and peace of mind for seniors and the families who care for them.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 text-center">
|
|
||||||
<img src="/assets/pasted-20260129-004647-d9048856.png" alt="Happy seniors at home" class="img-fluid rounded shadow-sm border border-gold">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-md-8">
|
|
||||||
<div class="p-5 bg-charcoal text-white rounded my-5">
|
|
||||||
<h4 class="text-gold mb-3">Our Mission</h4>
|
|
||||||
<p class="mb-0">To help seniors live safely, comfortably, and independently at home through thoughtful design and human-centric care.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="text-center">
|
|
||||||
<a href="/product.php" class="btn btn-gold btn-lg">Explore Our Solutions</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include 'footer.php'; ?>
|
|
||||||
79
api/cart.php
@ -1,79 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
|
|
||||||
if (!isset($_SESSION['cart'])) {
|
|
||||||
$_SESSION['cart'] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = $_GET['action'] ?? '';
|
|
||||||
|
|
||||||
function getCartCount() {
|
|
||||||
$count = 0;
|
|
||||||
if (isset($_SESSION['cart'])) {
|
|
||||||
foreach ($_SESSION['cart'] as $item) {
|
|
||||||
$count += $item['quantity'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $count;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ($action) {
|
|
||||||
case 'add':
|
|
||||||
$id = $_POST['id'] ?? null;
|
|
||||||
$name = $_POST['name'] ?? '';
|
|
||||||
$price = $_POST['price'] ?? 0;
|
|
||||||
$image = $_POST['image'] ?? '';
|
|
||||||
|
|
||||||
if ($id) {
|
|
||||||
if (isset($_SESSION['cart'][$id])) {
|
|
||||||
$_SESSION['cart'][$id]['quantity']++;
|
|
||||||
} else {
|
|
||||||
$_SESSION['cart'][$id] = [
|
|
||||||
'id' => $id,
|
|
||||||
'name' => $name,
|
|
||||||
'price' => (float)$price,
|
|
||||||
'image' => $image,
|
|
||||||
'quantity' => 1
|
|
||||||
];
|
|
||||||
}
|
|
||||||
echo json_encode(['success' => true, 'cart_count' => getCartCount()]);
|
|
||||||
} else {
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Invalid product']);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'remove':
|
|
||||||
$id = $_POST['id'] ?? null;
|
|
||||||
if ($id && isset($_SESSION['cart'][$id])) {
|
|
||||||
unset($_SESSION['cart'][$id]);
|
|
||||||
echo json_encode(['success' => true, 'cart_count' => getCartCount()]);
|
|
||||||
} else {
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Product not in cart']);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'update':
|
|
||||||
$id = $_POST['id'] ?? null;
|
|
||||||
$quantity = (int)($_POST['quantity'] ?? 1);
|
|
||||||
if ($id && isset($_SESSION['cart'][$id])) {
|
|
||||||
if ($quantity <= 0) {
|
|
||||||
unset($_SESSION['cart'][$id]);
|
|
||||||
} else {
|
|
||||||
$_SESSION['cart'][$id]['quantity'] = $quantity;
|
|
||||||
}
|
|
||||||
echo json_encode(['success' => true, 'cart_count' => getCartCount()]);
|
|
||||||
} else {
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Product not in cart']);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'get':
|
|
||||||
echo json_encode(['success' => true, 'cart' => array_values($_SESSION['cart']), 'cart_count' => getCartCount()]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Invalid action']);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once __DIR__ . '/../db/config.php';
|
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
||||||
$name = $_POST['name'] ?? '';
|
|
||||||
$email = $_POST['email'] ?? '';
|
|
||||||
$message = $_POST['message'] ?? '';
|
|
||||||
$product_id = $_POST['product_id'] ?? '';
|
|
||||||
|
|
||||||
if (empty($name) || empty($email)) {
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Name and email are required.']);
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
$pdo = db();
|
|
||||||
$stmt = $pdo->prepare("INSERT INTO inquiries (name, email, message, product_id) VALUES (?, ?, ?, ?)");
|
|
||||||
$stmt->execute([$name, $email, $message, $product_id]);
|
|
||||||
|
|
||||||
echo json_encode(['success' => true]);
|
|
||||||
} catch (PDOException $e) {
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Database error.']);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo json_encode(['success' => false, 'error' => 'Invalid request.']);
|
|
||||||
}
|
|
||||||
@ -1,111 +1,346 @@
|
|||||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--ee-charcoal: #121212;
|
--color-bg: #ffffff;
|
||||||
--ee-gold: #D4AF37;
|
--color-text: #1a1a1a;
|
||||||
--ee-gold-hover: #B8962E;
|
--color-primary: #2563EB; /* Vibrant Blue */
|
||||||
--ee-white: #FFFFFF;
|
--color-secondary: #000000;
|
||||||
--ee-gray-light: #F8F9FA;
|
--color-accent: #A3E635; /* Lime Green */
|
||||||
--ee-text: #2D2D2D;
|
--color-surface: #f8f9fa;
|
||||||
|
--font-heading: 'Space Grotesk', sans-serif;
|
||||||
|
--font-body: 'Inter', sans-serif;
|
||||||
|
--border-width: 2px;
|
||||||
|
--shadow-hard: 5px 5px 0px #000;
|
||||||
|
--shadow-hover: 8px 8px 0px #000;
|
||||||
|
--radius-pill: 50rem;
|
||||||
|
--radius-card: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Inter', sans-serif;
|
font-family: var(--font-body);
|
||||||
color: var(--ee-text);
|
background-color: var(--color-bg);
|
||||||
font-size: 1.125rem;
|
color: var(--color-text);
|
||||||
line-height: 1.6;
|
overflow-x: hidden;
|
||||||
background-color: var(--ee-white);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, .h1, .h2, .h3 {
|
h1, h2, h3, h4, h5, h6, .navbar-brand {
|
||||||
font-weight: 600;
|
font-family: var(--font-heading);
|
||||||
color: var(--ee-charcoal);
|
letter-spacing: -0.03em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure headers inside white-text containers are visible */
|
/* Utilities */
|
||||||
.text-white h1, .text-white h2, .text-white h3,
|
.text-primary { color: var(--color-primary) !important; }
|
||||||
.hero-section h1, .hero-section h2, .hero-section h3 {
|
.bg-black { background-color: #000 !important; }
|
||||||
color: var(--ee-white) !important;
|
.text-white { color: #fff !important; }
|
||||||
|
.shadow-hard { box-shadow: var(--shadow-hard); }
|
||||||
|
.border-2-black { border: var(--border-width) solid #000; }
|
||||||
|
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
|
||||||
|
|
||||||
|
/* Navbar */
|
||||||
|
.navbar {
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
border-bottom: var(--border-width) solid transparent;
|
||||||
|
transition: all 0.3s;
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-charcoal {
|
.navbar.scrolled {
|
||||||
background-color: var(--ee-charcoal) !important;
|
border-bottom-color: #000;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-gold {
|
.brand-text {
|
||||||
color: var(--ee-gold) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-gold {
|
|
||||||
background-color: var(--ee-gold);
|
|
||||||
color: var(--ee-white);
|
|
||||||
border: none;
|
|
||||||
padding: 0.8rem 2rem;
|
|
||||||
font-weight: 600;
|
|
||||||
border-radius: 4px;
|
|
||||||
transition: background-color 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-gold:hover {
|
|
||||||
background-color: var(--ee-gold-hover);
|
|
||||||
color: var(--ee-white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-outline-gold {
|
|
||||||
border: 2px solid var(--ee-gold);
|
|
||||||
color: var(--ee-gold);
|
|
||||||
background: transparent;
|
|
||||||
padding: 0.8rem 2rem;
|
|
||||||
font-weight: 600;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-outline-gold:hover {
|
|
||||||
background-color: var(--ee-gold);
|
|
||||||
color: var(--ee-white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-brand {
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
letter-spacing: -0.5px;
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--color-text);
|
||||||
|
margin-left: 1rem;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link:hover, .nav-link.active {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
|
.btn {
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
padding: 0.8rem 2rem;
|
||||||
|
border-radius: var(--radius-pill);
|
||||||
|
border: var(--border-width) solid #000;
|
||||||
|
transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
|
||||||
|
box-shadow: var(--shadow-hard);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
transform: translate(-2px, -2px);
|
||||||
|
box-shadow: var(--shadow-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:active {
|
||||||
|
transform: translate(2px, 2px);
|
||||||
|
box-shadow: 0 0 0 #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background-color: var(--color-primary);
|
||||||
|
border-color: #000;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: #1d4ed8;
|
||||||
|
border-color: #000;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-dark {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-cta {
|
||||||
|
background-color: var(--color-accent);
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-cta:hover {
|
||||||
|
background-color: #8cc629;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
|
.hero-section {
|
||||||
|
min-height: 100vh;
|
||||||
|
padding-top: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.background-blob {
|
||||||
|
position: absolute;
|
||||||
|
border-radius: 50%;
|
||||||
|
filter: blur(80px);
|
||||||
|
opacity: 0.6;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blob-1 {
|
||||||
|
top: -10%;
|
||||||
|
right: -10%;
|
||||||
|
width: 600px;
|
||||||
|
height: 600px;
|
||||||
|
background: radial-gradient(circle, var(--color-accent), transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blob-2 {
|
||||||
|
bottom: 10%;
|
||||||
|
left: -10%;
|
||||||
|
width: 500px;
|
||||||
|
height: 500px;
|
||||||
|
background: radial-gradient(circle, var(--color-primary), transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight-text {
|
||||||
|
background: linear-gradient(120deg, transparent 0%, transparent 40%, var(--color-accent) 40%, var(--color-accent) 100%);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 40%;
|
||||||
|
background-position: 0 88%;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot { color: var(--color-primary); }
|
||||||
|
|
||||||
|
.badge-pill {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-weight: 700;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 4px 4px 0 #000;
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Marquee */
|
||||||
|
.marquee-container {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
border-top: 2px solid #000;
|
||||||
|
border-bottom: 2px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rotate-divider {
|
||||||
|
transform: rotate(-2deg) scale(1.05);
|
||||||
|
z-index: 10;
|
||||||
|
position: relative;
|
||||||
|
margin-top: -50px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marquee-content {
|
||||||
|
display: inline-block;
|
||||||
|
animation: marquee 20s linear infinite;
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes marquee {
|
||||||
|
0% { transform: translateX(0); }
|
||||||
|
100% { transform: translateX(-50%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Portfolio Cards */
|
||||||
|
.project-card {
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-radius: var(--radius-card);
|
||||||
|
overflow: hidden;
|
||||||
|
background: #fff;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
box-shadow: var(--shadow-hard);
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card:hover {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
box-shadow: 8px 8px 0 #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-img-holder {
|
||||||
|
height: 250px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-bottom: 2px solid #000;
|
||||||
|
position: relative;
|
||||||
|
font-size: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.placeholder-art {
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card:hover .placeholder-art {
|
||||||
|
transform: scale(1.2) rotate(10deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-soft-blue { background-color: #e0f2fe; }
|
||||||
|
.bg-soft-green { background-color: #dcfce7; }
|
||||||
|
.bg-soft-purple { background-color: #f3e8ff; }
|
||||||
|
.bg-soft-yellow { background-color: #fef9c3; }
|
||||||
|
|
||||||
|
.category-tag {
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
right: 15px;
|
||||||
|
background: #000;
|
||||||
|
color: #fff;
|
||||||
|
padding: 5px 12px;
|
||||||
|
border-radius: 20px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-body { padding: 1.5rem; }
|
||||||
|
|
||||||
|
.link-arrow {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #000;
|
||||||
|
font-weight: 700;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-arrow i { transition: transform 0.2s; margin-left: 5px; }
|
||||||
|
.link-arrow:hover i { transform: translateX(5px); }
|
||||||
|
|
||||||
|
/* About */
|
||||||
|
.about-image-stack {
|
||||||
|
position: relative;
|
||||||
|
height: 400px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stack-card {
|
||||||
|
position: absolute;
|
||||||
|
width: 80%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: var(--radius-card);
|
||||||
|
border: 2px solid #000;
|
||||||
|
box-shadow: var(--shadow-hard);
|
||||||
|
left: 10%;
|
||||||
|
transform: rotate(-3deg);
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms */
|
||||||
|
.form-control {
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
padding: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
background: #f8f9fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control:focus {
|
||||||
|
box-shadow: 4px 4px 0 var(--color-primary);
|
||||||
|
border-color: #000;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Animations */
|
||||||
|
.animate-up {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(30px);
|
||||||
|
animation: fadeUp 0.8s ease forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
.delay-100 { animation-delay: 0.1s; }
|
||||||
|
.delay-200 { animation-delay: 0.2s; }
|
||||||
|
|
||||||
|
@keyframes fadeUp {
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Social */
|
||||||
|
.social-links a {
|
||||||
|
transition: transform 0.2s;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.social-links a:hover {
|
||||||
|
transform: scale(1.2) rotate(10deg);
|
||||||
|
color: var(--color-accent) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive */
|
||||||
|
@media (max-width: 991px) {
|
||||||
|
.rotate-divider {
|
||||||
|
transform: rotate(0);
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-section {
|
.hero-section {
|
||||||
padding: 100px 0;
|
padding-top: 120px;
|
||||||
background-color: var(--ee-charcoal);
|
text-align: center;
|
||||||
color: var(--ee-white);
|
min-height: auto;
|
||||||
|
padding-bottom: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.trust-pillar {
|
.display-1 { font-size: 3.5rem; }
|
||||||
border: 1px solid #eee;
|
|
||||||
padding: 2rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-card img {
|
.blob-1 { width: 300px; height: 300px; right: -20%; }
|
||||||
border-radius: 4px;
|
.blob-2 { width: 300px; height: 300px; left: -20%; }
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
border-top: 1px solid #eee;
|
|
||||||
padding: 60px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Zoom Effect */
|
|
||||||
.zoom-container {
|
|
||||||
overflow: hidden;
|
|
||||||
border-radius: 8px;
|
|
||||||
border: 2px solid var(--ee-gold);
|
|
||||||
}
|
|
||||||
|
|
||||||
.img-zoom-20 {
|
|
||||||
transform: scale(1.2);
|
|
||||||
transform-origin: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Senior Friendly Adjustments */
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
body { font-size: 1rem; }
|
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 16 KiB |
@ -1,132 +1,73 @@
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
// Inquiry Form Handling
|
|
||||||
const inquiryForm = document.getElementById('inquiryForm');
|
// Smooth scrolling for navigation links
|
||||||
if (inquiryForm) {
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||||
inquiryForm.addEventListener('submit', async (e) => {
|
anchor.addEventListener('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const formData = new FormData(inquiryForm);
|
const targetId = this.getAttribute('href');
|
||||||
const submitBtn = inquiryForm.querySelector('button[type="submit"]');
|
if (targetId === '#') return;
|
||||||
|
|
||||||
submitBtn.disabled = true;
|
const targetElement = document.querySelector(targetId);
|
||||||
submitBtn.innerHTML = '<span class="spinner-border spinner-border-sm"></span> Sending...';
|
if (targetElement) {
|
||||||
|
// Close mobile menu if open
|
||||||
|
const navbarToggler = document.querySelector('.navbar-toggler');
|
||||||
|
const navbarCollapse = document.querySelector('.navbar-collapse');
|
||||||
|
if (navbarCollapse.classList.contains('show')) {
|
||||||
|
navbarToggler.click();
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
// Scroll with offset
|
||||||
const response = await fetch('/api/inquiry.php', {
|
const offset = 80;
|
||||||
method: 'POST',
|
const elementPosition = targetElement.getBoundingClientRect().top;
|
||||||
body: formData
|
const offsetPosition = elementPosition + window.pageYOffset - offset;
|
||||||
|
|
||||||
|
window.scrollTo({
|
||||||
|
top: offsetPosition,
|
||||||
|
behavior: "smooth"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
const result = await response.json();
|
|
||||||
|
|
||||||
if (result.success) {
|
// Navbar scroll effect
|
||||||
inquiryForm.innerHTML = `<div class="text-center py-4">
|
const navbar = document.querySelector('.navbar');
|
||||||
<div class="h1 text-gold mb-3"><i class="bi bi-check-circle"></i></div>
|
window.addEventListener('scroll', () => {
|
||||||
<h6>Thank you, ${formData.get('name')}!</h6>
|
if (window.scrollY > 50) {
|
||||||
<p class="small text-muted mb-0">We have received your inquiry and will contact you shortly.</p>
|
navbar.classList.add('scrolled', 'shadow-sm', 'bg-white');
|
||||||
</div>`;
|
navbar.classList.remove('bg-transparent');
|
||||||
} else {
|
} else {
|
||||||
alert('Something went wrong. Please try again.');
|
navbar.classList.remove('scrolled', 'shadow-sm', 'bg-white');
|
||||||
submitBtn.disabled = false;
|
navbar.classList.add('bg-transparent');
|
||||||
submitBtn.innerHTML = 'Send Inquiry';
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error:', error);
|
|
||||||
alert('Connection error. Please try again later.');
|
|
||||||
submitBtn.disabled = false;
|
|
||||||
submitBtn.innerHTML = 'Send Inquiry';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize cart count
|
// Intersection Observer for fade-up animations
|
||||||
updateCartCount();
|
const observerOptions = {
|
||||||
|
threshold: 0.1,
|
||||||
|
rootMargin: "0px 0px -50px 0px"
|
||||||
|
};
|
||||||
|
|
||||||
|
const observer = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
entry.target.classList.add('animate-up');
|
||||||
|
entry.target.style.opacity = "1";
|
||||||
|
observer.unobserve(entry.target); // Only animate once
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, observerOptions);
|
||||||
|
|
||||||
|
// Select elements to animate (add a class 'reveal' to them in HTML if not already handled by CSS animation)
|
||||||
|
// For now, let's just make sure the hero animations run.
|
||||||
|
// If we want scroll animations, we'd add opacity: 0 to elements in CSS and reveal them here.
|
||||||
|
// Given the request, the CSS animation I added runs on load for Hero.
|
||||||
|
// Let's make the project cards animate in.
|
||||||
|
|
||||||
|
const projectCards = document.querySelectorAll('.project-card');
|
||||||
|
projectCards.forEach((card, index) => {
|
||||||
|
card.style.opacity = "0";
|
||||||
|
card.style.animationDelay = `${index * 0.1}s`;
|
||||||
|
observer.observe(card);
|
||||||
});
|
});
|
||||||
|
|
||||||
function addToCart(id, name, price, image) {
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('id', id);
|
|
||||||
formData.append('name', name);
|
|
||||||
formData.append('price', price);
|
|
||||||
formData.append('image', image);
|
|
||||||
|
|
||||||
fetch('/api/cart.php?action=add', {
|
|
||||||
method: 'POST',
|
|
||||||
body: formData
|
|
||||||
})
|
|
||||||
.then(response => {
|
|
||||||
if (!response.ok) throw new Error('Network response was not ok');
|
|
||||||
return response.json();
|
|
||||||
})
|
|
||||||
.then(data => {
|
|
||||||
if (data.success) {
|
|
||||||
updateCartCount(data.cart_count);
|
|
||||||
showToast(`<i class="bi bi-cart-check-fill me-2"></i> ${name} added to cart!`);
|
|
||||||
} else {
|
|
||||||
console.error('API Error:', data.error);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
console.error('Error adding to cart:', error);
|
|
||||||
alert('Could not add item to cart. Please try again.');
|
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
function updateCartCount(count = null) {
|
|
||||||
if (count !== null) {
|
|
||||||
renderCartCount(count);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch('/api/cart.php?action=get')
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(data => {
|
|
||||||
if (data.success) {
|
|
||||||
renderCartCount(data.cart_count);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(error => console.error('Error fetching cart count:', error));
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderCartCount(count) {
|
|
||||||
const cartCountElement = document.getElementById('cart-count');
|
|
||||||
if (cartCountElement) {
|
|
||||||
cartCountElement.innerText = count;
|
|
||||||
if (count > 0) {
|
|
||||||
cartCountElement.classList.remove('d-none');
|
|
||||||
} else {
|
|
||||||
cartCountElement.classList.add('d-none');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showToast(message) {
|
|
||||||
const toastContainer = document.getElementById('toast-container') || createToastContainer();
|
|
||||||
const toast = document.createElement('div');
|
|
||||||
toast.className = 'toast align-items-center text-white bg-charcoal border-0 show mb-2 shadow-lg';
|
|
||||||
toast.role = 'alert';
|
|
||||||
toast.ariaLive = 'assertive';
|
|
||||||
toast.ariaAtomic = 'true';
|
|
||||||
toast.innerHTML = `
|
|
||||||
<div class="d-flex">
|
|
||||||
<div class="toast-body py-3">
|
|
||||||
${message}
|
|
||||||
</div>
|
|
||||||
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
toastContainer.appendChild(toast);
|
|
||||||
|
|
||||||
// Auto-remove after 4 seconds
|
|
||||||
setTimeout(() => {
|
|
||||||
toast.classList.remove('show');
|
|
||||||
setTimeout(() => toast.remove(), 500);
|
|
||||||
}, 4000);
|
|
||||||
}
|
|
||||||
|
|
||||||
function createToastContainer() {
|
|
||||||
const container = document.createElement('div');
|
|
||||||
container.id = 'toast-container';
|
|
||||||
container.className = 'toast-container position-fixed bottom-0 end-0 p-3';
|
|
||||||
container.style.zIndex = '1100';
|
|
||||||
document.body.appendChild(container);
|
|
||||||
return container;
|
|
||||||
}
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 189 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 114 KiB |
172
cart.php
@ -1,172 +0,0 @@
|
|||||||
<?php
|
|
||||||
if (session_status() === PHP_SESSION_NONE) {
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
$pageTitle = "Your Cart";
|
|
||||||
include 'header.php';
|
|
||||||
|
|
||||||
$cart = $_SESSION['cart'] ?? [];
|
|
||||||
$total = 0;
|
|
||||||
foreach ($cart as $item) {
|
|
||||||
$total += $item['price'] * $item['quantity'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="container py-5">
|
|
||||||
<div class="row mb-5 align-items-end">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h1 class="display-4 fw-bold">Your Cart</h1>
|
|
||||||
<p class="text-muted mb-0">Review your safety essentials before checkout.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 text-md-end">
|
|
||||||
<a href="/index.php#products" class="text-gold fw-bold text-decoration-none"><i class="bi bi-arrow-left me-2"></i> Continue Shopping</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if (empty($cart)): ?>
|
|
||||||
<div class="text-center py-5 bg-light rounded-4 border-dashed">
|
|
||||||
<div class="display-1 text-muted mb-4"><i class="bi bi-cart-x"></i></div>
|
|
||||||
<h3 class="fw-bold">Your cart is empty</h3>
|
|
||||||
<p class="text-muted mb-4 fs-5">It looks like you haven't added any safety essentials yet.</p>
|
|
||||||
<a href="/index.php#products" class="btn btn-gold btn-lg px-5 rounded-pill">Browse Products</a>
|
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
|
||||||
<div class="row g-5">
|
|
||||||
<div class="col-lg-8">
|
|
||||||
<div class="card border-0 shadow-sm rounded-4 overflow-hidden">
|
|
||||||
<div class="card-body p-0">
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-borderless align-middle mb-0">
|
|
||||||
<thead class="bg-light">
|
|
||||||
<tr>
|
|
||||||
<th scope="col" class="py-3 ps-4 text-muted small text-uppercase fw-bold">Product</th>
|
|
||||||
<th scope="col" class="py-3 text-muted small text-uppercase fw-bold text-center">Quantity</th>
|
|
||||||
<th scope="col" class="py-3 text-muted small text-uppercase fw-bold text-end">Price</th>
|
|
||||||
<th scope="col" class="py-3 pe-4"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach ($cart as $id => $item): ?>
|
|
||||||
<tr class="border-bottom">
|
|
||||||
<td class="py-4 ps-4">
|
|
||||||
<div class="d-flex align-items-center">
|
|
||||||
<img src="<?php echo htmlspecialchars($item['image']); ?>" alt="<?php echo htmlspecialchars($item['name']); ?>" class="rounded-3 me-3 border" style="width: 80px; height: 80px; object-fit: cover;">
|
|
||||||
<div>
|
|
||||||
<h6 class="mb-1 fw-bold"><?php echo htmlspecialchars($item['name']); ?></h6>
|
|
||||||
<span class="text-muted small">$<?php echo number_format($item['price'], 2); ?> each</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td class="py-4 text-center">
|
|
||||||
<div class="d-inline-flex align-items-center bg-light rounded-pill p-1">
|
|
||||||
<button class="btn btn-sm btn-light rounded-circle" onclick="updateQuantity(<?php echo $id; ?>, <?php echo $item['quantity'] - 1; ?>)">
|
|
||||||
<i class="bi bi-dash"></i>
|
|
||||||
</button>
|
|
||||||
<span class="px-3 fw-bold"><?php echo $item['quantity']; ?></span>
|
|
||||||
<button class="btn btn-sm btn-light rounded-circle" onclick="updateQuantity(<?php echo $id; ?>, <?php echo $item['quantity'] + 1; ?>)">
|
|
||||||
<i class="bi bi-plus"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td class="py-4 text-end">
|
|
||||||
<span class="fw-bold fs-5 text-charcoal">$<?php echo number_format($item['price'] * $item['quantity'], 2); ?></span>
|
|
||||||
</td>
|
|
||||||
<td class="py-4 pe-4 text-end">
|
|
||||||
<button class="btn btn-link text-danger p-0 opacity-50 hover-opacity-100" onclick="removeFromCart(<?php echo $id; ?>)" title="Remove Item">
|
|
||||||
<i class="bi bi-trash fs-5"></i>
|
|
||||||
</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<div class="card border-0 shadow-sm rounded-4 bg-charcoal text-white">
|
|
||||||
<div class="card-body p-4">
|
|
||||||
<h5 class="fw-bold mb-4 text-gold">Order Summary</h5>
|
|
||||||
<div class="d-flex justify-content-between mb-3">
|
|
||||||
<span class="text-light opacity-75">Subtotal</span>
|
|
||||||
<span class="fw-bold">$<?php echo number_format($total, 2); ?></span>
|
|
||||||
</div>
|
|
||||||
<div class="d-flex justify-content-between mb-3">
|
|
||||||
<span class="text-light opacity-75">Shipping</span>
|
|
||||||
<span class="text-gold fw-bold">Free</span>
|
|
||||||
</div>
|
|
||||||
<div class="d-flex justify-content-between mb-3">
|
|
||||||
<span class="text-light opacity-75">Estimated Tax</span>
|
|
||||||
<span class="fw-bold">$0.00</span>
|
|
||||||
</div>
|
|
||||||
<hr class="my-4 opacity-25">
|
|
||||||
<div class="d-flex justify-content-between mb-5">
|
|
||||||
<span class="h4 fw-bold mb-0">Total</span>
|
|
||||||
<span class="h4 fw-bold text-gold mb-0">$<?php echo number_format($total, 2); ?></span>
|
|
||||||
</div>
|
|
||||||
<button class="btn btn-gold btn-lg w-100 rounded-pill py-3 fw-bold shadow" onclick="checkout()">Complete Order</button>
|
|
||||||
|
|
||||||
<div class="mt-4 p-3 bg-white bg-opacity-10 rounded-3 small">
|
|
||||||
<div class="d-flex align-items-center mb-2">
|
|
||||||
<i class="bi bi-shield-check text-gold me-2"></i>
|
|
||||||
<span>ElderEase Secure Checkout</span>
|
|
||||||
</div>
|
|
||||||
<div class="d-flex align-items-center">
|
|
||||||
<i class="bi bi-truck text-gold me-2"></i>
|
|
||||||
<span>Free shipping on all orders</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.hover-opacity-100:hover { opacity: 1 !important; }
|
|
||||||
.border-dashed { border: 2px dashed #dee2e6 !important; }
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function updateQuantity(id, quantity) {
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('id', id);
|
|
||||||
formData.append('quantity', quantity);
|
|
||||||
|
|
||||||
fetch('/api/cart.php?action=update', {
|
|
||||||
method: 'POST',
|
|
||||||
body: formData
|
|
||||||
})
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(data => {
|
|
||||||
if (data.success) {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function removeFromCart(id) {
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('id', id);
|
|
||||||
|
|
||||||
fetch('/api/cart.php?action=remove', {
|
|
||||||
method: 'POST',
|
|
||||||
body: formData
|
|
||||||
})
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(data => {
|
|
||||||
if (data.success) {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkout() {
|
|
||||||
// In a real app, this would redirect to a checkout page or Stripe
|
|
||||||
alert('Thank you for choosing ElderEase! In this demonstration version, checkout is simulated. We would normally take you to a secure payment page now.');
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include 'footer.php'; ?>
|
|
||||||
74
faq.php
@ -1,74 +0,0 @@
|
|||||||
<?php
|
|
||||||
$pageTitle = "FAQ & Trust";
|
|
||||||
include 'header.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="container py-5">
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-md-8">
|
|
||||||
<h1 class="mb-5 text-center">Frequently Asked Questions</h1>
|
|
||||||
|
|
||||||
<div class="accordion accordion-flush" id="faqAccordion">
|
|
||||||
<div class="accordion-item border mb-3">
|
|
||||||
<h2 class="accordion-header">
|
|
||||||
<button class="accordion-button collapsed fw-600" type="button" data-bs-toggle="collapse" data-bs-target="#faq1">
|
|
||||||
Shipping Information
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
<div id="faq1" class="accordion-collapse collapse" data-bs-parent="#faqAccordion">
|
|
||||||
<div class="accordion-body text-muted">
|
|
||||||
Orders are shipped directly from our fulfillment partners. Typical delivery time is 7–15 business days.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="accordion-item border mb-3">
|
|
||||||
<h2 class="accordion-header">
|
|
||||||
<button class="accordion-button collapsed fw-600" type="button" data-bs-toggle="collapse" data-bs-target="#faq2">
|
|
||||||
Return Policy
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
<div id="faq2" class="accordion-collapse collapse" data-bs-parent="#faqAccordion">
|
|
||||||
<div class="accordion-body text-muted">
|
|
||||||
We offer 30-day hassle-free returns. Your peace of mind is our priority.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="accordion-item border mb-3">
|
|
||||||
<h2 class="accordion-header">
|
|
||||||
<button class="accordion-button collapsed fw-600" type="button" data-bs-toggle="collapse" data-bs-target="#faq3">
|
|
||||||
Who is ElderEase for?
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
<div id="faq3" class="accordion-collapse collapse" data-bs-parent="#faqAccordion">
|
|
||||||
<div class="accordion-body text-muted">
|
|
||||||
Seniors, caregivers, and adult children looking to improve safety at home.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="accordion-item border">
|
|
||||||
<h2 class="accordion-header">
|
|
||||||
<button class="accordion-button collapsed fw-600" type="button" data-bs-toggle="collapse" data-bs-target="#faq4">
|
|
||||||
Is this medical equipment?
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
<div id="faq4" class="accordion-collapse collapse" data-bs-parent="#faqAccordion">
|
|
||||||
<div class="accordion-body text-muted">
|
|
||||||
No. ElderEase products are everyday wellness and safety aids designed for home use.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-5 text-center p-4 bg-light rounded">
|
|
||||||
<h5>Still have questions?</h5>
|
|
||||||
<p class="text-muted">We're here to help you make the right choice for your family.</p>
|
|
||||||
<a href="/about.php" class="btn btn-outline-gold">Contact Our Team</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include 'footer.php'; ?>
|
|
||||||
39
footer.php
@ -1,39 +0,0 @@
|
|||||||
<footer class="mt-5 py-5 bg-light border-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4 mb-4">
|
|
||||||
<h3 class="text-gold mb-3 fw-bold">ElderEase</h3>
|
|
||||||
<p class="text-muted small">Thoughtfully designed essentials that help seniors live confidently at home. Safety, dignity, and independence are at the heart of everything we do.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2 mb-4">
|
|
||||||
<h5 class="fw-bold mb-3">Shop</h5>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li><a href="/index.php#products" class="text-decoration-none text-muted small">All Products</a></li>
|
|
||||||
<li><a href="/product.php?slug=safety-socks" class="text-decoration-none text-muted small">Safety Socks</a></li>
|
|
||||||
<li><a href="/product.php?slug=jar-opener" class="text-decoration-none text-muted small">Jar Opener</a></li>
|
|
||||||
<li><a href="/product.php?slug=pill-organizer" class="text-decoration-none text-muted small">Pill Organizer</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2 mb-4">
|
|
||||||
<h5 class="fw-bold mb-3">About</h5>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li><a href="/about.php" class="text-decoration-none text-muted small">Our Story</a></li>
|
|
||||||
<li><a href="/faq.php" class="text-decoration-none text-muted small">FAQ</a></li>
|
|
||||||
<li><a href="/faq.php" class="text-decoration-none text-muted small">Shipping</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4 mb-4 text-md-end">
|
|
||||||
<h5 class="fw-bold mb-3">ElderEase Mission</h5>
|
|
||||||
<p class="text-muted small">Helping seniors stay safe and independent, one simple solution at a time.</p>
|
|
||||||
<div class="mt-4">
|
|
||||||
<span class="text-muted small">© <?php echo date('Y'); ?> ElderEase. All rights reserved.</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</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>
|
|
||||||
47
header.php
@ -1,47 +0,0 @@
|
|||||||
<?php
|
|
||||||
if (session_status() === PHP_SESSION_NONE) {
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
$cartCount = 0;
|
|
||||||
if (isset($_SESSION['cart'])) {
|
|
||||||
foreach ($_SESSION['cart'] as $item) {
|
|
||||||
$cartCount += $item['quantity'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title><?php echo isset($pageTitle) ? $pageTitle . " | ElderEase" : "ElderEase: Safety, Comfort, and Independence"; ?></title>
|
|
||||||
<meta name="description" content="<?php echo $_SERVER['PROJECT_DESCRIPTION'] ?? 'Safety and independence for seniors at home.'; ?>">
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
|
||||||
<link rel="stylesheet" href="/assets/css/custom.css?v=<?php echo time(); ?>">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-charcoal py-3">
|
|
||||||
<div class="container">
|
|
||||||
<a class="navbar-brand text-gold fw-bold" href="/">ElderEase</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 align-items-center">
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/#products">Products</a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/about.php">Our Story</a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/faq.php">FAQ</a></li>
|
|
||||||
<li class="nav-item ms-lg-3 mt-3 mt-lg-0">
|
|
||||||
<a href="/cart.php" class="btn btn-outline-gold position-relative rounded-pill px-3">
|
|
||||||
<i class="bi bi-cart3"></i> Cart
|
|
||||||
<span id="cart-count" class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger <?php echo $cartCount > 0 ? '' : 'd-none'; ?>">
|
|
||||||
<?php echo $cartCount; ?>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
function pexels_key() {
|
|
||||||
$k = getenv('PEXELS_KEY');
|
|
||||||
return $k && strlen($k) > 0 ? $k : 'Vc99rnmOhHhJAbgGQoKLZtsaIVfkeownoQNbTj78VemUjKh08ZYRbf18';
|
|
||||||
}
|
|
||||||
function pexels_get($url) {
|
|
||||||
$ch = curl_init();
|
|
||||||
curl_setopt_array($ch, [
|
|
||||||
CURLOPT_URL => $url,
|
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
|
||||||
CURLOPT_HTTPHEADER => [ 'Authorization: '. pexels_key() ],
|
|
||||||
CURLOPT_TIMEOUT => 15,
|
|
||||||
]);
|
|
||||||
$resp = curl_exec($ch);
|
|
||||||
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
|
||||||
curl_close($ch);
|
|
||||||
if ($code >= 200 && $code < 300 && $resp) return json_decode($resp, true);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
function download_to($srcUrl, $destPath) {
|
|
||||||
$data = file_get_contents($srcUrl);
|
|
||||||
if ($data === false) return false;
|
|
||||||
if (!is_dir(dirname($destPath))) mkdir(dirname($destPath), 0775, true);
|
|
||||||
return file_put_contents($destPath, $data) !== false;
|
|
||||||
}
|
|
||||||
229
index.php
@ -1,89 +1,150 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'db/config.php';
|
declare(strict_types=1);
|
||||||
$pageTitle = "ElderEase: Safety, Comfort, and Independence";
|
@ini_set('display_errors', '1');
|
||||||
include 'header.php';
|
@error_reporting(E_ALL);
|
||||||
|
@date_default_timezone_set('UTC');
|
||||||
|
|
||||||
$products = db()->query("SELECT * FROM products ORDER BY id ASC")->fetchAll();
|
$phpVersion = PHP_VERSION;
|
||||||
|
$now = date('Y-m-d H:i:s');
|
||||||
?>
|
?>
|
||||||
|
<!doctype html>
|
||||||
<!-- Hero Section -->
|
<html lang="en">
|
||||||
<section class="hero-section bg-charcoal text-white py-5 position-relative overflow-hidden">
|
<head>
|
||||||
<div class="container py-5">
|
<meta charset="utf-8" />
|
||||||
<div class="row align-items-center">
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<div class="col-lg-6 mb-5 mb-lg-0">
|
<title>New Style</title>
|
||||||
<h1 class="display-3 fw-bold mb-4 text-white">Safety Comfort, And independence at every step.</h1>
|
<?php
|
||||||
<p class="lead mb-5 text-white">ElderEase creates thoughtfully designed essentials that help seniors live confidently at home.</p>
|
// Read project preview data from environment
|
||||||
<div class="d-flex gap-3">
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||||
<a href="#products" class="btn btn-gold btn-lg px-4">Shop Now</a>
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||||
<a href="/about.php" class="btn btn-outline-light btn-lg px-4">Our Mission</a>
|
?>
|
||||||
|
<?php if ($projectDescription): ?>
|
||||||
|
<!-- Meta description -->
|
||||||
|
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||||
|
<!-- Open Graph meta tags -->
|
||||||
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
|
<!-- Twitter meta tags -->
|
||||||
|
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($projectImageUrl): ?>
|
||||||
|
<!-- Open Graph image -->
|
||||||
|
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||||
|
<!-- Twitter image -->
|
||||||
|
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
<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=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--bg-color-start: #6a11cb;
|
||||||
|
--bg-color-end: #2575fc;
|
||||||
|
--text-color: #ffffff;
|
||||||
|
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||||
|
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||||
|
color: var(--text-color);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
body::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||||
|
animation: bg-pan 20s linear infinite;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
@keyframes bg-pan {
|
||||||
|
0% { background-position: 0% 0%; }
|
||||||
|
100% { background-position: 100% 100%; }
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
.card {
|
||||||
|
background: var(--card-bg-color);
|
||||||
|
border: 1px solid var(--card-border-color);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 2rem;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
-webkit-backdrop-filter: blur(20px);
|
||||||
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
.loader {
|
||||||
|
margin: 1.25rem auto 1.25rem;
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||||
|
border-top-color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
}
|
||||||
|
@keyframes spin {
|
||||||
|
from { transform: rotate(0deg); }
|
||||||
|
to { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
.hint {
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
.sr-only {
|
||||||
|
position: absolute;
|
||||||
|
width: 1px; height: 1px;
|
||||||
|
padding: 0; margin: -1px;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(0, 0, 0, 0);
|
||||||
|
white-space: nowrap; border: 0;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 0.5rem 0;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
background: rgba(0,0,0,0.2);
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||||
|
}
|
||||||
|
footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 1rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class="card">
|
||||||
|
<h1>Analyzing your requirements and generating your website…</h1>
|
||||||
|
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||||
|
<span class="sr-only">Loading…</span>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||||
|
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||||
|
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6">
|
</main>
|
||||||
<div class="zoom-container shadow-lg">
|
<footer>
|
||||||
<img src="/assets/pasted-20260129-004647-d9048856.png" alt="Seniors at home" class="img-fluid img-zoom-20">
|
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||||
</div>
|
</footer>
|
||||||
</div>
|
</body>
|
||||||
</div>
|
</html>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Trust Pillars -->
|
|
||||||
<section class="py-5 bg-light">
|
|
||||||
<div class="container py-4">
|
|
||||||
<div class="row text-center g-4">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="p-4 border rounded bg-white shadow-sm h-100">
|
|
||||||
<div class="h3 text-gold mb-3"><i class="bi bi-person-check"></i></div>
|
|
||||||
<h5 class="fw-bold">Designed for Seniors</h5>
|
|
||||||
<p class="text-muted small mb-0">Every product is tested for ease of use and maximum safety.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="p-4 border rounded bg-white shadow-sm h-100">
|
|
||||||
<div class="h3 text-gold mb-3"><i class="bi bi-shield-lock"></i></div>
|
|
||||||
<h5 class="fw-bold">Simple Solutions</h5>
|
|
||||||
<p class="text-muted small mb-0">No complicated technology — just effective, reliable tools for daily living.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="p-4 border rounded bg-white shadow-sm h-100">
|
|
||||||
<div class="h3 text-gold mb-3"><i class="bi bi-heart"></i></div>
|
|
||||||
<h5 class="fw-bold">Focused on Dignity</h5>
|
|
||||||
<p class="text-muted small mb-0">Helping you maintain independence in the comfort of your own home.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Featured Products -->
|
|
||||||
<section id="products" class="py-5">
|
|
||||||
<div class="container py-5">
|
|
||||||
<div class="text-center mb-5">
|
|
||||||
<h2 class="fw-bold">Essential Safety Solutions</h2>
|
|
||||||
<p class="text-muted">Carefully selected to improve daily life.</p>
|
|
||||||
</div>
|
|
||||||
<div class="row g-4">
|
|
||||||
<?php foreach ($products as $product): ?>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="card h-100 border-0 shadow-sm product-card">
|
|
||||||
<a href="product.php?slug=<?php echo $product['slug']; ?>">
|
|
||||||
<img src="<?php echo htmlspecialchars($product['image_url'] ?: 'https://via.placeholder.com/400x400?text=Product+Image'); ?>" class="card-img-top rounded-top" alt="<?php echo htmlspecialchars($product['name']); ?>">
|
|
||||||
</a>
|
|
||||||
<div class="card-body p-4">
|
|
||||||
<h5 class="card-title fw-bold mb-2"><?php echo htmlspecialchars($product['name']); ?></h5>
|
|
||||||
<p class="text-muted small mb-3"><?php echo htmlspecialchars($product['short_description']); ?></p>
|
|
||||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
|
||||||
<span class="h5 text-gold mb-0">$<?php echo number_format($product['price'], 2); ?></span>
|
|
||||||
<a href="product.php?slug=<?php echo $product['slug']; ?>" class="btn btn-link text-gold text-decoration-none p-0 small fw-bold">View Story →</a>
|
|
||||||
</div>
|
|
||||||
<button onclick="addToCart(<?php echo $product['id']; ?>, '<?php echo addslashes($product['name']); ?>', <?php echo $product['price']; ?>, '<?php echo $product['image_url']; ?>')" class="btn btn-gold w-100 rounded-pill">Add to Cart</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<?php include 'footer.php'; ?>
|
|
||||||
|
|||||||
113
product.php
@ -1,113 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once 'db/config.php';
|
|
||||||
$slug = $_GET['slug'] ?? 'safety-socks';
|
|
||||||
|
|
||||||
$stmt = db()->prepare("SELECT * FROM products WHERE slug = ?");
|
|
||||||
$stmt->execute([$slug]);
|
|
||||||
$product = $stmt->fetch();
|
|
||||||
|
|
||||||
if (!$product) {
|
|
||||||
header("Location: /");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$pageTitle = $product['name'];
|
|
||||||
include 'header.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="container py-5">
|
|
||||||
<!-- Breadcrumb -->
|
|
||||||
<nav aria-label="breadcrumb" class="mb-5">
|
|
||||||
<ol class="breadcrumb">
|
|
||||||
<li class="breadcrumb-item"><a href="/" class="text-decoration-none text-muted">Home</a></li>
|
|
||||||
<li class="breadcrumb-item active"><?php echo htmlspecialchars($product['name']); ?></li>
|
|
||||||
</ol>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<!-- Hero Story Section -->
|
|
||||||
<div class="row align-items-center mb-5">
|
|
||||||
<div class="col-md-6 order-2 order-md-1">
|
|
||||||
<h1 class="display-4 fw-bold mb-4"><?php echo htmlspecialchars($product['name']); ?></h1>
|
|
||||||
<p class="lead mb-4"><?php echo htmlspecialchars($product['short_description']); ?></p>
|
|
||||||
<p class="h2 text-gold mb-4">$<?php echo number_format($product['price'], 2); ?>
|
|
||||||
<?php if ($product['original_price']): ?>
|
|
||||||
<small class="text-muted fs-5 text-decoration-line-through">$<?php echo number_format($product['original_price'], 2); ?></small>
|
|
||||||
<?php endif; ?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="d-flex gap-3 mt-4">
|
|
||||||
<button class="btn btn-gold btn-lg px-4" onclick="addToCart(<?php echo $product['id']; ?>, '<?php echo addslashes($product['name']); ?>', <?php echo $product['price']; ?>, '<?php echo $product['image_url']; ?>')">Add to Cart</button>
|
|
||||||
<button class="btn btn-outline-gold btn-lg px-4" data-bs-toggle="modal" data-bs-target="#inquiryModal">Learn More</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 mb-4 mb-md-0 order-1 order-md-2 text-center">
|
|
||||||
<img src="<?php echo htmlspecialchars($product['image_url']); ?>" alt="<?php echo htmlspecialchars($product['name']); ?>" class="img-fluid rounded shadow-lg border border-gold p-1" style="max-height: 500px; object-fit: cover;">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Details Section -->
|
|
||||||
<div class="row justify-content-center py-5">
|
|
||||||
<div class="col-md-8">
|
|
||||||
<h3 class="fw-bold mb-4">The Story Behind the Design</h3>
|
|
||||||
<div class="fs-5 text-muted mb-5" style="line-height: 1.8;">
|
|
||||||
<?php echo nl2br(htmlspecialchars($product['description'])); ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Benefits Box (Charcoal Style like About Page) -->
|
|
||||||
<div class="p-5 bg-charcoal text-white rounded my-5 shadow">
|
|
||||||
<h4 class="text-gold mb-4">Why It Matters</h4>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<?php
|
|
||||||
$benefits = json_decode($product['benefits'], true);
|
|
||||||
if ($benefits):
|
|
||||||
foreach ($benefits as $benefit): ?>
|
|
||||||
<li class="mb-3 d-flex align-items-start">
|
|
||||||
<i class="bi bi-check-circle-fill text-gold me-3 mt-1"></i>
|
|
||||||
<span class="fs-5"><?php echo htmlspecialchars($benefit); ?></span>
|
|
||||||
</li>
|
|
||||||
<?php endforeach;
|
|
||||||
endif; ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="text-center mt-5">
|
|
||||||
<div class="alert alert-light border small text-muted d-inline-block px-4">
|
|
||||||
<i class="bi bi-shield-check me-2"></i> <strong>ElderEase Guarantee:</strong> 30-day hassle-free returns on all safety items.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Inquiry Modal -->
|
|
||||||
<div class="modal fade" id="inquiryModal" tabindex="-1">
|
|
||||||
<div class="modal-dialog modal-dialog-centered">
|
|
||||||
<div class="modal-content border-0 shadow-lg">
|
|
||||||
<div class="modal-header bg-charcoal text-white border-0">
|
|
||||||
<h5 class="modal-title">Product Inquiry</h5>
|
|
||||||
<button type="button" class="btn-close btn-close-white" data-bs-close="modal"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body p-4">
|
|
||||||
<p class="text-muted mb-4">Have questions about how this product can help? Our team is here to support you.</p>
|
|
||||||
<form id="inquiryForm" action="/api/inquiry.php" method="POST">
|
|
||||||
<input type="hidden" name="product_id" value="<?php echo htmlspecialchars($product['slug']); ?>">
|
|
||||||
<div class="mb-3">
|
|
||||||
<label class="form-label small fw-bold">Name</label>
|
|
||||||
<input type="text" name="name" class="form-control form-control-lg" placeholder="Your Name" required>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label class="form-label small fw-bold">Email Address</label>
|
|
||||||
<input type="email" name="email" class="form-control form-control-lg" placeholder="your@email.com" required>
|
|
||||||
</div>
|
|
||||||
<div class="mb-4">
|
|
||||||
<label class="form-label small fw-bold">Message</label>
|
|
||||||
<textarea name="message" class="form-control" rows="3" placeholder="How can we help?"></textarea>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-gold btn-lg w-100">Send Message</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include 'footer.php'; ?>
|
|
||||||