Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Book Catalog - BookWorm Oasis</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="flex justify-between items-center mb-8"> | |
| <h1 class="text-3xl font-bold text-gray-800">Book Catalog</h1> | |
| <div class="flex gap-4"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search books..." class="pl-10 pr-4 py-2 border rounded-lg"> | |
| <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i> | |
| </div> | |
| <button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 flex items-center gap-2"> | |
| <i data-feather="plus"></i> Add Book | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Filters --> | |
| <div class="bg-white p-4 rounded-xl shadow-sm mb-8"> | |
| <div class="flex flex-wrap gap-4"> | |
| <select class="border rounded-lg px-3 py-2"> | |
| <option>All Categories</option> | |
| <option>Fiction</option> | |
| <option>Non-Fiction</option> | |
| <option>Science</option> | |
| <option>History</option> | |
| </select> | |
| <select class="border rounded-lg px-3 py-2"> | |
| <option>All Availability</option> | |
| <option>Available</option> | |
| <option>Checked Out</option> | |
| </select> | |
| <select class="border rounded-lg px-3 py-2"> | |
| <option>Sort by Title</option> | |
| <option>Sort by Author</option> | |
| <option>Sort by Date Added</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Book Grid --> | |
| <div class="grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"> | |
| <!-- Book Card 1 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="h-48 bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="book" class="text-indigo-600 w-12 h-12"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="font-bold text-lg text-gray-800">The Great Gatsby</h3> | |
| <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">Available</span> | |
| </div> | |
| <p class="text-gray-600 mb-3">F. Scott Fitzgerald</p> | |
| <div class="flex justify-between text-sm text-gray-500"> | |
| <span>ISBN: 9780743273565</span> | |
| <span>2022</span> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="edit-2" class="w-4 h-4"></i> Edit | |
| </button> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="bookmark" class="w-4 h-4"></i> Reserve | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Book Card 2 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="h-48 bg-purple-100 flex items-center justify-center"> | |
| <i data-feather="book" class="text-purple-600 w-12 h-12"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="font-bold text-lg text-gray-800">To Kill a Mockingbird</h3> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Checked Out</span> | |
| </div> | |
| <p class="text-gray-600 mb-3">Harper Lee</p> | |
| <div class="flex justify-between text-sm text-gray-500"> | |
| <span>ISBN: 9780446310789</span> | |
| <span>1960</span> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="edit-2" class="w-4 h-4"></i> Edit | |
| </button> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="bookmark" class="w-4 h-4"></i> Reserve | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Book Card 3 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="h-48 bg-blue-100 flex items-center justify-center"> | |
| <i data-feather="book" class="text-blue-600 w-12 h-12"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="font-bold text-lg text-gray-800">1984</h3> | |
| <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">Available</span> | |
| </div> | |
| <p class="text-gray-600 mb-3">George Orwell</p> | |
| <div class="flex justify-between text-sm text-gray-500"> | |
| <span>ISBN: 9780451524935</span> | |
| <span>1949</span> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="edit-2" class="w-4 h-4"></i> Edit | |
| </button> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="bookmark" class="w-4 h-4"></i> Reserve | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Book Card 4 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="h-48 bg-green-100 flex items-center justify-center"> | |
| <i data-feather="book" class="text-green-600 w-12 h-12"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="font-bold text-lg text-gray-800">The Hobbit</h3> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Reserved</span> | |
| </div> | |
| <p class="text-gray-600 mb-3">J.R.R. Tolkien</p> | |
| <div class="flex justify-between text-sm text-gray-500"> | |
| <span>ISBN: 9780345339683</span> | |
| <span>1937</span> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="edit-2" class="w-4 h-4"></i> Edit | |
| </button> | |
| <button class="text-indigo-600 hover:text-indigo-800 flex items-center gap-1"> | |
| <i data-feather="bookmark" class="w-4 h-4"></i> Reserve | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Pagination --> | |
| <div class="mt-8 flex justify-center"> | |
| <nav class="inline-flex rounded-md shadow"> | |
| <a href="#" class="px-3 py-2 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50"> | |
| Previous | |
| </a> | |
| <a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50"> | |
| 1 | |
| </a> | |
| <a href="#" class="px-3 py-2 border border-gray-300 bg-indigo-600 text-white"> | |
| 2 | |
| </a> | |
| <a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50"> | |
| 3 | |
| </a> | |
| <a href="#" class="px-3 py-2 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50"> | |
| Next | |
| </a> | |
| </nav> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script>feather.replace();</script> | |
| </body> | |
| </html> |