Compare commits

...

10 Commits

Author SHA1 Message Date
71773df9f9 Edit index.php via Editor 2025-09-12 11:37:29 +00:00
f2116845e8 Edit index.php via Editor 2025-09-12 10:47:46 +00:00
ae3c75eccc Hello world 2025-09-11 15:50:02 +00:00
7e357640cc Edit index.php via Editor 2025-09-11 15:45:46 +00:00
e4b9681d18 Edit index.php via Editor 2025-09-11 15:32:57 +00:00
Flatlogic Bot
86857a1f40 Revert to version f1c6a4b 2025-09-11 13:42:29 +00:00
Flatlogic Bot
ba0d988d34 Revert to version 44072e8 2025-09-11 13:41:58 +00:00
Flatlogic Bot
f1c6a4b2b4 glass on cards 2025-09-11 13:41:44 +00:00
Flatlogic Bot
b94565c1d7 mail 2025-09-11 13:28:42 +00:00
Flatlogic Bot
bbc2c4b789 v1 2025-09-11 13:18:40 +00:00
3 changed files with 564 additions and 123 deletions

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

@ -0,0 +1,191 @@
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
--bs-primary-rgb: 13, 110, 253;
--bs-secondary-rgb: 108, 117, 125;
--background-color: #F8F9FA;
--surface-color: #FFFFFF;
--text-color: #212529;
--heading-font: 'Poppins', sans-serif;
--body-font: 'Lato', sans-serif;
}
body {
font-family: var(--body-font);
color: var(--text-color);
background-color: var(--background-color);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--heading-font);
font-weight: 700;
}
.section-title {
text-align: center;
padding-bottom: 30px;
}
.section-title h2 {
font-size: 32px;
font-weight: bold;
text-transform: uppercase;
margin-bottom: 20px;
padding-bottom: 20px;
position: relative;
}
.section-title h2::after {
content: '';
position: absolute;
display: block;
width: 50px;
height: 3px;
background: #0D6EFD;
bottom: 0;
left: calc(50% - 25px);
}
/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
transition: all 0.3s ease-in-out;
padding: 1.2rem 0;
}
.navbar.scrolled {
background-color: var(--surface-color);
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
padding: 0.8rem 0;
}
.navbar-brand {
font-family: var(--heading-font);
font-weight: 700;
font-size: 1.8rem;
}
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
width: 100%;
height: 100vh;
background: linear-gradient(170deg, rgba(13, 110, 253, 0.8), rgba(13, 83, 191, 0.8)), url('https://picsum.photos/seed/hero-pf/1600/900') center center;
background-size: cover;
color: white;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
#hero h1 {
font-size: 3.5rem;
font-weight: 700;
line-height: 1.2;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
#hero p {
font-size: 1.25rem;
max-width: 600px;
margin: 1rem auto;
}
/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
padding: 80px 0;
overflow: hidden;
}
.card {
border: none;
border-radius: 0.375rem;
box-shadow: 0 0 30px rgba(0,0,0,0.08);
transition: transform 0.3s;
}
.card:hover {
transform: translateY(-5px);
}
/* Services */
.service-item .icon {
font-size: 3rem;
color: #0D6EFD;
}
/* Testimonials */
.testimonial-item img {
width: 96px;
height: 96px;
border-radius: 50%;
margin-right: 1rem;
}
/* Process */
.process-step {
text-align: center;
position: relative;
}
.process-step .icon {
width: 80px;
height: 80px;
border: 2px solid #0D6EFD;
border-radius: 50%;
margin: 0 auto 20px auto;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
color: #0D6EFD;
background: #fff;
z-index: 1;
position: relative;
}
.process-step h4 {
font-weight: 600;
}
.process-step::after {
content: '';
position: absolute;
width: 100%;
height: 1px;
background: #ddd;
top: 40px;
left: 50%;
z-index: 0;
}
.col:last-child .process-step::after {
display: none;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
background: #343a40;
color: white;
padding: 40px 0;
}
#footer a {
color: #ffc107;
text-decoration: none;
}
#footer a:hover {
text-decoration: underline;
}
.frosted-card {
background: rgba(255, 255, 255, 0.4) !important;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}

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

@ -0,0 +1,51 @@
document.addEventListener('DOMContentLoaded', () => {
"use strict";
/**
* Navbar shrink on scroll
*/
const navbar = document.querySelector('.navbar');
if (navbar) {
const handleScroll = () => {
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
};
window.addEventListener('scroll', handleScroll);
handleScroll(); // Initial check
}
/**
* Smooth scroll for anchor links
*/
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
if(targetElement){
targetElement.scrollIntoView({
behavior: 'smooth'
});
}
});
});
/**
* Bootstrap form validation
*/
const forms = document.querySelectorAll('.needs-validation');
Array.prototype.slice.call(forms).forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
});

431
index.php
View File

@ -1,131 +1,330 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$mail_result = null;
if ($_SERVER["REQUEST_METHOD"] == "POST") {
require_once __DIR__ . '/mail/MailService.php';
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);
$email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
$budget = filter_input(INPUT_POST, 'budget', FILTER_SANITIZE_STRING);
$message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING);
if ($name && $email && $message) {
$full_message = "Budget: " . $budget . "\n\n" . $message;
$mail_result = MailService::sendContactMessage(
$name,
$email,
$full_message,
'blarior@gmail.com',
'New inquiry from PixelForge website'
);
} else {
$mail_result = ['success' => false, 'error' => 'Invalid input.'];
}
}
?>
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PixelForge - Digital Agency</title>
<!-- Favicon -->
<link href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🔥</text></svg>" rel="icon">
<!-- Google 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;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>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Lato:wght@400;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<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>
<!-- ======= Header ======= -->
<header id="header" class="fixed-top">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container">
<a class="navbar-brand" href="#">PixelForge</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#services">Services</a></li>
<li class="nav-item"><a class="nav-link" href="#work">Work</a></li>
<li class="nav-item"><a class="nav-link" href="#testimonials">Testimonials</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
<li class="nav-item ms-lg-3"><a class="btn btn-warning" href="#contact">Request a Quote</a></li>
</ul>
</div>
<p class="hint">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>
</nav>
</header>
<!-- ======= Hero Section ======= -->
<section id="hero">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<h1>Welcome from Editor!!!</h1>
<p>A digital agency crafting beautiful and effective websites, apps, and brand identities.</p>
<a href="#contact" class="btn btn-warning btn-lg mt-3">Request a Quote</a>
</div>
</div>
</div>
</section>
<main id="main">
<!-- ======= Services Section ======= -->
<section id="services" class="services">
<div class="container">
<div class="section-title">
<h2>Our Services</h2>
</div>
<div class="row text-center">
<div class="col-lg-4 col-md-6 mb-4">
<div class="service-item p-4 rounded shadow-sm frosted-card">
<div class="icon mb-3"><i class="bi bi-display"></i></div>
<h4 class="mb-3">Web Design</h4>
<p>Stunning, responsive websites that capture your brand and engage your audience.</p>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="service-item p-4 rounded shadow-sm frosted-card">
<div class="icon mb-3"><i class="bi bi-phone"></i></div>
<h4 class="mb-3">App Development</h4>
<p>Intuitive and powerful mobile apps for iOS and Android that your users will love.</p>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="service-item p-4 rounded shadow-sm frosted-card">
<div class="icon mb-3"><i class="bi bi-palette"></i></div>
<h4 class="mb-3">Branding</h4>
<p>Creating memorable brand identities that tell your story and connect with customers.</p>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="service-item p-4 rounded shadow-sm frosted-card">
<div class="icon mb-3"><i class="bi bi-search"></i></div>
<h4 class="mb-3">SEO</h4>
<p>Climb the search rankings and drive organic traffic with our proven SEO strategies.</p>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="service-item p-4 rounded shadow-sm frosted-card">
<div class="icon mb-3"><i class="bi bi-vector-pen"></i></div>
<h4 class="mb-3">UI/UX Design</h4>
<p>User-centric designs that provide seamless and enjoyable digital experiences.</p>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="service-item p-4 rounded shadow-sm frosted-card">
<div class="icon mb-3"><i class="bi bi-card-text"></i></div>
<h4 class="mb-3">Content Strategy</h4>
<p>Engaging content that builds authority and converts readers into customers.</p>
</div>
</div>
</div>
</div>
</section>
<!-- ======= Case Studies Section ======= -->
<section id="work">
<div class="container">
<div class="section-title">
<h2>Our Work</h2>
</div>
<div class="row">
<div class="col-lg-4 col-md-6 mb-4">
<div class="card h-100 frosted-card">
<img src="https://picsum.photos/seed/work-1/600/400" class="card-img-top" alt="A sleek website design for a corporate client.">
<div class="card-body">
<h5 class="card-title">Corporate Website Redesign</h5>
<p class="card-text">A modern and professional redesign for a leading tech company.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="card h-100 frosted-card">
<img src="https://picsum.photos/seed/work-2/600/400" class="card-img-top" alt="A vibrant mobile app interface for a startup.">
<div class="card-body">
<h5 class="card-title">E-commerce Mobile App</h5>
<p class="card-text">A feature-rich mobile app for a growing online fashion retailer.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="card h-100 frosted-card">
<img src="https://picsum.photos/seed/work-3/600/400" class="card-img-top" alt="A complete branding package with logos and mockups.">
<div class="card-body">
<h5 class="card-title">Startup Branding Package</h5>
<p class="card-text">A complete brand identity for a new SaaS platform, from logo to launch.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ======= Testimonials Section ======= -->
<section id="testimonials">
<div class="container">
<div class="section-title">
<h2>What Our Clients Say</h2>
</div>
<div class="row">
<div class="col-lg-4 mb-4">
<div class="card h-100 frosted-card">
<div class="card-body text-center">
<img src="https://picsum.photos/seed/avatar-1/96/96" class="rounded-circle mb-3" alt="Avatar of a satisfied client.">
<p class="fst-italic">"PixelForge transformed our online presence. Their attention to detail and creative vision is second to none."</p>
<h5 class="mt-3 mb-0">Jane Doe</h5>
<small class="text-muted">CEO, Tech Solutions</small>
</div>
</div>
</div>
<div class="col-lg-4 mb-4">
<div class="card h-100 frosted-card">
<div class="card-body text-center">
<img src="https://picsum.photos/seed/avatar-2/96/96" class="rounded-circle mb-3" alt="Avatar of a happy customer.">
<p class="fst-italic">"The mobile app they developed exceeded all our expectations. Our users love it!"</p>
<h5 class="mt-3 mb-0">John Smith</h5>
<small class="text-muted">Founder, Fashion Forward</small>
</div>
</div>
</div>
<div class="col-lg-4 mb-4">
<div class="card h-100 frosted-card">
<div class="card-body text-center">
<img src="https://picsum.photos/seed/avatar-3/96/96" class="rounded-circle mb-3" alt="Avatar of a project partner.">
<p class="fst-italic">"Working with PixelForge was a seamless experience. They are true professionals and masters of their craft."</p>
<h5 class="mt-3 mb-0">Sam Wilson</h5>
<small class="text-muted">Marketing Director, Innovate Co.</small>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ======= Process Section ======= -->
<section id="process">
<div class="container">
<div class="section-title">
<h2>Our Process</h2>
</div>
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="process-step">
<div class="icon"><i class="bi bi-search"></i></div>
<h4>1. Discover</h4>
<p>We start by understanding your goals, audience, and challenges.</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="process-step">
<div class="icon"><i class="bi bi-palette"></i></div>
<h4>2. Design</h4>
<p>We create wireframes and mockups to bring the vision to life.</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="process-step">
<div class="icon"><i class="bi bi-code-slash"></i></div>
<h4>3. Develop</h4>
<p>Our team builds a high-quality, scalable solution using the latest tech.</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="process-step">
<div class="icon"><i class="bi bi-rocket-takeoff"></i></div>
<h4>4. Deploy</h4>
<p>We launch your project and provide support for a seamless transition.</p>
</div>
</div>
</div>
</div>
</section>
<!-- ======= Contact Section ======= -->
<section id="contact">
<div class="container">
<div class="section-title">
<h2>Get in Touch</h2>
<p>Have a project in mind? We'd love to hear from you.</p>
</div>
<div class="row justify-content-center">
<div class="col-lg-8">
<?php if ($mail_result !== null): ?>
<div class="alert <?php echo $mail_result['success'] ? 'alert-success' : 'alert-danger'; ?>">
<?php if ($mail_result['success']): ?>
Your message has been sent successfully!
<?php else: ?>
There was an error sending your message: <?php echo htmlspecialchars($mail_result['error']); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<form action="#contact" method="post" class="row g-3 needs-validation" novalidate>
<div class="col-md-6">
<label for="name" class="form-label">Your Name</label>
<input type="text" name="name" class="form-control" id="name" required>
<div class="invalid-feedback">Please enter your name.</div>
</div>
<div class="col-md-6">
<label for="email" class="form-label">Your Email</label>
<input type="email" name="email" class="form-control" id="email" required>
<div class="invalid-feedback">Please enter a valid email.</div>
</div>
<div class="col-12">
<label for="budget" class="form-label">Estimated Budget</label>
<select class="form-select" name="budget" id="budget">
<option selected disabled value="">Choose...</option>
<option>&lt; $5,000</option>
<option>$5,000 - $10,000</option>
<option>$10,000 - $25,000</option>
<option>$25,000+</option>
</select>
</div>
<div class="col-12">
<label for="message" class="form-label">Message</label>
<textarea class="form-control" name="message" id="message" rows="5" required></textarea>
<div class="invalid-feedback">Please leave a message.</div>
</div>
<div class="col-12 text-center">
<button type="submit" class="btn btn-primary btn-lg">Send Message</button>
</div>
</form>
</div>
</div>
</div>
</section>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="container text-center">
<p>&copy; <?php echo date("Y"); ?> PixelForge. All Rights Reserved.</p>
<p>
<a href="#services">Services</a> |
<a href="#work">Work</a> |
<a href="#contact">Contact</a>
</p>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>