34363-vm/index.php
Flatlogic Bot 6906a2fc17 Inicial
2025-09-24 19:49:16 +00:00

118 lines
5.9 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The People's Glossary - Definitions for Everyone</title>
<meta name="description" content="An open glossary where users can find and contribute definitions for various terms.">
<meta name="robots" content="index, follow">
<!-- Open Graph -->
<meta property="og:title" content="The People's Glossary">
<meta property="og:description" content="Definitions for everyone, by everyone.">
<meta property="og:type" content="website">
<meta property="og:url" content="http://<?php echo $_SERVER['HTTP_HOST']; ?>">
<meta property="og:image" content="https://picsum.photos/seed/glossaryhero/1200/630">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header class="bg-white shadow-sm">
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">The People's Glossary</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="#contact">Contact</a></li>
<li class="nav-item"><a class="nav-link" href="/privacy.php">Privacy</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<section class="hero">
<div class="container">
<h1>The People's Glossary</h1>
<p>Definitions for everyone, by everyone. Your open-source dictionary for modern terms.</p>
<form action="/" method="GET" class="row g-3 justify-content-center search-form mt-4">
<div class="col-md-6">
<input type="text" name="q" class="form-control form-control-lg" placeholder="Search for a term..." value="<?php echo htmlspecialchars($_GET['q'] ?? ''); ?>">
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary btn-lg">Search</button>
</div>
</form>
</div>
</section>
<div id="results" class="container my-5">
<?php
if (!empty($_GET['q'])) {
$query = htmlspecialchars($_GET['q']);
echo <<<HTML
<div class="card">
<div class="card-body">
<h2 class="card-title">Search Results for: "{$query}"</h2>
<p class="card-text">
<em>(This is a placeholder. The real definition for "{$query}" will be fetched from the database or generated by an AI in the next step.)</em>
</p>
</div>
</div>
HTML;
}
?>
</div>
<section id="about" class="section">
<div class="container">
<h2 class="section-title">About Us</h2>
<div class="row align-items-center">
<div class="col-md-6">
<img src="https://picsum.photos/seed/glossaryabout/800/600" alt="A person reading a book in a library." class="img-fluid">
</div>
<div class="col-md-6">
<h3>Knowledge for All</h3>
<p class="text-light-color">This project was born from the idea that knowledge should be free and accessible. We use a combination of community contributions and AI to create a comprehensive, living glossary. Our goal is to provide clear and concise definitions for a wide range of topics, from technology to philosophy.</p>
</div>
</div>
</div>
</section>
<section id="contact" class="section bg-white">
<div class="container">
<h2 class="section-title">Get In Touch</h2>
<div class="row align-items_center">
<div class="col-md-6">
<h3>Contact Us</h3>
<p class="text-light-color">Have a question, suggestion, or want to contribute? We'd love to hear from you. A full contact form will be available here soon. For now, feel free to browse and search for terms.</p>
</div>
<div class="col-md-6">
<img src="https://picsum.photos/seed/glossarycontact/800/600" alt="A vintage telephone on a wooden desk." class="img-fluid">
</div>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container text-center">
<p class="text-light-color mb-0">&copy; <?php echo date("Y"); ?> The People's Glossary. All Rights Reserved.</p>p>
<p><a href="/privacy.php">Privacy Policy</a></p>
</div>
</footer>
<!-- Bootstrap 5 JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>