35331-vm/index.php
Flatlogic Bot c7a0ec6c94 0.0000001
2025-10-29 15:05:49 +00:00

128 lines
7.2 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LiberMania - Trade books, earn credits, live the culture.</title>
<meta name="description" content="LiberMania is a platform for exchanging used books. Trade your books, earn credits, and join a community of readers.">
<meta name="keywords" content="book exchange, used books, trade books, reading community, book credits, LiberMania, Built with Flatlogic Generator">
<meta property="og:title" content="LiberMania">
<meta property="og:description" content="Trade books, earn credits, live the culture.">
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? 'https://images.pexels.com/photos/159711/books-bookstore-book-reading-159711.jpeg'); ?>">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? 'https://images.pexels.com/photos/159711/books-bookstore-book-reading-159711.jpeg'); ?>">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Google 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=Georgia&family=Inter:wght@400;700&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<?php
// Dummy data for books. In a real application, this would come from a database.
$books = [
['title' => 'The Midnight Library', 'author' => 'Matt Haig', 'credits' => 10, 'cover' => 'https://picsum.photos/seed/midnight/400/600'],
['title' => 'Project Hail Mary', 'author' => 'Andy Weir', 'credits' => 12, 'cover' => 'https://picsum.photos/seed/hailmary/400/600'],
['title' => 'Klara and the Sun', 'author' => 'Kazuo Ishiguro', 'credits' => 10, 'cover' => 'https://picsum.photos/seed/klara/400/600'],
['title' => 'The Four Winds', 'author' => 'Kristin Hannah', 'credits' => 8, 'cover' => 'https://picsum.photos/seed/fourwinds/400/600'],
['title' => 'Atomic Habits', 'author' => 'James Clear', 'credits' => 15, 'cover' => 'https://picsum.photos/seed/habits/400/600'],
['title' => 'Dune', 'author' => 'Frank Herbert', 'credits' => 10, 'cover' => 'https://picsum.photos/seed/dune/400/600'],
['title' => 'Circe', 'author' => 'Madeline Miller', 'credits' => 12, 'cover' => 'https://picsum.photos/seed/circe/400/600'],
['title' => 'Educated', 'author' => 'Tara Westover', 'credits' => 9, 'cover' => 'https://picsum.photos/seed/educated/400/600'],
];
?>
<!-- Header -->
<nav class="navbar navbar-expand-lg navbar-light sticky-top">
<div class="container">
<a class="navbar-brand fw-bold" style="color: var(--primary-color);" href="#">LiberMania</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 align-items-center">
<li class="nav-item">
<a class="nav-link" href="#browse">Browse Books</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">How It Works</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Sign In</a>
</li>
<li class="nav-item ms-lg-2">
<a class="btn btn-primary" href="#">Sign Up</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="hero">
<div class="container">
<h1 class="display-4">Trade books, earn credits, live the culture.</h1>
<p class="lead">Join a community of readers to exchange your favorite used books. It's simple, rewarding, and good for the planet.</p>
<a href="#" class="btn btn-secondary btn-lg">Get Started</a>
</div>
</header>
<!-- Main Content -->
<main class="container my-5" id="browse">
<!-- Search and Filter Section -->
<section class="mb-5 text-center">
<h2 class="mb-4">Find Your Next Read</h2>
<div class="row justify-content-center">
<div class="col-md-8 col-lg-6">
<div class="input-group input-group-lg">
<input type="text" id="bookSearchInput" class="form-control" placeholder="Search by title or author..." style="border-radius: 0.5rem 0 0 0.5rem;">
</div>
</div>
</div>
</section>
<!-- Book Listings -->
<section>
<div class="row g-4">
<?php foreach ($books as $book): ?>
<div class="col-lg-3 col-md-4 col-sm-6 book-card-wrapper" data-title="<?php echo htmlspecialchars($book['title']); ?>" data-author="<?php echo htmlspecialchars($book['author']); ?>">
<div class="card book-card">
<img src="<?php echo htmlspecialchars($book['cover']); ?>" class="card-img-top" alt="Cover of <?php echo htmlspecialchars($book['title']); ?>">
<div class="card-body">
<h5 class="card-title"><?php echo htmlspecialchars($book['title']); ?></h5>
<p class="card-text">by <?php echo htmlspecialchars($book['author']); ?></p>
<p class="credits text-end"><?php echo htmlspecialchars($book['credits']); ?> Credits</p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date('Y'); ?> LiberMania. All rights reserved.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="#" class="text-decoration-none text-secondary">About</a></li>
<li class="list-inline-item">&middot;</li>
<li class="list-inline-item"><a href="#" class="text-decoration-none text-secondary">Contact</a></li>
<li class="list-inline-item">&middot;</li>
<li class="list-inline-item"><a href="#" class="text-decoration-none text-secondary">Terms of Service</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap 5 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>
</body>
</html>