Download index.html from aismail/libr3: direct link, hf CLI and curl.
- Browser
- Download file 23.9 kB
-
https://huggingface.co/spaces/aismail/libr3/resolve/main/index.html
- Command line
-
hf download hf://spaces/aismail/libr3/index.html
-
curl -L -o index.html https://huggingface.co/spaces/aismail/libr3/resolve/main/index.html
23.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NovelNest | Modern Digital Library</title> | |
| <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=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@700;800&display=swap" rel="stylesheet"> | |
| <style> | |
| /* CSS Variables */ | |
| :root { | |
| --primary: #4361ee; | |
| --primary-light: #4895ef; | |
| --secondary: #3f37c9; | |
| --dark: #1b263b; | |
| --light: #f8f9fa; | |
| --gray: #e9ecef; | |
| --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1); | |
| --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| /* Base Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| color: var(--dark); | |
| background-color: var(--light); | |
| line-height: 1.6; | |
| overflow-x: hidden; | |
| } | |
| h1, h2, h3 { | |
| font-family: 'Montserrat', sans-serif; | |
| line-height: 1.2; | |
| } | |
| img { | |
| max-width: 100%; | |
| display: block; | |
| } | |
| a { | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| ul { | |
| list-style: none; | |
| } | |
| .container { | |
| width: 90%; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .btn { | |
| display: inline-block; | |
| padding: 12px 28px; | |
| border-radius: 50px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| border: none; | |
| font-size: 1rem; | |
| } | |
| .btn-primary { | |
| background-color: var(--primary); | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background-color: var(--secondary); | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| /* Header Styles */ | |
| header { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| padding: 1.5rem 0; | |
| z-index: 1000; | |
| transition: var(--transition); | |
| } | |
| header.scrolled { | |
| background-color: white; | |
| box-shadow: var(--shadow-sm); | |
| padding: 1rem 0; | |
| } | |
| .header-container { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| font-size: 1.8rem; | |
| font-weight: 800; | |
| color: var(--primary); | |
| } | |
| .nav-links { | |
| display: flex; | |
| gap: 2rem; | |
| } | |
| .nav-links a { | |
| font-weight: 500; | |
| position: relative; | |
| transition: var(--transition); | |
| } | |
| .nav-links a::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -5px; | |
| left: 0; | |
| width: 0; | |
| height: 2px; | |
| background-color: var(--primary); | |
| transition: var(--transition); | |
| } | |
| .nav-links a:hover::after { | |
| width: 100%; | |
| } | |
| .nav-links a.active { | |
| color: var(--primary); | |
| } | |
| .mobile-menu-btn { | |
| display: none; | |
| background: none; | |
| border: none; | |
| font-size: 1.5rem; | |
| color: var(--dark); | |
| cursor: pointer; | |
| } | |
| /* Hero Section */ | |
| .hero { | |
| height: 100vh; | |
| background: linear-gradient(135deg, rgba(67, 97, 238, 0.9), rgba(63, 55, 201, 0.9)), | |
| url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover; | |
| display: flex; | |
| align-items: center; | |
| color: white; | |
| padding-top: 80px; | |
| } | |
| .hero-content { | |
| max-width: 600px; | |
| opacity: 0; | |
| transform: translateY(20px); | |
| animation: fadeInUp 0.8s forwards 0.3s; | |
| } | |
| .hero h1 { | |
| font-size: 3.5rem; | |
| margin-bottom: 1.5rem; | |
| line-height: 1.1; | |
| } | |
| .hero p { | |
| font-size: 1.2rem; | |
| margin-bottom: 2rem; | |
| opacity: 0.9; | |
| } | |
| /* Featured Books Section */ | |
| .section { | |
| padding: 6rem 0; | |
| } | |
| .section-title { | |
| text-align: center; | |
| margin-bottom: 3rem; | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| .section-title h2 { | |
| font-size: 2.5rem; | |
| margin-bottom: 1rem; | |
| color: var(--dark); | |
| } | |
| .section-title p { | |
| color: #6c757d; | |
| max-width: 600px; | |
| margin: 0 auto; | |
| } | |
| .books-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .book-card { | |
| background: white; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| box-shadow: var(--shadow-sm); | |
| transition: var(--transition); | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| .book-card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .book-img { | |
| height: 300px; | |
| background-color: #eee; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #999; | |
| font-size: 0.9rem; | |
| } | |
| .book-info { | |
| padding: 1.5rem; | |
| } | |
| .book-info h3 { | |
| font-size: 1.2rem; | |
| margin-bottom: 0.5rem; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .book-info p { | |
| color: #6c757d; | |
| font-size: 0.9rem; | |
| } | |
| /* Categories Section */ | |
| .categories { | |
| background-color: var(--gray); | |
| } | |
| .categories-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); | |
| gap: 1.5rem; | |
| } | |
| .category-card { | |
| background: white; | |
| padding: 1.5rem; | |
| border-radius: 8px; | |
| text-align: center; | |
| transition: var(--transition); | |
| cursor: pointer; | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| .category-card:hover { | |
| background-color: var(--primary); | |
| color: white; | |
| transform: translateY(-5px); | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .category-icon { | |
| font-size: 2rem; | |
| margin-bottom: 1rem; | |
| display: inline-block; | |
| } | |
| /* Search Section */ | |
| .search-section { | |
| background-color: white; | |
| } | |
| .search-container { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .search-box { | |
| position: relative; | |
| margin-bottom: 3rem; | |
| } | |
| .search-box input { | |
| width: 100%; | |
| padding: 1rem 1.5rem; | |
| border-radius: 50px; | |
| border: 1px solid #ddd; | |
| font-size: 1rem; | |
| transition: var(--transition); | |
| } | |
| .search-box input:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2); | |
| } | |
| .search-box button { | |
| position: absolute; | |
| right: 5px; | |
| top: 5px; | |
| background-color: var(--primary); | |
| color: white; | |
| border: none; | |
| border-radius: 50px; | |
| padding: 0.7rem 1.5rem; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| } | |
| .search-box button:hover { | |
| background-color: var(--secondary); | |
| } | |
| /* Footer */ | |
| footer { | |
| background-color: var(--dark); | |
| color: white; | |
| padding: 4rem 0 2rem; | |
| } | |
| .footer-content { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| margin-bottom: 3rem; | |
| } | |
| .footer-column h3 { | |
| font-size: 1.2rem; | |
| margin-bottom: 1.5rem; | |
| color: var(--gray); | |
| } | |
| .footer-column ul li { | |
| margin-bottom: 0.8rem; | |
| } | |
| .footer-column ul li a { | |
| opacity: 0.8; | |
| transition: var(--transition); | |
| } | |
| .footer-column ul li a:hover { | |
| opacity: 1; | |
| color: var(--primary-light); | |
| } | |
| .copyright { | |
| text-align: center; | |
| padding-top: 2rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| opacity: 0.6; | |
| font-size: 0.9rem; | |
| } | |
| /* Animations */ | |
| @keyframes fadeInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .animate { | |
| animation: fadeInUp 0.8s forwards; | |
| } | |
| .delay-1 { | |
| animation-delay: 0.2s; | |
| } | |
| .delay-2 { | |
| animation-delay: 0.4s; | |
| } | |
| .delay-3 { | |
| animation-delay: 0.6s; | |
| } | |
| /* Mobile Styles */ | |
| @media (max-width: 768px) { | |
| .nav-links { | |
| position: fixed; | |
| top: 80px; | |
| left: 0; | |
| width: 100%; | |
| background-color: white; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 2rem 0; | |
| gap: 1.5rem; | |
| box-shadow: var(--shadow-md); | |
| transform: translateY(-150%); | |
| transition: var(--transition); | |
| } | |
| .nav-links.active { | |
| transform: translateY(0); | |
| } | |
| .mobile-menu-btn { | |
| display: block; | |
| } | |
| .hero h1 { | |
| font-size: 2.5rem; | |
| } | |
| .hero p { | |
| font-size: 1rem; | |
| } | |
| .books-grid { | |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |
| } | |
| .section { | |
| padding: 4rem 0; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .hero h1 { | |
| font-size: 2rem; | |
| } | |
| .btn { | |
| padding: 10px 20px; | |
| } | |
| .book-card { | |
| min-width: 0; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Header --> | |
| <header id="header"> | |
| <div class="container header-container"> | |
| <a href="#" class="logo">NovelNest</a> | |
| <nav> | |
| <ul class="nav-links"> | |
| <li><a href="#" class="active">Home</a></li> | |
| <li><a href="#catalog">Catalog</a></li> | |
| <li><a href="#categories">Categories</a></li> | |
| <li><a href="#">About</a></li> | |
| <li><a href="#">Contact</a></li> | |
| </ul> | |
| </nav> | |
| <button class="mobile-menu-btn" id="mobileMenuBtn">β°</button> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="hero"> | |
| <div class="container"> | |
| <div class="hero-content"> | |
| <h1>Discover Worlds Within Words</h1> | |
| <p>Explore our vast collection of books from classic literature to modern bestsellers. Your next great read is just a click away.</p> | |
| <a href="#catalog" class="btn btn-primary">Explore Collection</a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Featured Books Section --> | |
| <section class="section" id="featured"> | |
| <div class="container"> | |
| <div class="section-title animate"> | |
| <h2>Featured Books</h2> | |
| <p>Check out our curated selection of must-read titles</p> | |
| </div> | |
| <div class="books-grid"> | |
| <div class="book-card animate delay-1"> | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>The Silent Patient</h3> | |
| <p>Alex Michaelides</p> | |
| </div> | |
| </div> | |
| <div class="book-card animate delay-1"> | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>Where the Crawdads Sing</h3> | |
| <p>Delia Owens</p> | |
| </div> | |
| </div> | |
| <div class="book-card animate delay-2"> | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>The Midnight Library</h3> | |
| <p>Matt Haig</p> | |
| </div> | |
| </div> | |
| <div class="book-card animate delay-2"> | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>Educated</h3> | |
| <p>Tara Westover</p> | |
| </div> | |
| </div> | |
| <div class="book-card animate delay-3"> | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>Project Hail Mary</h3> | |
| <p>Andy Weir</p> | |
| </div> | |
| </div> | |
| <div class="book-card animate delay-3"> | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>The Vanishing Half</h3> | |
| <p>Brit Bennett</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Categories Section --> | |
| <section class="section categories" id="categories"> | |
| <div class="container"> | |
| <div class="section-title animate"> | |
| <h2>Browse by Category</h2> | |
| <p>Find books that match your interests</p> | |
| </div> | |
| <div class="categories-grid"> | |
| <div class="category-card animate delay-1"> | |
| <div class="category-icon">π</div> | |
| <h3>Fiction</h3> | |
| </div> | |
| <div class="category-card animate delay-1"> | |
| <div class="category-icon">π¬</div> | |
| <h3>Science</h3> | |
| </div> | |
| <div class="category-card animate delay-2"> | |
| <div class="category-icon">ποΈ</div> | |
| <h3>History</h3> | |
| </div> | |
| <div class="category-card animate delay-2"> | |
| <div class="category-icon">π‘</div> | |
| <h3>Self-Help</h3> | |
| </div> | |
| <div class="category-card animate delay-3"> | |
| <div class="category-icon">π΅οΈ</div> | |
| <h3>Mystery</h3> | |
| </div> | |
| <div class="category-card animate delay-3"> | |
| <div class="category-icon">π</div> | |
| <h3>Sci-Fi</h3> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Catalog/Search Section --> | |
| <section class="section search-section" id="catalog"> | |
| <div class="container"> | |
| <div class="section-title animate"> | |
| <h2>Book Catalog</h2> | |
| <p>Search our entire collection of books</p> | |
| </div> | |
| <div class="search-container"> | |
| <div class="search-box animate"> | |
| <input type="text" placeholder="Search by title, author, or keyword..."> | |
| <button class="btn btn-primary">Search</button> | |
| </div> | |
| <div class="books-grid" id="bookCatalog"> | |
| <!-- Books will be loaded here via JavaScript --> | |
| </div> | |
| <button id="loadMore" class="btn btn-primary" style="display: block; margin: 2rem auto;">Load More Books</button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer> | |
| <div class="container"> | |
| <div class="footer-content"> | |
| <div class="footer-column"> | |
| <h3>NovelNest</h3> | |
| <p>Your gateway to endless reading adventures. Discover, explore, and immerse yourself in the world of books.</p> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Quick Links</h3> | |
| <ul> | |
| <li><a href="#">Home</a></li> | |
| <li><a href="#catalog">Catalog</a></li> | |
| <li><a href="#categories">Categories</a></li> | |
| <li><a href="#">New Releases</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Help</h3> | |
| <ul> | |
| <li><a href="#">FAQ</a></li> | |
| <li><a href="#">Contact Us</a></li> | |
| <li><a href="#">Privacy Policy</a></li> | |
| <li><a href="#">Terms of Service</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Connect</h3> | |
| <ul> | |
| <li><a href="#">Twitter</a></li> | |
| <li><a href="#">Facebook</a></li> | |
| <li><a href="#">Instagram</a></li> | |
| <li><a href="#">Goodreads</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © 2023 NovelNest. All rights reserved. | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Mobile Menu Toggle | |
| const mobileMenuBtn = document.getElementById('mobileMenuBtn'); | |
| const navLinks = document.querySelector('.nav-links'); | |
| mobileMenuBtn.addEventListener('click', () => { | |
| navLinks.classList.toggle('active'); | |
| }); | |
| // Header Scroll Effect | |
| const header = document.getElementById('header'); | |
| window.addEventListener('scroll', () => { | |
| if (window.scrollY > 100) { | |
| header.classList.add('scrolled'); | |
| } else { | |
| header.classList.remove('scrolled'); | |
| } | |
| }); | |
| // Scroll Reveal Animation | |
| const animateElements = document.querySelectorAll('.animate'); | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.style.opacity = 1; | |
| entry.target.style.transform = 'translateY(0)'; | |
| } | |
| }); | |
| }, { | |
| threshold: 0.1 | |
| }); | |
| animateElements.forEach(el => { | |
| observer.observe(el); | |
| }); | |
| // Simulate loading more books | |
| const bookCatalog = document.getElementById('bookCatalog'); | |
| const loadMoreBtn = document.getElementById('loadMore'); | |
| const sampleBooks = [ | |
| { title: "The Great Gatsby", author: "F. Scott Fitzgerald" }, | |
| { title: "To Kill a Mockingbird", author: "Harper Lee" }, | |
| { title: "1984", author: "George Orwell" }, | |
| { title: "Pride and Prejudice", author: "Jane Austen" }, | |
| { title: "The Catcher in the Rye", author: "J.D. Salinger" }, | |
| { title: "The Hobbit", author: "J.R.R. Tolkien" }, | |
| { title: "Fahrenheit 451", author: "Ray Bradbury" }, | |
| { title: "Moby-Dick", author: "Herman Melville" }, | |
| { title: "War and Peace", author: "Leo Tolstoy" }, | |
| { title: "The Odyssey", author: "Homer" }, | |
| { title: "Crime and Punishment", author: "Fyodor Dostoevsky" }, | |
| { title: "The Brothers Karamazov", author: "Fyodor Dostoevsky" } | |
| ]; | |
| function loadBooks(books) { | |
| books.forEach((book, index) => { | |
| const bookCard = document.createElement('div'); | |
| bookCard.className = 'book-card animate'; | |
| bookCard.style.animationDelay = `${index * 0.1}s`; | |
| bookCard.innerHTML = ` | |
| <div class="book-img">Book Cover</div> | |
| <div class="book-info"> | |
| <h3>${book.title}</h3> | |
| <p>${book.author}</p> | |
| </div> | |
| `; | |
| bookCatalog.appendChild(bookCard); | |
| // Observe the new element for animation | |
| setTimeout(() => { | |
| observer.observe(bookCard); | |
| }, 100); | |
| }); | |
| } | |
| // Initial load | |
| loadBooks(sampleBooks.slice(0, 6)); | |
| // Load more books on button click | |
| loadMoreBtn.addEventListener('click', () => { | |
| const loadedCount = bookCatalog.children.length; | |
| const remainingBooks = sampleBooks.slice(loadedCount, loadedCount + 6); | |
| if (remainingBooks.length > 0) { | |
| loadBooks(remainingBooks); | |
| } else { | |
| loadMoreBtn.textContent = 'No More Books'; | |
| loadMoreBtn.disabled = true; | |
| } | |
| }); | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const targetId = this.getAttribute('href'); | |
| if (targetId === '#') return; | |
| const targetElement = document.querySelector(targetId); | |
| if (targetElement) { | |
| window.scrollTo({ | |
| top: targetElement.offsetTop - 80, | |
| behavior: 'smooth' | |
| }); | |
| // Close mobile menu if open | |
| if (navLinks.classList.contains('active')) { | |
| navLinks.classList.remove('active'); | |
| } | |
| } | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 𧬠<a href="https://enzostvs-deepsite.hf.space?remix=aismail/libr3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |