This commit is contained in:
Flatlogic Bot 2025-10-23 07:50:29 +00:00
parent 39e0c91d7b
commit eb84d223b7
5 changed files with 502 additions and 143 deletions

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

@ -0,0 +1,189 @@
/* Zone College Management System - Custom Styles */
/* 1. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Lato:wght@400;700&display=swap');
/* 2. Variables */
:root {
--primary-color: #005A9E;
--secondary-color: #FFC107;
--background-color: #F8F9FA;
--surface-color: #FFFFFF;
--text-color: #212529;
--light-text-color: #F8F9FA;
--border-radius: 0.5rem;
--font-family-headings: 'Poppins', sans-serif;
--font-family-body: 'Lato', sans-serif;
}
/* 3. General Styles */
body {
font-family: var(--font-family-body);
color: var(--text-color);
background-color: var(--background-color);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family-headings);
font-weight: 600;
color: var(--primary-color);
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
border-radius: var(--border-radius);
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: #004170;
border-color: #004170;
transform: translateY(-2px);
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
color: var(--text-color);
border-radius: var(--border-radius);
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-secondary:hover {
background-color: #e6ac00;
border-color: #e6ac00;
transform: translateY(-2px);
}
/* 4. Navbar */
.navbar {
transition: background-color 0.3s ease;
}
.navbar-brand {
font-family: var(--font-family-headings);
font-weight: 700;
font-size: 1.75rem;
}
.navbar.scrolled {
background-color: var(--surface-color);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* 5. Hero Section */
.hero {
color: var(--light-text-color);
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: url('https://images.pexels.com/photos/256490/pexels-photo-256490.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
background-size: cover;
position: relative;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgba(0, 90, 158, 0.8), rgba(0, 40, 70, 0.9));
}
.hero .container {
position: relative;
z-index: 2;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
color: var(--surface-color);
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero p {
font-size: 1.25rem;
margin-bottom: 2rem;
color: rgba(255, 255, 255, 0.9);
}
/* 6. Section Styles */
.section {
padding: 6rem 0;
}
.section-title {
text-align: center;
margin-bottom: 4rem;
font-size: 2.5rem;
font-weight: 700;
}
/* 7. Features Section */
.feature-card {
background-color: var(--surface-color);
border: none;
border-radius: var(--border-radius);
padding: 2rem;
text-align: center;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
transition: all 0.3s ease;
height: 100%;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-icon {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
/* 8. Contact Section */
#contact {
background-color: var(--surface-color);
}
.form-control {
border-radius: var(--border-radius);
padding: 0.75rem;
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.25rem rgba(0, 90, 158, 0.25);
}
/* 9. Footer */
footer {
background-color: #343a40;
color: var(--light-text-color);
padding: 3rem 0;
}
footer a {
color: var(--secondary-color);
text-decoration: none;
transition: color 0.3s ease;
}
footer a:hover {
color: #fff;
}

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

@ -0,0 +1,76 @@
document.addEventListener('DOMContentLoaded', function () {
// Navbar scroll effect
const navbar = document.querySelector('.navbar');
if (navbar) {
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
}
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Contact Form Submission
const contactForm = document.getElementById('contactForm');
if (contactForm) {
contactForm.addEventListener('submit', function (e) {
e.preventDefault();
const form = e.target;
const formData = new FormData(form);
const submitButton = form.querySelector('button[type="submit"]');
const originalButtonText = submitButton.innerHTML;
submitButton.disabled = true;
submitButton.innerHTML = '<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Sending...';
fetch('contact.php', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => {
const alertPlaceholder = document.getElementById('form-feedback');
let alertClass = 'alert-success';
let alertMessage = 'Thank you! Your message has been sent successfully.';
if (!data.success) {
alertClass = 'alert-danger';
alertMessage = data.error || 'An unexpected error occurred. Please try again.';
}
alertPlaceholder.innerHTML = `<div class="alert ${alertClass} alert-dismissible fade show" role="alert">
${alertMessage}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>`;
if (data.success) {
form.reset();
}
})
.catch(error => {
const alertPlaceholder = document.getElementById('form-feedback');
alertPlaceholder.innerHTML = `<div class="alert alert-danger alert-dismissible fade show" role="alert">
An error occurred while sending your message. Please check your connection and try again.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>`;
})
.finally(() => {
submitButton.disabled = false;
submitButton.innerHTML = originalButtonText;
});
});
}
});

43
contact.php Normal file
View File

@ -0,0 +1,43 @@
<?php
header('Content-Type: application/json');
// Basic security checks
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
http_response_code(405);
echo json_encode(['success' => false, 'error' => 'Method Not Allowed']);
exit;
}
require_once __DIR__ . '/mail/MailService.php';
// 1. Get and sanitize inputs
$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);
$email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
$message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING);
// 2. Validate inputs
if (empty($name) || empty($email) || empty($message)) {
http_response_code(400);
echo json_encode(['success' => false, 'error' => 'Please fill out all fields.']);
exit;
}
if (!$email) {
http_response_code(400);
echo json_encode(['success' => false, 'error' => 'Please provide a valid email address.']);
exit;
}
// 3. Send email
// The `sendContactMessage` function will use the default recipient from `.env` if the `$to` argument is omitted.
$subject = 'New Contact Form Submission from Zone CMS';
$res = MailService::sendContactMessage($name, $email, $message, null, $subject);
// 4. Send response
if (!empty($res['success'])) {
echo json_encode(['success' => true]);
} else {
// In a real app, you would log the detailed error from $res['error']
http_response_code(500);
echo json_encode(['success' => false, 'error' => 'There was an issue sending your message. Please try again later.']);
}

286
index.php
View File

@ -1,150 +1,150 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
// You can include PHP logic here if needed in the future.
?>
<!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>
<?php
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?>
<?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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO & Meta Tags -->
<title>Zone College Management System</title>
<meta name="description" content="A comprehensive and responsive college management system with advanced features like AI-detection and biometric attendance. Built with Flatlogic Generator.">
<meta name="keywords" content="college management, student information system, AI proctoring, biometric attendance, education technology, university ERP, academic management, anti-AI system, flatlogic">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="Zone College Management System">
<meta property="og:description" content="The future of college administration, featuring AI-powered academic integrity and advanced attendance tracking.">
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="Zone College Management System">
<meta property="twitter:description" content="The future of college administration, featuring AI-powered academic integrity and advanced attendance tracking.">
<meta property="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<!-- Stylesheets -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.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>
</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>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
<!-- Header -->
<header>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="#">Zone</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="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<!-- Hero Section -->
<section class="hero">
<div class="hero-overlay"></div>
<div class="container">
<h1 class="display-3">The Future of College Management</h1>
<p class="lead">AI-powered academic integrity, seamless administration, and a globally-ready platform.</p>
<a href="#contact" class="btn btn-primary btn-lg">Request a Demo</a>
</div>
</section>
<!-- About Section -->
<section id="about" class="section">
<div class="container">
<h2 class="section-title">Redefining Education Technology</h2>
<div class="row align-items-center">
<div class="col-lg-6">
<p class="lead">Zone is a comprehensive, responsive College Management System designed for the modern educational landscape. From admission to graduation, Zone streamlines every administrative and academic process.</p>
<p>Our system is built to be scalable, secure, and ready for international deployment, with features like multi-language support, advanced attendance tracking, and a unique AI-powered system to ensure academic integrity.</p>
</div>
<div class="col-lg-6 text-center">
<img src="https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=600" class="img-fluid rounded shadow-lg" alt="Team collaborating">
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section id="features" class="section">
<div class="container">
<h2 class="section-title">Core Features</h2>
<div class="row g-4">
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<div class="feature-card">
<i class="bi bi-shield-check feature-icon"></i>
<h3>AI-Powered Integrity</h3>
<p>Detect AI-generated content, monitor exams, and uphold academic honor with our cutting-edge anti-AI system.</p>
</div>
</div>
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<div class="feature-card">
<i class="bi bi-person-check-fill feature-icon"></i>
<h3>Advanced Attendance</h3>
<p>Utilize QR codes, selfie verification, biometrics, and more for a fraud-proof attendance system.</p>
</div>
</div>
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<div class="feature-card">
<i class="bi bi-globe2 feature-icon"></i>
<h3>Globally Ready</h3>
<p>Built for international use with multi-language UI, currency support, and cross-border compliance features.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="section">
<div class="container">
<h2 class="section-title">Get in Touch</h2>
<div class="row">
<div class="col-lg-8 mx-auto">
<div id="form-feedback"></div>
<form id="contactForm" novalidate>
<div class="mb-3">
<input type="text" class="form-control" id="name" name="name" placeholder="Your Name" required>
</div>
<div class="mb-3">
<input type="email" class="form-control" id="email" name="email" placeholder="Your Email" required>
</div>
<div class="mb-3">
<textarea class="form-control" id="message" name="message" rows="5" placeholder="Your Message" required></textarea>
</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="text-center">
<div class="container">
<p class="mb-2">&copy; 2025 Zone College Management System. All Rights Reserved.</p>
<p><a href="privacy.php">Privacy Policy</a></p>
</div>
</footer>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>
</html>

51
privacy.php Normal file
View File

@ -0,0 +1,51 @@
<?php
// Simple header
function get_header() {
echo <<<HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy - Zone College Management System</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.php">Zone CMS</a>
<a href="index.php" class="btn btn-outline-light">Back to Home</a>
</div>
</nav>
HTML;
}
// Simple footer
function get_footer() {
echo <<<HTML
<footer class="text-center py-4 bg-dark text-white mt-5">
<p>&copy; 2025 Zone College Management System. All Rights Reserved.</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
HTML;
}
get_header();
?>
<div class="container" style="padding-top: 100px;">
<div class="row">
<div class="col-md-8 offset-md-2">
<h1 class="mb-4">Privacy Policy</h1>
<p>This is a placeholder for the Privacy Policy page. Content will be added here.</p>
<p>Last updated: <?php echo date('Y-m-d'); ?>.</p>
</div>
</div>
</div>
<?php
get_footer();
?>