| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NobleLibrary - My Collection</title> | |
| <style> | |
| :root { | |
| --bg: #f8fafc; | |
| --text: #0f172a; | |
| --card-bg: #ffffff; | |
| --header-bg: rgba(255, 255, 255, 0.8); | |
| --accent: #6366f1; | |
| --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); | |
| --border: #e2e8f0; | |
| --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| body.dark-mode { | |
| --bg: #0f172a; | |
| --text: #f1f5f9; | |
| --card-bg: #1e293b; | |
| --header-bg: rgba(15, 23, 42, 0.8); | |
| --border: #334155; | |
| --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, system-ui, sans-serif; | |
| background-color: var(--bg); | |
| color: var(--text); | |
| margin: 0; | |
| padding: 0; | |
| transition: all 0.4s ease; | |
| } | |
| header { | |
| position: sticky; | |
| top: 0; | |
| backdrop-filter: blur(12px); | |
| background: var(--header-bg); | |
| border-bottom: 1px solid var(--border); | |
| padding: 15px 20px; | |
| z-index: 100; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| header h1 { | |
| font-size: 1.4rem; | |
| margin: 0; | |
| font-weight: 800; | |
| background: var(--accent-gradient); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .theme-btn { | |
| background: var(--card-bg); | |
| border: 1px solid var(--border); | |
| color: var(--text); | |
| padding: 8px 14px; | |
| border-radius: 12px; | |
| cursor: pointer; | |
| font-weight: 600; | |
| box-shadow: var(--shadow); | |
| transition: transform 0.2s; | |
| } | |
| .theme-btn:active { transform: scale(0.95); } | |
| .container { max-width: 900px; margin: 0 auto; padding: 20px; } | |
| .search-container { margin-bottom: 30px; } | |
| .search-bar { | |
| width: 100%; | |
| padding: 14px 20px; | |
| border: 1px solid var(--border); | |
| border-radius: 16px; | |
| background: var(--card-bg); | |
| color: var(--text); | |
| font-size: 1rem; | |
| box-shadow: var(--shadow); | |
| box-sizing: border-box; | |
| outline: none; | |
| transition: border-color 0.3s; | |
| } | |
| .search-bar:focus { border-color: var(--accent); } | |
| .library-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | |
| gap: 20px; | |
| } | |
| .book-card { | |
| background: var(--card-bg); | |
| border: 1px solid var(--border); | |
| border-radius: 20px; | |
| padding: 20px; | |
| text-decoration: none; | |
| color: inherit; | |
| position: relative; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: space-between; | |
| aspect-ratio: 1 / 1.4; | |
| box-shadow: var(--shadow); | |
| transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); | |
| } | |
| .book-card::before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; left: 0; width: 6px; height: 100%; | |
| background: var(--accent-gradient); | |
| opacity: 0.8; | |
| } | |
| .book-card:hover { | |
| transform: translateY(-8px) scale(1.02); | |
| } | |
| .book-title { | |
| font-weight: 700; | |
| font-size: 1.1rem; | |
| line-height: 1.3; | |
| margin-top: 10px; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 4; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .book-meta { | |
| font-size: 0.7rem; | |
| text-transform: uppercase; | |
| letter-spacing: 1.2px; | |
| opacity: 0.5; | |
| font-weight: 700; | |
| } | |
| .open-btn { | |
| margin-top: auto; | |
| background: var(--accent-gradient); | |
| color: white; | |
| text-align: center; | |
| padding: 10px; | |
| border-radius: 12px; | |
| font-size: 0.85rem; | |
| font-weight: 700; | |
| box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>NobleLibrary</h1> | |
| <button id="theme-toggle" class="theme-btn">🌙 Dark Mode</button> | |
| </header> | |
| <div class="container"> | |
| <div class="search-container"> | |
| <input type="text" id="search" class="search-bar" placeholder="Search your novels..."> | |
| </div> | |
| <div class="library-grid" id="grid"> | |
| <a href="Return to the Fishing Village His Ex-wife to Marry a Woman Who Brings Bad Luck to Her Husband_WebBook.html" class="book-card"> | |
| <div class="book-meta">AudioNovel</div> | |
| <div class="book-title">Return to the Fishing Village His Ex-wife to Marry a Woman Who Brings Bad Luck to Her Husband</div> | |
| <div class="open-btn">Listen Now</div> | |
| </a></div> | |
| </div> | |
| <script> | |
| const btn = document.getElementById('theme-toggle'); | |
| const body = document.body; | |
| const updateTheme = (isDark) => { | |
| if(isDark) { | |
| body.classList.add('dark-mode'); | |
| btn.innerText = "☀️ Light"; | |
| } else { | |
| body.classList.remove('dark-mode'); | |
| btn.innerText = "🌙 Dark"; | |
| } | |
| }; | |
| if(localStorage.getItem('lib-theme') === 'dark') updateTheme(true); | |
| btn.onclick = () => { | |
| const isDark = !body.classList.contains('dark-mode'); | |
| updateTheme(isDark); | |
| localStorage.setItem('lib-theme', isDark ? 'dark' : 'light'); | |
| }; | |
| document.getElementById('search').oninput = (e) => { | |
| const term = e.target.value.toLowerCase(); | |
| document.querySelectorAll('.book-card').forEach(card => { | |
| card.style.display = card.innerText.toLowerCase().includes(term) ? 'flex' : 'none'; | |
| }); | |
| }; | |
| </script> | |
| </body> | |
| </html> |
Xet Storage Details
- Size:
- 6.32 kB
- Xet hash:
- ac9a33acb88a217b7c2382bd56dd94ad75b4196e80cc0c884b60fb7d65c13a31
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.