Compare commits

..

1 Commits

Author SHA1 Message Date
Flatlogic Bot
5c8312be31 aaa 2025-09-29 19:55:13 +00:00
3 changed files with 300 additions and 126 deletions

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

@ -0,0 +1,107 @@
/* University Assistant - Custom Styles */
:root {
--primary: #4A90E2;
--secondary: #F5A623;
--background: #F8F9FA;
--surface: #FFFFFF;
--text-color: #333333;
--gradient: linear-gradient(135deg, #4A90E2 0%, #50E3C2 100%);
--border-radius: 0.5rem;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
body {
font-family: 'Poppins', sans-serif;
background-color: var(--background);
color: var(--text-color);
line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}
.navbar {
background-color: var(--surface);
box-shadow: var(--shadow);
}
.navbar-brand {
font-weight: 700;
color: var(--primary);
}
.nav-link {
font-weight: 500;
}
.hero {
color: white;
padding: 12rem 0;
text-align: center;
background-image: var(--gradient);
position: relative;
}
.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.2;
z-index: 1;
}
.hero .container {
position: relative;
z-index: 2;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
}
.section {
padding: 6rem 0;
}
.section-title {
text-align: center;
margin-bottom: 4rem;
font-size: 2.5rem;
font-weight: 700;
}
.card {
border: none;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.card-img-top {
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
}
.facility-icon {
width: 64px;
height: 64px;
color: var(--primary);
margin-bottom: 1rem;
}
.footer {
background-color: #343A40;
color: white;
padding: 3rem 0;
}

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

@ -0,0 +1,40 @@
// University Assistant - Main JS
document.addEventListener('DOMContentLoaded', function () {
// Smooth scrolling for anchor links
document.querySelectorAll('a.nav-link[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'
});
}
});
});
// Activate feather icons
feather.replace();
// Simple fade-in animation for sections on scroll
const sections = document.querySelectorAll('.section');
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = 1;
entry.target.style.transform = 'translateY(0)';
}
});
}, {
threshold: 0.1
});
sections.forEach(section => {
section.style.opacity = 0;
section.style.transform = 'translateY(20px)';
section.style.transition = 'opacity 0.6s ease-out, transform 0.6s ease-out';
observer.observe(section);
});
});

279
index.php
View File

@ -1,131 +1,158 @@
<?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');
?>
<!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>
<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">
<title>University Assistant - Welcome</title>
<meta name="description" content="Your university journey starts here. Explore specializations, facilities, and more.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://your-domain.com/">
<meta property="og:title" content="University Assistant - Welcome">
<meta property="og:description" content="Your university journey starts here. Explore specializations, facilities, and more.">
<meta property="og:image" content="https://picsum.photos/seed/university-hero/1200/630">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://your-domain.com/">
<meta property="twitter:title" content="University Assistant - Welcome">
<meta property="twitter:description" content="Your university journey starts here. Explore specializations, facilities, and more.">
<meta property="twitter:image" content="https://picsum.photos/seed/university-hero/1200/630">
<!-- 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=Poppins:wght@400;500;600;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">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css">
</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 -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top">
<div class="container">
<a class="navbar-brand" href="#">
<i data-feather="book-open" class="me-2"></i>
University Assistant
</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="#home">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#specializations">Specializations</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header id="home" class="hero">
<img src="https://picsum.photos/seed/university-hero/1600/900" class="hero-bg" alt="A modern university campus building under a clear blue sky.">
<div class="container">
<h1 class="display-3">Your University Journey Starts Here</h1>
<p class="lead">Discover a world of knowledge, opportunity, and growth.</p>
</div>
</header>
<!-- Main Content -->
<main>
<!-- About Section -->
<section id="about" class="section">
<div class="container">
<h2 class="section-title">About Our University</h2>
<div class="row align-items-center">
<div class="col-lg-6 mb-4 mb-lg-0">
<img src="https://picsum.photos/seed/university-students/800/600" class="img-fluid rounded shadow" alt="A diverse group of students collaborating on a project.">
</div>
<div class="col-lg-6">
<h3>Fostering Excellence Since 1980</h3>
<p>We are a leading institution dedicated to providing quality education and fostering innovation. Our mission is to empower students with the knowledge and skills to excel in their chosen fields and make a positive impact on the world.</p>
<p>With a diverse student body, world-class faculty, and state-of-the-art facilities, we offer a vibrant and supportive learning environment.</p>
</div>
</div>
</div>
</section>
<!-- Specializations Section -->
<section id="specializations" class="section bg-light">
<div class="container">
<h2 class="section-title">Our Specializations</h2>
<div class="row">
<?php
$specializations = [
['name' => 'Computer Science', 'icon' => 'cpu'],
['name' => 'Medicine', 'icon' => 'activity'],
['name' => 'Business & Management', 'icon' => 'briefcase'],
['name' => 'Arts & Humanities', 'icon' => 'pen-tool'],
['name' => 'Engineering', 'icon' => 'settings'],
['name' => 'Environmental Science', 'icon' => 'wind'],
];
foreach ($specializations as $spec):
?>
<div class="col-md-6 col-lg-4 mb-4">
<div class="card h-100 text-center">
<div class="card-body">
<i data-feather="<?= htmlspecialchars($spec['icon']) ?>" class="facility-icon"></i>
<h5 class="card-title"><?= htmlspecialchars($spec['name']) ?></h5>
<p class="card-text">Explore the frontiers of knowledge and innovation in <?= strtolower(htmlspecialchars($spec['name'])) ?>.</p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<!-- Facilities Section -->
<section id="facilities" class="section">
<div class="container">
<h2 class="section-title">World-Class Facilities</h2>
<div class="row align-items-center">
<div class="col-lg-6">
<h3>The Central Library</h3>
<p>Our library is more than just a collection of books. It's a hub for research, collaboration, and quiet study, with access to millions of digital and print resources.</p>
<h3>Advanced Research Labs</h3>
<p>Equipped with the latest technology to support groundbreaking research across all disciplines.</p>
<h3>Sports & Recreation</h3>
<p>Stay active and healthy with our comprehensive sports complex, including a swimming pool, gym, and outdoor fields.</p>
</div>
<div class="col-lg-6">
<img src="https://picsum.photos/seed/university-library/800/600" class="img-fluid rounded shadow" alt="A vast and modern university library with rows of books.">
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="section bg-light">
<div class="container text-center">
<h2 class="section-title">Get In Touch</h2>
<p class="lead mb-4">Have questions? We're here to help. A full contact form will be available soon.</p>
<a href="mailto:info@university.com" class="btn btn-primary btn-lg">Email Us</a>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="container text-center">
<p>&copy; <?php echo date("Y"); ?> University Assistant. All Rights Reserved.</p>
</div>
</footer>
<!-- Bootstrap JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Feather Icons -->
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js"></script>
</body>
</html>
</html>