v2
This commit is contained in:
parent
95cf0af616
commit
18a2a2d045
457
index.php
457
index.php
@ -1,150 +1,337 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
@ini_set('display_errors', '1');
|
require_once 'db/config.php';
|
||||||
@error_reporting(E_ALL);
|
|
||||||
@date_default_timezone_set('UTC');
|
|
||||||
|
|
||||||
$phpVersion = PHP_VERSION;
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Modern agency delivering high-impact digital solutions.';
|
||||||
$now = date('Y-m-d H:i:s');
|
|
||||||
?>
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<title>New Style</title>
|
|
||||||
<?php
|
|
||||||
// Read project preview data from environment
|
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||||
?>
|
?>
|
||||||
<?php if ($projectDescription): ?>
|
<!DOCTYPE html>
|
||||||
<!-- Meta description -->
|
<html lang="en">
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
<head>
|
||||||
<!-- Open Graph meta tags -->
|
<meta charset="UTF-8">
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<!-- Twitter meta tags -->
|
<title>Impact Agency | Grow Your Digital Presence</title>
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
||||||
<?php endif; ?>
|
<!-- SEO -->
|
||||||
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>">
|
||||||
|
<meta property="og:title" content="Impact Agency | Digital Excellence">
|
||||||
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>">
|
||||||
<?php if ($projectImageUrl): ?>
|
<?php if ($projectImageUrl): ?>
|
||||||
<!-- Open Graph image -->
|
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>">
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<!-- Twitter image -->
|
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<!-- Fonts -->
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<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">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@700&display=swap" rel="stylesheet">
|
||||||
<style>
|
|
||||||
:root {
|
<!-- Bootstrap CSS -->
|
||||||
--bg-color-start: #6a11cb;
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
--bg-color-end: #2575fc;
|
<!-- Bootstrap Icons -->
|
||||||
--text-color: #ffffff;
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
<!-- Custom Styles -->
|
||||||
}
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?= time() ?>">
|
||||||
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>
|
</head>
|
||||||
<body>
|
<body data-bs-spy="scroll" data-bs-target="#navbar-main">
|
||||||
<main>
|
|
||||||
<div class="card">
|
<!-- Navigation -->
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<nav id="navbar-main" class="navbar navbar-expand-lg fixed-top transition">
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<div class="container">
|
||||||
<span class="sr-only">Loading…</span>
|
<a class="navbar-brand" href="index.php">
|
||||||
|
<span class="brand-text">IMPACT<span class="dot">.</span></span>
|
||||||
|
</a>
|
||||||
|
<button class="navbar-toggler border-0" 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="#services">Services</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="projects.php">Projects</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#testimonials">Testimonials</a></li>
|
||||||
|
<li class="nav-item ms-lg-3 mt-3 mt-lg-0">
|
||||||
|
<a class="btn btn-primary" href="#contact">Get a Quote</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Hero Section -->
|
||||||
|
<header class="hero-section d-flex align-items-center position-relative overflow-hidden">
|
||||||
|
<div class="background-blob blob-1"></div>
|
||||||
|
<div class="background-blob blob-2"></div>
|
||||||
|
|
||||||
|
<div class="container position-relative z-1">
|
||||||
|
<div class="row align-items-center">
|
||||||
|
<div class="col-lg-7">
|
||||||
|
<div class="badge-pill mb-3 animate-up">🚀 DIGITAL FIRST AGENCY</div>
|
||||||
|
<h1 class="display-1 fw-bold mb-4 animate-up delay-100">
|
||||||
|
We build brands that <span class="highlight-text">win</span><span class="dot">.</span>
|
||||||
|
</h1>
|
||||||
|
<p class="lead mb-5 animate-up delay-200 text-secondary" style="max-width: 550px;">
|
||||||
|
Helping forward-thinking companies scale their impact through strategic design, development, and marketing.
|
||||||
|
</p>
|
||||||
|
<div class="d-flex flex-wrap gap-3 animate-up delay-200">
|
||||||
|
<a href="#contact" class="btn btn-primary">Start a Project</a>
|
||||||
|
<a href="projects.php" class="btn btn-outline-dark">View Portfolio</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-5 d-none d-lg-block">
|
||||||
|
<div class="about-image-stack">
|
||||||
|
<div class="stack-card" style="background: var(--color-accent);"></div>
|
||||||
|
<div class="stack-card" style="background: var(--color-primary); transform: rotate(5deg);"></div>
|
||||||
|
<div class="stack-card d-flex align-items-center justify-content-center bg-black" style="transform: rotate(2deg);">
|
||||||
|
<i class="bi bi-rocket-takeoff text-white display-1"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Marquee Partners -->
|
||||||
|
<div class="marquee-container rotate-divider">
|
||||||
|
<div class="marquee-content py-3">
|
||||||
|
<span class="mx-4">STRATEGY</span> • <span class="mx-4">DESIGN</span> • <span class="mx-4">DEVELOPMENT</span> • <span class="mx-4">MARKETING</span> •
|
||||||
|
<span class="mx-4">STRATEGY</span> • <span class="mx-4">DESIGN</span> • <span class="mx-4">DEVELOPMENT</span> • <span class="mx-4">MARKETING</span> •
|
||||||
|
<span class="mx-4">STRATEGY</span> • <span class="mx-4">DESIGN</span> • <span class="mx-4">DEVELOPMENT</span> • <span class="mx-4">MARKETING</span> •
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Services Section -->
|
||||||
|
<section id="services" class="py-section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row mb-5 justify-content-between align-items-end">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<h2 class="display-4 fw-bold mb-0">Our expertise<span class="dot">.</span></h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 text-lg-end">
|
||||||
|
<p class="text-secondary mb-0">Solving complex problems with simple, elegant solutions.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-4">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-blue">
|
||||||
|
<i class="bi bi-brush placeholder-art text-primary"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h3 class="h4 mb-3">Brand Strategy</h3>
|
||||||
|
<p class="text-secondary mb-4">Crafting unique identities that resonate with your target audience and stand the test of time.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-green">
|
||||||
|
<i class="bi bi-code-slash placeholder-art text-success"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h3 class="h4 mb-3">Web Development</h3>
|
||||||
|
<p class="text-secondary mb-4">Building high-performance, responsive websites using the latest modern technologies.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-yellow">
|
||||||
|
<i class="bi bi-graph-up-arrow placeholder-art text-warning"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h3 class="h4 mb-3">Digital Growth</h3>
|
||||||
|
<p class="text-secondary mb-4">Data-driven marketing strategies to increase your visibility and convert users into customers.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Case Studies Preview -->
|
||||||
|
<section class="py-section bg-surface">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row mb-5 align-items-center">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<h2 class="display-4 fw-bold">Recent projects<span class="dot">.</span></h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 text-lg-end">
|
||||||
|
<a href="projects.php" class="btn btn-outline-dark">View All Work</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-4">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-black">
|
||||||
|
<span class="category-tag">Fintech</span>
|
||||||
|
<i class="bi bi-wallet2 text-white placeholder-art"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h3 class="h4">Nova Bank Redesign</h3>
|
||||||
|
<p class="text-secondary">Complete overhaul of the mobile banking experience for 1M+ users.</p>
|
||||||
|
<a href="projects.php" class="link-arrow">Case Study <i class="bi bi-arrow-right"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-purple">
|
||||||
|
<span class="category-tag">E-commerce</span>
|
||||||
|
<i class="bi bi-bag-heart text-dark placeholder-art"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h3 class="h4">Lumiere Beauty</h3>
|
||||||
|
<p class="text-secondary">Scaling a luxury skincare brand's online presence and conversion rate.</p>
|
||||||
|
<a href="projects.php" class="link-arrow">Case Study <i class="bi bi-arrow-right"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Testimonials -->
|
||||||
|
<section id="testimonials" class="py-section">
|
||||||
|
<div class="container text-center">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<i class="bi bi-quote display-1 text-primary opacity-25"></i>
|
||||||
|
<h2 class="display-5 fw-bold mb-5">"Impact Agency transformed our digital presence. Their attention to detail and strategic approach is unmatched."</h2>
|
||||||
|
<div class="d-flex align-items-center justify-content-center">
|
||||||
|
<div class="bg-black rounded-circle me-3" style="width: 50px; height: 50px;"></div>
|
||||||
|
<div class="text-start">
|
||||||
|
<p class="fw-bold mb-0">Sarah Johnson</p>
|
||||||
|
<p class="text-secondary small mb-0">CEO, TechFlow</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Contact Section -->
|
||||||
|
<section id="contact" class="py-section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row g-5">
|
||||||
|
<div class="col-lg-5">
|
||||||
|
<h2 class="display-4 fw-bold mb-4">Ready to start?<span class="dot">.</span></h2>
|
||||||
|
<p class="lead text-secondary mb-5">Fill out the form and we'll get back to you within 24 hours to discuss your project.</p>
|
||||||
|
|
||||||
|
<div class="d-flex mb-4">
|
||||||
|
<div class="btn btn-primary rounded-circle p-0 d-flex align-items-center justify-content-center me-3" style="width: 48px; height: 48px;">
|
||||||
|
<i class="bi bi-envelope"></i>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="fw-bold mb-0">Email us</p>
|
||||||
|
<a href="mailto:hello@impact-agency.com" class="text-decoration-none text-secondary">hello@impact-agency.com</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="social-links mt-5">
|
||||||
|
<a href="#" class="text-black me-3 fs-4"><i class="bi bi-linkedin"></i></a>
|
||||||
|
<a href="#" class="text-black me-3 fs-4"><i class="bi bi-instagram"></i></a>
|
||||||
|
<a href="#" class="text-black fs-4"><i class="bi bi-twitter-x"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-7">
|
||||||
|
<div class="card p-4 p-md-5 border-2-black shadow-hard bg-white">
|
||||||
|
<form id="leadForm">
|
||||||
|
<div class="row g-4">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label class="form-label fw-bold">Name</label>
|
||||||
|
<input type="text" name="name" class="form-control" placeholder="John Doe" required>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label class="form-label fw-bold">Email</label>
|
||||||
|
<input type="email" name="email" class="form-control" placeholder="john@example.com" required>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<label class="form-label fw-bold">Service</label>
|
||||||
|
<select name="service" class="form-select border-2-black p-3 rounded-3">
|
||||||
|
<option value="Branding">Brand Strategy</option>
|
||||||
|
<option value="Web Design">Web Design & Dev</option>
|
||||||
|
<option value="Growth">Digital Growth</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<label class="form-label fw-bold">Message</label>
|
||||||
|
<textarea name="message" class="form-control" rows="4" placeholder="Tell us about your project..." required></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<button type="submit" class="btn btn-primary w-100 py-3 mt-2">Send Message</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<div id="formFeedback" class="mt-3 d-none"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="py-5 border-top border-2 border-black mt-5">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row align-items-center">
|
||||||
|
<div class="col-md-6 text-center text-md-start">
|
||||||
|
<span class="brand-text">IMPACT<span class="dot">.</span></span>
|
||||||
|
<p class="text-secondary mt-2 mb-0">© <?= date('Y') ?> Impact Agency. All rights reserved.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 text-center text-md-end mt-4 mt-md-0">
|
||||||
|
<a href="#" class="text-secondary text-decoration-none mx-3">Privacy Policy</a>
|
||||||
|
<a href="#" class="text-secondary text-decoration-none">Terms of Service</a>
|
||||||
|
</div>
|
||||||
</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>
|
||||||
</main>
|
|
||||||
<footer>
|
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<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=<?= time() ?>"></script>
|
||||||
|
<script>
|
||||||
|
// Lead form handler
|
||||||
|
const leadForm = document.getElementById('leadForm');
|
||||||
|
const formFeedback = document.getElementById('formFeedback');
|
||||||
|
|
||||||
|
if (leadForm) {
|
||||||
|
leadForm.addEventListener('submit', async (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
const formData = new FormData(leadForm);
|
||||||
|
const submitBtn = leadForm.querySelector('button[type="submit"]');
|
||||||
|
const originalBtnText = submitBtn.innerText;
|
||||||
|
|
||||||
|
submitBtn.disabled = true;
|
||||||
|
submitBtn.innerText = 'Sending...';
|
||||||
|
|
||||||
|
try {
|
||||||
|
const response = await fetch('submit_lead.php', {
|
||||||
|
method: 'POST',
|
||||||
|
body: formData
|
||||||
|
});
|
||||||
|
|
||||||
|
const result = await response.json();
|
||||||
|
|
||||||
|
formFeedback.classList.remove('d-none', 'alert-danger', 'alert-success');
|
||||||
|
if (result.success) {
|
||||||
|
formFeedback.classList.add('alert', 'alert-success');
|
||||||
|
formFeedback.innerText = 'Thank you! We have received your request.';
|
||||||
|
leadForm.reset();
|
||||||
|
} else {
|
||||||
|
formFeedback.classList.add('alert', 'alert-danger');
|
||||||
|
formFeedback.innerText = result.error || 'Something went wrong. Please try again.';
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
formFeedback.classList.remove('d-none');
|
||||||
|
formFeedback.classList.add('alert', 'alert-danger');
|
||||||
|
formFeedback.innerText = 'Connection error. Please try again.';
|
||||||
|
} finally {
|
||||||
|
submitBtn.disabled = false;
|
||||||
|
submitBtn.innerText = originalBtnText;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
179
projects.php
Normal file
179
projects.php
Normal file
@ -0,0 +1,179 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
require_once 'db/config.php';
|
||||||
|
|
||||||
|
$projectDescription = "Our portfolio of high-impact digital projects. From fintech to luxury e-commerce.";
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Our Projects | Impact Agency</title>
|
||||||
|
|
||||||
|
<!-- SEO -->
|
||||||
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>">
|
||||||
|
|
||||||
|
<!-- 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=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<!-- Bootstrap CSS -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<!-- Bootstrap Icons -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||||
|
|
||||||
|
<!-- Custom Styles -->
|
||||||
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?= time() ?>">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Navigation -->
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top transition scrolled shadow-sm bg-white">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="index.php">
|
||||||
|
<span class="brand-text">IMPACT<span class="dot">.</span></span>
|
||||||
|
</a>
|
||||||
|
<button class="navbar-toggler border-0" 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="index.php#services">Services</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link active" href="projects.php">Projects</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#testimonials">Testimonials</a></li>
|
||||||
|
<li class="nav-item ms-lg-3 mt-3 mt-lg-0">
|
||||||
|
<a class="btn btn-primary" href="index.php#contact">Get a Quote</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Page Header -->
|
||||||
|
<section class="py-section pt-5 mt-5">
|
||||||
|
<div class="container mt-5">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<div class="badge-pill mb-3">PORTFOLIO</div>
|
||||||
|
<h1 class="display-2 fw-bold mb-4">Selected work<span class="dot">.</span></h1>
|
||||||
|
<p class="lead text-secondary">A collection of our recent collaborations and successful digital transformations.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Projects Grid -->
|
||||||
|
<section class="py-5 bg-surface">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row g-5">
|
||||||
|
<!-- Project 1 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-black" style="height: 350px;">
|
||||||
|
<span class="category-tag">Fintech</span>
|
||||||
|
<i class="bi bi-wallet2 text-white placeholder-art" style="font-size: 6rem;"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h3 class="h2 fw-bold mb-3">Nova Bank Redesign</h3>
|
||||||
|
<p class="text-secondary mb-4">We completely re-imagined the user experience for Nova Bank, focusing on accessibility and seamless transactions. The result was a 40% increase in active mobile users.</p>
|
||||||
|
<div class="d-flex flex-wrap gap-2 mb-4">
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">UI/UX Design</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">React Native</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">Branding</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Project 2 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-purple" style="height: 350px;">
|
||||||
|
<span class="category-tag">E-commerce</span>
|
||||||
|
<i class="bi bi-bag-heart text-dark placeholder-art" style="font-size: 6rem;"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h3 class="h2 fw-bold mb-3">Lumiere Beauty</h3>
|
||||||
|
<p class="text-secondary mb-4">Scaling a luxury skincare brand's online presence through a high-performance Shopify Plus implementation and a bespoke digital marketing strategy.</p>
|
||||||
|
<div class="d-flex flex-wrap gap-2 mb-4">
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">E-commerce</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">Marketing</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">Shopify</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Project 3 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-blue" style="height: 350px;">
|
||||||
|
<span class="category-tag">SaaS</span>
|
||||||
|
<i class="bi bi-clouds text-primary placeholder-art" style="font-size: 6rem;"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h3 class="h2 fw-bold mb-3">CloudFlow CRM</h3>
|
||||||
|
<p class="text-secondary mb-4">Design and development of a next-generation CRM for small businesses, focusing on automation and ease of use.</p>
|
||||||
|
<div class="d-flex flex-wrap gap-2 mb-4">
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">SaaS Design</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">Web App</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">Next.js</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Project 4 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="project-card">
|
||||||
|
<div class="card-img-holder bg-soft-green" style="height: 350px;">
|
||||||
|
<span class="category-tag">Real Estate</span>
|
||||||
|
<i class="bi bi-house-door text-success placeholder-art" style="font-size: 6rem;"></i>
|
||||||
|
</div>
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h3 class="h2 fw-bold mb-3">Hearth & Home</h3>
|
||||||
|
<p class="text-secondary mb-4">A custom real estate platform that connects buyers and sellers with AI-powered matching algorithms.</p>
|
||||||
|
<div class="d-flex flex-wrap gap-2 mb-4">
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">Platform</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">AI Integration</span>
|
||||||
|
<span class="badge border-2-black text-black bg-white rounded-pill px-3">API</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- CTA Section -->
|
||||||
|
<section class="py-section">
|
||||||
|
<div class="container text-center">
|
||||||
|
<h2 class="display-4 fw-bold mb-4">Have a project in mind?<span class="dot">.</span></h2>
|
||||||
|
<p class="lead text-secondary mb-5">Let's collaborate and create something extraordinary together.</p>
|
||||||
|
<a href="index.php#contact" class="btn btn-primary btn-lg">Start a Conversation</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="py-5 border-top border-2 border-black">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row align-items-center">
|
||||||
|
<div class="col-md-6 text-center text-md-start">
|
||||||
|
<span class="brand-text">IMPACT<span class="dot">.</span></span>
|
||||||
|
<p class="text-secondary mt-2 mb-0">© <?= date('Y') ?> Impact Agency. All rights reserved.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 text-center text-md-end mt-4 mt-md-0">
|
||||||
|
<a href="#" class="text-secondary text-decoration-none mx-3">Privacy Policy</a>
|
||||||
|
<a href="#" class="text-secondary text-decoration-none">Terms of Service</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<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=<?= time() ?>"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
52
submit_lead.php
Normal file
52
submit_lead.php
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
require_once 'db/config.php';
|
||||||
|
require_once 'mail/MailService.php';
|
||||||
|
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
||||||
|
echo json_encode(['success' => false, 'error' => 'Method not allowed']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = trim($_POST['name'] ?? '');
|
||||||
|
$email = trim($_POST['email'] ?? '');
|
||||||
|
$service = trim($_POST['service'] ?? 'General Inquiry');
|
||||||
|
$message = trim($_POST['message'] ?? '');
|
||||||
|
|
||||||
|
if (empty($name) || empty($email) || empty($message)) {
|
||||||
|
echo json_encode(['success' => false, 'error' => 'Please fill in all required fields.']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
echo json_encode(['success' => false, 'error' => 'Invalid email address.']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$db = db();
|
||||||
|
|
||||||
|
// Ensure table exists
|
||||||
|
$db->query("CREATE TABLE IF NOT EXISTS leads (
|
||||||
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
name VARCHAR(255) NOT NULL,
|
||||||
|
email VARCHAR(255) NOT NULL,
|
||||||
|
service VARCHAR(255),
|
||||||
|
message TEXT,
|
||||||
|
status VARCHAR(50) DEFAULT 'pending',
|
||||||
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
|
)");
|
||||||
|
|
||||||
|
$stmt = $db->prepare("INSERT INTO leads (name, email, service, message) VALUES (?, ?, ?, ?)");
|
||||||
|
$stmt->execute([$name, $email, $service, $message]);
|
||||||
|
|
||||||
|
// Send email notification (optional but recommended)
|
||||||
|
// MailService::sendContactMessage($name, $email, "New lead: $service - $message");
|
||||||
|
|
||||||
|
echo json_encode(['success' => true]);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
error_log($e->getMessage());
|
||||||
|
echo json_encode(['success' => false, 'error' => 'Database error. Please try again later.']);
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user