This commit is contained in:
Flatlogic Bot 2025-11-27 08:44:48 +00:00
parent 83a7ae9f14
commit 4359789531
3 changed files with 210 additions and 145 deletions

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

@ -0,0 +1,74 @@
:root {
--primary-color: #4a90e2;
--secondary-color: #50e3c2;
--background-color: #f9f9f9;
--surface-color: #ffffff;
--text-color: #333333;
}
body {
font-family: 'Vazirmatn', sans-serif;
direction: rtl;
background-color: var(--background-color);
color: var(--text-color);
}
.hero {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
padding: 100px 0;
text-align: center;
}
.hero h1 {
font-size: 3rem;
font-weight: 700;
}
.hero p {
font-size: 1.25rem;
margin-bottom: 30px;
}
.feature-card {
background-color: var(--surface-color);
border-radius: 8px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
.feature-card:hover {
transform: translateY(-5px);
}
.feature-card i {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 20px;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
border-radius: 8px;
padding: 10px 20px;
}
.btn-primary:hover {
background-color: #357ABD;
border-color: #357ABD;
}
.footer {
background-color: var(--surface-color);
padding: 20px 0;
text-align: center;
border-top: 1px solid #eee;
}
#loginModal .modal-content {
border-radius: 8px;
}

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

@ -0,0 +1,13 @@
document.addEventListener('DOMContentLoaded', function() {
// Smooth scroll for hero button
const heroBtn = document.querySelector('.hero .btn');
if (heroBtn) {
heroBtn.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector('#features').scrollIntoView({
behavior: 'smooth'
});
});
}
});

254
index.php
View File

@ -1,150 +1,128 @@
<?php <!DOCTYPE html>
declare(strict_types=1); <html lang="fa" dir="rtl">
@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');
?>
<!doctype html>
<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>سیستم مدیریت مدرسه</title>
<?php <meta name="description" content="<?php echo htmlspecialchars($_SERVER['PROJECT_DESCRIPTION'] ?? 'سیستم جامع مدیریت مدرسه'); ?>">
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? ''; <!-- Bootstrap RTL CSS -->
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.rtl.min.css" rel="stylesheet">
?>
<?php if ($projectDescription): ?> <!-- Google Fonts -->
<!-- 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.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=Vazirmatn:wght@400;700&display=swap" rel="stylesheet">
<style>
:root { <!-- Feather Icons -->
--bg-color-start: #6a11cb; <script src="https://unpkg.com/feather-icons"></script>
--bg-color-end: #2575fc;
--text-color: #ffffff; <!-- Custom CSS -->
--card-bg-color: rgba(255, 255, 255, 0.01); <link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
--card-border-color: rgba(255, 255, 255, 0.1);
} <meta property="og:title" content="School Management System">
body { <meta property="og:description" content="<?php echo htmlspecialchars($_SERVER['PROJECT_DESCRIPTION'] ?? 'A comprehensive school management system.'); ?>">
margin: 0; <meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
font-family: 'Inter', sans-serif; <meta name="twitter:card" content="summary_large_image">
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>
<header class="p-3 mb-3 border-bottom sticky-top bg-light">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-dark text-decoration-none">
<span class="fs-4">مدیریت مدرسه</span>
</a>
<ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
<li><a href="#" class="nav-link px-2 link-secondary">خانه</a></li>
</ul>
<div class="text-end">
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#loginModal">
ورود
</button>
</div>
</div>
</div>
</header>
<main> <main>
<div class="card"> <section class="hero">
<h1>Analyzing your requirements and generating your website…</h1> <div class="container">
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes"> <h1>سیستم مدیریت یکپارچه مدرسه</h1>
<span class="sr-only">Loading…</span> <p>راه حلی مدرن برای مدیریت تمام امور مدرسه شما</p>
<a href="#features" class="btn btn-light btn-lg">بیشتر بدانید</a>
</div> </div>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p> </section>
<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> <section id="features" class="py-5">
<div class="container">
<h2 class="text-center mb-5">امکانات سیستم</h2>
<div class="row text-center">
<div class="col-md-4">
<div class="feature-card">
<i data-feather="users"></i>
<h3>مدیریت دانش‌آموزان</h3>
<p>ثبت‌نام، اطلاعات تحصیلی و حضور و غیاب.</p>
</div> </div>
</div>
<div class="col-md-4">
<div class="feature-card">
<i data-feather="briefcase"></i>
<h3>مدیریت معلمان</h3>
<p>اطلاعات پرسنلی، برنامه‌ریزی درسی و ارتباط با والدین.</p>
</div>
</div>
<div class="col-md-4">
<div class="feature-card">
<i data-feather="book-open"></i>
<h3>مدیریت دوره‌ها</h3>
<p>ایجاد و مدیریت کلاس‌ها و واحدهای درسی.</p>
</div>
</div>
</div>
</div>
</section>
</main> </main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC) <footer class="footer mt-auto py-3 bg-light">
<div class="container">
<span class="text-muted">© 2025 سیستم مدیریت مدرسه</span>
</div>
</footer> </footer>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">ورود به سیستم</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="username" class="form-label">نام کاربری</label>
<input type="text" class="form-control" id="username">
</div>
<div class="mb-3">
<label for="password" class="form-label">رمز عبور</label>
<input type="password" class="form-control" id="password">
</div>
<button type="submit" class="btn btn-primary w-100">ورود</button>
</form>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
<script>
feather.replace()
</script>
</body> </body>
</html> </html>