This commit is contained in:
Flatlogic Bot 2025-09-09 19:16:31 +00:00
parent 0ee73cc57e
commit 1fd929268d
4 changed files with 352 additions and 123 deletions

72
assets/css/custom.css Normal file
View File

@ -0,0 +1,72 @@
:root {
--primary-color: #3B82F6;
--secondary-color: #10B981;
--background-color: #F9FAFB;
--surface-color: #FFFFFF;
--text-color: #111827;
--heading-font: 'Inter', sans-serif;
--body-font: 'Inter', sans-serif;
}
body {
font-family: var(--body-font);
background-color: var(--background-color);
color: var(--text-color);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--heading-font);
font-weight: 700;
}
.navbar {
transition: all 0.3s ease-in-out;
}
.navbar-scrolled {
background-color: var(--surface-color);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.hero {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/1600/900');
background-size: cover;
background-position: center;
color: white;
padding: 8rem 0;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
}
.section-title {
margin-bottom: 3rem;
}
.card {
border: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: transform 0.2s ease-in-out;
}
.card:hover {
transform: translateY(-5px);
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}
footer {
background-color: var(--text-color);
color: var(--background-color);
}

32
assets/js/main.js Normal file
View File

@ -0,0 +1,32 @@
document.addEventListener('DOMContentLoaded', function () {
// Navbar shrink on scroll
const navbar = document.querySelector('.navbar');
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
navbar.classList.add('navbar-scrolled');
} else {
navbar.classList.remove('navbar-scrolled');
}
});
// Smooth scrolling for internal links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Contact form validation
const form = document.querySelector('#contactForm');
form.addEventListener('submit', function (e) {
if (!form.checkValidity()) {
e.preventDefault();
e.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});

1
db/contacts.json Normal file
View File

@ -0,0 +1 @@
[]

368
index.php
View File

@ -1,131 +1,255 @@
<?php <?php
declare(strict_types=1); $message_sent = false;
@ini_set('display_errors', '1'); $error_message = '';
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION; if ($_SERVER["REQUEST_METHOD"] == "POST") {
$now = date('Y-m-d H:i:s'); $name = filter_var(trim($_POST["name"])), FILTER_SANITIZE_STRING);
$email = filter_var(trim($_POST["email"])), FILTER_SANITIZE_EMAIL);
$message = filter_var(trim($_POST["message"])), FILTER_SANITIZE_STRING);
if (empty($name) || !filter_var($email, FILTER_VALIDATE_EMAIL) || empty($message)) {
$error_message = "Please fill out all fields correctly.";
} else {
// IMPORTANT: Replace with your real email address
$to = "your-email@example.com";
$subject = "New Contact Form Submission from " . $name;
$body = "You have received a new message from your website contact form.\n\n";
$body .= "Here are the details:\n";
$body .= "Name: $name\n";
$body .= "Email: $email\n";
$body .= "Message:\n$message\n";
$headers = "From: noreply@yourdomain.com\r\n"; // Replace with a valid sender email
$headers .= "Reply-To: $email\r\n";
if (mail($to, $subject, $body, $headers)) {
$message_sent = true;
} else {
$error_message = "Sorry, there was an error sending your message. Please try again later.";
}
}
}
?> ?>
<!doctype html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Style</title> <title>Ava Reed | Creative Developer & Designer</title>
<link rel="preconnect" href="https://fonts.googleapis.com"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet"> <link rel="preconnect" href="https://fonts.googleapis.com">
<style> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
:root { <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
--bg-color-start: #6a11cb; <link rel="stylesheet" href="assets/css/custom.css">
--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> </head>
<body> <body>
<main>
<div class="card"> <!-- Navbar -->
<h1>Analyzing your requirements and generating your website…</h1> <nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<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 fw-bold" href="#">Ava Reed</a>
</div> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<p class="hint">Flatlogic AI is collecting your requirements and applying the first changes.</p> <span class="navbar-toggler-icon"></span>
<p class="hint">This page will update automatically as the plan is implemented.</p> </button>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p> <div class="collapse navbar-collapse" id="navbarNav">
</div> <ul class="navbar-nav ms-auto">
</main> <li class="nav-item"><a class="nav-link" href="#work">Work</a></li>
<footer> <li class="nav-item"><a class="nav-link" href="#services">Services</a></li>
Page updated: <?= htmlspecialchars($now) ?> (UTC) <li class="nav-item"><a class="nav-link" href="#about">About</a></li>
</footer> <li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="hero text-center">
<div class="container">
<h1 class="display-4 fw-bold">Creative Developer & Designer.</h1>
<p class="lead my-4">Ava Reed builds beautiful, functional, and modern web experiences.</p>
<a href="#contact" class="btn btn-primary btn-lg mx-1">Contact Me</a>
<a href="#work" class="btn btn-secondary btn-lg mx-1">See My Work</a>
</div>
</header>
<main>
<!-- Work Gallery -->
<section id="work" class="py-5">
<div class="container">
<h2 class="text-center section-title">My Work</h2>
<div class="row g-4">
<!-- Project 1 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/600/400?random=1" class="card-img-top" alt="Placeholder for project showcase">
<div class="card-body">
<h5 class="card-title">Project One</h5>
<p class="card-text">A brief description of the project, its goals, and the technology used.</p>
</div>
</div>
</div>
<!-- Project 2 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/600/400?random=2" class="card-img-top" alt="Placeholder for project showcase">
<div class="card-body">
<h5 class="card-title">Project Two</h5>
<p class="card-text">A brief description of the project, its goals, and the technology used.</p>
</div>
</div>
</div>
<!-- Project 3 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/600/400?random=3" class="card-img-top" alt="Placeholder for project showcase">
<div class="card-body">
<h5 class="card-title">Project Three</h5>
<p class="card-text">A brief description of the project, its goals, and the technology used.</p>
</div>
</div>
</div>
<!-- Project 4 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/600/400?random=4" class="card-img-top" alt="Placeholder for project showcase">
<div class="card-body">
<h5 class="card-title">Project Four</h5>
<p class="card-text">A brief description of the project, its goals, and the technology used.</p>
</div>
</div>
</div>
<!-- Project 5 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/600/400?random=5" class="card-img-top" alt="Placeholder for project showcase">
<div class="card-body">
<h5 class="card-title">Project Five</h5>
<p class="card-text">A brief description of the project, its goals, and the technology used.</p>
</div>
</div>
</div>
<!-- Project 6 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/600/400?random=6" class="card-img-top" alt="Placeholder for project showcase">
<div class="card-body">
<h5 class="card-title">Project Six</h5>
<p class="card-text">A brief description of the project, its goals, and the technology used.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section id="services" class="py-5 bg-light">
<div class="container">
<h2 class="text-center section-title">Services</h2>
<div class="row text-center g-4">
<div class="col-md-4">
<div class="card p-3">
<div class="card-body">
<i class="bi bi-gem fs-1 text-primary"></i>
<h3 class="h4 my-3">Web Design</h3>
<p>Creating stunning, user-friendly interfaces that are both beautiful and intuitive.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card p-3">
<div class="card-body">
<i class="bi bi-code-slash fs-1 text-primary"></i>
<h3 class="h4 my-3">Web Development</h3>
<p>Building responsive, high-performance websites from the ground up.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card p-3">
<div class="card-body">
<i class="bi bi-palette fs-1 text-primary"></i>
<h3 class="h4 my-3">Branding</h3>
<p>Developing a strong brand identity that resonates with your target audience.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-5">
<div class="container">
<h2 class="text-center section-title">About Me</h2>
<div class="row align-items-center">
<div class="col-md-4 text-center">
<img src="https://picsum.photos/256/256" class="img-fluid rounded-circle mb-4" alt="Headshot of Ava Reed">
</div>
<div class="col-md-8">
<p class="lead">I'm Ava Reed, a passionate developer and designer with a knack for creating engaging digital experiences. With a background in both art and computer science, I bring a unique perspective to every project.</p>
<p>My goal is to build products that are not only visually appealing but also highly functional and accessible to everyone. I love collaborating with clients to bring their visions to life.</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-5 bg-light">
<div class="container">
<h2 class="text-center section-title">Get In Touch</h2>
<div class="row justify-content-center">
<div class="col-lg-8">
<?php if ($message_sent): ?>
<div class="alert alert-success" role="alert">
Thank you for your message! I will get back to you shortly.
</div>
<?php endif; ?>
<?php if ($error_message): ?>
<div class="alert alert-danger" role="alert">
<?php echo $error_message; ?>
</div>
<?php endif; ?>
<form id="contactForm" class="needs-validation" novalidate method="POST" action="index.php#contact">
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" id="name" name="name" required>
<div class="invalid-feedback">Please enter your name.</div>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" name="email" required>
<div class="invalid-feedback">Please enter a valid email address.</div>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message</label>
<textarea class="form-control" id="message" name="message" rows="5" required></textarea>
<div class="invalid-feedback">Please enter a message.</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary btn-lg">Send Message</button>
</div>
</form>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="py-4 text-center">
<div class="container">
<div class="mb-3">
<a href="#" class="text-white mx-2" aria-label="GitHub"><i class="bi bi-github fs-4"></i></a>
<a href="#" class="text-white mx-2" aria-label="LinkedIn"><i class="bi bi-linkedin fs-4"></i></a>
<a href="#" class="text-white mx-2" aria-label="Dribbble"><i class="bi bi-dribbble fs-4"></i></a>
</div>
<p>&copy; 2025 Ava Reed. All Rights Reserved.</p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js"></script>
</body> </body>
</html> </html>