Compare commits

...

1 Commits

Author SHA1 Message Date
Flatlogic Bot
d229f9849b Auto commit: 2025-10-24T06:14:17.639Z 2025-10-24 06:14:17 +00:00
3 changed files with 229 additions and 145 deletions

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

@ -0,0 +1,92 @@
body {
background-color: #FDFDFF;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #333333;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: Georgia, 'Times New Roman', Times, serif;
}
.navbar {
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.hero {
background: linear-gradient(135deg, #4A90E2, #50E3C2);
color: white;
padding: 6rem 1rem;
text-align: center;
}
.hero h1 {
font-size: 3.5rem;
font-weight: bold;
}
.hero p {
font-size: 1.25rem;
max-width: 600px;
margin: 1rem auto;
}
.btn-primary {
background-color: #4A90E2;
border-color: #4A90E2;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: bold;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: #357ABD;
border-color: #357ABD;
}
.btn-secondary {
background-color: #50E3C2;
border-color: #50E3C2;
color: #fff;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
transition: background-color 0.3s ease;
}
.btn-secondary:hover {
background-color: #40B59A;
border-color: #40B59A;
}
.section-title {
text-align: center;
margin-bottom: 3rem;
font-size: 2.5rem;
font-weight: bold;
}
.competition-card {
background-color: #FFFFFF;
border: none;
border-radius: 0.5rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
}
.competition-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card-body {
padding: 2rem;
}
.footer {
background-color: #333;
color: white;
padding: 2rem 0;
margin-top: 4rem;
}

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

@ -0,0 +1,13 @@
document.addEventListener('DOMContentLoaded', function () {
// Smooth scroll for anchor links
const viewCompetitionsBtn = document.querySelector('a[href="#competitions"]');
if (viewCompetitionsBtn) {
viewCompetitionsBtn.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector('#competitions').scrollIntoView({
behavior: 'smooth'
});
});
}
});

267
index.php
View File

@ -1,150 +1,129 @@
<?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>
<?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">
<title>Virtual Arena for College Fest</title>
<meta name="description" content="The ultimate platform for college fests. Participate in competitions, showcase your talent, and win big!">
<meta name="keywords" content="college fest, virtual arena, online competitions, student events, university festival, coding contest, design competition, music battle">
<meta property="og:title" content="Virtual Arena for College Fest">
<meta property="og:description" content="The ultimate platform for college fests. Participate in competitions, showcase your talent, and win big!">
<meta property="og:image" content="">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="">
<!-- Bootstrap 5 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">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
<!-- Feather Icons -->
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</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 bg-white sticky-top">
<div class="container">
<a class="navbar-brand h1 mb-0" href="#">Virtual Arena</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 active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#competitions">Competitions</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Login</a>
</li>
<li class="nav-item">
<a class="nav-link btn btn-primary text-white ms-2" href="#">Sign Up</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="hero">
<div class="container">
<h1>Welcome to the Virtual Arena</h1>
<p class="lead">The ultimate platform for college fests. Participate in competitions, showcase your talent, and win big!</p>
<a href="#competitions" class="btn btn-lg btn-light">View Competitions</a>
</div>
</header>
<!-- Main Content -->
<main class="container my-5">
<!-- Competitions Section -->
<section id="competitions" class="py-5">
<h2 class="section-title">Upcoming Competitions</h2>
<div class="row g-4">
<?php
$competitions = [
[
'title' => 'CodeStorm',
'description' => 'A 24-hour hackathon to build innovative solutions. Test your coding skills against the best.'
],
[
'title' => 'Design Masters',
'description' => 'A creative challenge for UI/UX designers. Craft beautiful and user-friendly interfaces.'
],
[
'title' => 'Pitch Perfect',
'description' => 'An entrepreneurship contest. Present your business idea to a panel of expert judges.'
],
[
'title' => 'Shutter Speed',
'description' => 'A photography competition. Capture stunning moments and tell a story through your lens.'
],
[
'title' => 'Melody Mania',
'description' => 'A solo singing competition. Showcase your vocal talent and mesmerize the audience.'
],
[
'title' => 'Debate League',
'description' => 'A battle of wits and words. Argue your stance on pressing contemporary issues.'
]
];
foreach ($competitions as $competition):
?>
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<div class="competition-card w-100">
<div class="card-body d-flex flex-column">
<h4 class="card-title"><?php echo htmlspecialchars($competition['title']); ?></h4>
<p class="card-text flex-grow-1"><?php echo htmlspecialchars($competition['description']); ?></p>
<a href="#" class="btn btn-secondary align-self-start">Learn More</a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="container text-center">
<p>&copy; <?php echo date("Y"); ?> Virtual Arena. All Rights Reserved.</p>
<p>Built with Flatlogic</p>
</div>
</footer>
<!-- Bootstrap 5 JS Bundle -->
<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>
<script>
feather.replace()
</script>
</body>
</html>