Spaces:
Running
Running
| <html lang="en" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>BookWorm Haven - Your Digital Library</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#4F46E5', | |
| secondary: '#10B981' | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <!-- Hero Section --> | |
| <section class="hero bg-gradient-to-r from-primary to-secondary rounded-xl p-8 md:p-12 text-white mb-12"> | |
| <div class="max-w-2xl"> | |
| <h1 class="text-4xl md:text-5xl font-bold mb-4">Discover Your Next Favorite Book</h1> | |
| <p class="text-xl mb-8">Download thousands of free eBooks in various formats. Read anytime, anywhere.</p> | |
| <div class="relative max-w-md"> | |
| <input type="text" placeholder="Search for books..." class="w-full py-3 px-4 rounded-lg text-gray-800 focus:outline-none focus:ring-2 focus:ring-white"> | |
| <button class="absolute right-2 top-2 text-primary p-2 rounded-full bg-white"> | |
| <i data-feather="search"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Featured Books --> | |
| <section class="mb-16"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Featured Books</h2> | |
| <a href="#" class="text-primary font-medium flex items-center"> | |
| View all <i data-feather="chevron-right" class="ml-1"></i> | |
| </a> | |
| </div> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6" id="featured-books"> | |
| <!-- Books will be loaded here via JavaScript --> | |
| </div> | |
| </section> | |
| <!-- Categories --> | |
| <section class="mb-16"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Browse Categories</h2> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-4"> | |
| <a href="#" class="category-card bg-white rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-primary bg-opacity-10 flex items-center justify-center mr-4"> | |
| <i data-feather="book" class="text-primary"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Fiction</h3> | |
| <p class="text-sm text-gray-500">1,240 books</p> | |
| </div> | |
| </a> | |
| <a href="#" class="category-card bg-white rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-secondary bg-opacity-10 flex items-center justify-center mr-4"> | |
| <i data-feather="globe" class="text-secondary"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Science</h3> | |
| <p class="text-sm text-gray-500">890 books</p> | |
| </div> | |
| </a> | |
| <a href="#" class="category-card bg-white rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-yellow-500 bg-opacity-10 flex items-center justify-center mr-4"> | |
| <i data-feather="clock" class="text-yellow-500"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">History</h3> | |
| <p class="text-sm text-gray-500">720 books</p> | |
| </div> | |
| </a> | |
| <a href="#" class="category-card bg-white rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-pink-500 bg-opacity-10 flex items-center justify-center mr-4"> | |
| <i data-feather="heart" class="text-pink-500"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Romance</h3> | |
| <p class="text-sm text-gray-500">1,540 books</p> | |
| </div> | |
| </a> | |
| </div> | |
| </section> | |
| <!-- Popular Authors --> | |
| <section> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Popular Authors</h2> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-6"> | |
| <div class="bg-white rounded-lg p-4 shadow-sm text-center"> | |
| <div class="w-20 h-20 rounded-full bg-gray-200 mx-auto mb-3 overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/1" alt="Author" class="w-full h-full object-cover"> | |
| </div> | |
| <h3 class="font-medium">Jane Austen</h3> | |
| <p class="text-sm text-gray-500">45 books</p> | |
| </div> | |
| <div class="bg-white rounded-lg p-4 shadow-sm text-center"> | |
| <div class="w-20 h-20 rounded-full bg-gray-200 mx-auto mb-3 overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/2" alt="Author" class="w-full h-full object-cover"> | |
| </div> | |
| <h3 class="font-medium">Mark Twain</h3> | |
| <p class="text-sm text-gray-500">32 books</p> | |
| </div> | |
| <div class="bg-white rounded-lg p-4 shadow-sm text-center"> | |
| <div class="w-20 h-20 rounded-full bg-gray-200 mx-auto mb-3 overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/3" alt="Author" class="w-full h-full object-cover"> | |
| </div> | |
| <h3 class="font-medium">Agatha Christie</h3> | |
| <p class="text-sm text-gray-500">78 books</p> | |
| </div> | |
| <div class="bg-white rounded-lg p-4 shadow-sm text-center"> | |
| <div class="w-20 h-20 rounded-full bg-gray-200 mx-auto mb-3 overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/4" alt="Author" class="w-full h-full object-cover"> | |
| </div> | |
| <h3 class="font-medium">Stephen King</h3> | |
| <p class="text-sm text-gray-500">65 books</p> | |
| </div> | |
| </div> | |
| </section> | |
| </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> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |