189 lines
9.5 KiB
PHP
189 lines
9.5 KiB
PHP
<?php
|
|
require_once __DIR__ . '/db/config.php';
|
|
require_once __DIR__ . '/db/content_manager.php';
|
|
|
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Modern Personal Portfolio';
|
|
$projectName = $_SERVER['PROJECT_NAME'] ?? 'Portfolio';
|
|
?>
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><?= htmlspecialchars($projectName) ?></title>
|
|
|
|
<!-- Meta Tags -->
|
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>">
|
|
<meta property="og:title" content="<?= htmlspecialchars($projectName) ?>">
|
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>">
|
|
<?php if (isset($_SERVER['PROJECT_IMAGE_URL'])): ?>
|
|
<meta property="og:image" content="<?= htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']) ?>">
|
|
<?php endif; ?>
|
|
|
|
<!-- Fonts & Styles -->
|
|
<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&display=swap" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?= time() ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Interactive Background -->
|
|
<canvas id="bg-canvas"></canvas>
|
|
|
|
<!-- Navbar -->
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom fixed-top">
|
|
<div class="container">
|
|
<a class="navbar-brand fw-bold" href="#"><?= htmlspecialchars($projectName) ?></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">
|
|
<li class="nav-item"><a class="nav-link" href="#portfolio">Portfolio</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 -->
|
|
<section class="hero d-flex align-items-center">
|
|
<div class="container text-center text-lg-start">
|
|
<div class="row align-items-center">
|
|
<div class="col-lg-6">
|
|
<h1 class="display-4 mb-3"><?= htmlspecialchars(get_content('hero_title')['title']) ?></h1>
|
|
<p class="lead text-secondary mb-4"><?= htmlspecialchars(get_content('hero_title')['content']) ?></p>
|
|
<div class="d-flex gap-3 justify-content-center justify-content-lg-start">
|
|
<a href="#portfolio" class="btn btn-primary btn-lg">View My Work</a>
|
|
<a href="#contact" class="btn btn-outline-dark btn-lg">Get in Touch</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 mt-5 mt-lg-0 text-center">
|
|
<img src="https://picsum.photos/seed/profile/600/600" alt="Profile" class="img-fluid rounded-circle shadow-sm" style="max-width: 400px; border: 8px solid white;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Portfolio Section -->
|
|
<section id="portfolio" class="section-padding">
|
|
<div class="container">
|
|
<div class="text-center mb-5">
|
|
<h2 class="h1">Selected Work</h2>
|
|
<p class="text-secondary">A collection of projects spanning web apps, branding, and UX design.</p>
|
|
</div>
|
|
<div class="row g-4">
|
|
<?php
|
|
$projects = [
|
|
['title' => 'E-commerce Platform', 'category' => 'Web Development', 'img' => 'https://picsum.photos/seed/project1/800/600'],
|
|
['title' => 'Banking App UI', 'category' => 'Product Design', 'img' => 'https://picsum.photos/seed/project2/800/600'],
|
|
['title' => 'Travel Explorer', 'category' => 'Mobile App', 'img' => 'https://picsum.photos/seed/project3/800/600'],
|
|
['title' => 'SaaS Dashboard', 'category' => 'UX Research', 'img' => 'https://picsum.photos/seed/project4/800/600'],
|
|
];
|
|
foreach ($projects as $project):
|
|
?>
|
|
<div class="col-md-6 col-lg-3 portfolio-card-container">
|
|
<div class="portfolio-card card h-100 border-0 shadow-sm overflow-hidden">
|
|
<img src="<?= $project['img'] ?>" class="portfolio-img" alt="<?= $project['title'] ?>">
|
|
<div class="card-body p-3">
|
|
<span class="text-primary small fw-bold text-uppercase"><?= $project['category'] ?></span>
|
|
<h5 class="card-title mt-1 mb-0"><?= $project['title'] ?></h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- About Section -->
|
|
<section id="about" class="section-padding bg-light">
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8">
|
|
<div class="text-center mb-5">
|
|
<h2 class="h1"><?= htmlspecialchars(get_content('about_bio')['title']) ?></h2>
|
|
</div>
|
|
<div class="card p-4 border-0 shadow-sm">
|
|
<p class="lead"><?= htmlspecialchars(get_content('about_bio')['content']) ?></p>
|
|
<hr class="my-4 opacity-10">
|
|
<div class="row g-3">
|
|
<div class="col-6 col-md-3">
|
|
<div class="small fw-bold text-uppercase text-secondary">Expertise</div>
|
|
<div>Web Dev</div>
|
|
</div>
|
|
<div class="col-6 col-md-3">
|
|
<div class="small fw-bold text-uppercase text-secondary">Location</div>
|
|
<div>Remote / NYC</div>
|
|
</div>
|
|
<div class="col-6 col-md-3">
|
|
<div class="small fw-bold text-uppercase text-secondary">Experience</div>
|
|
<div>5+ Years</div>
|
|
</div>
|
|
<div class="col-6 col-md-3">
|
|
<div class="small fw-bold text-uppercase text-secondary">Focus</div>
|
|
<div>Clean UI</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Contact Section -->
|
|
<section id="contact" class="section-padding">
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-6">
|
|
<div class="text-center mb-5">
|
|
<h2 class="h1">Let's Connect</h2>
|
|
<p class="text-secondary">Have a project in mind or just want to say hi? Drop a message below.</p>
|
|
</div>
|
|
<div class="card p-4 border-0 shadow-sm">
|
|
<form id="contactForm">
|
|
<div class="mb-3">
|
|
<label class="form-label small fw-bold">Name</label>
|
|
<input type="text" name="name" class="form-control" placeholder="John Doe" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label small fw-bold">Email</label>
|
|
<input type="email" name="email" class="form-control" placeholder="john@example.com" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label small fw-bold">Subject</label>
|
|
<input type="text" name="subject" class="form-control" placeholder="Project Inquiry">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label small fw-bold">Message</label>
|
|
<textarea name="message" class="form-control" rows="4" placeholder="Tell me about your project..." required></textarea>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary w-100">Send Message</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer">
|
|
<div class="container text-center">
|
|
<p class="mb-0 text-secondary">© <?= date('Y') ?> <?= htmlspecialchars($projectName) ?>. All rights reserved.</p>
|
|
<div class="mt-2">
|
|
<a href="admin_edit.php" class="text-decoration-none small text-muted">Admin Panel</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Toast Container -->
|
|
<div id="toastContainer" class="toast-container"></div>
|
|
|
|
<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>
|