First dev release of v2.0.0

This commit is contained in:
2025-11-26 15:10:53 -05:00
commit 638b2d9fc4
18 changed files with 7093 additions and 0 deletions

114
views/book.html Normal file
View File

@@ -0,0 +1,114 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="/">
<title>StreamFlow Book</title>
<link rel="stylesheet" href="../public/book.css">
</head>
<body>
<!-- Back Button -->
<a href="/books" class="back-btn">
<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M15 19l-7-7 7-7"/></svg>
Back to Books
</a>
<!-- Hero Section -->
<div class="hero-wrapper">
<div class="hero-background">
<img id="hero-bg" src="" alt="">
</div>
<div class="hero-overlay"></div>
</div>
<div class="content-container">
<!-- Left Sidebar -->
<aside class="sidebar">
<div class="poster-card">
<img id="poster" src="" alt="">
</div>
<div class="info-grid">
<div class="info-item">
<h4>Format</h4>
<span id="format">--</span>
</div>
<div class="info-item">
<h4>Chapters</h4>
<span id="chapters">--</span>
</div>
<div class="info-item">
<h4>Status</h4>
<span id="status">--</span>
</div>
<div class="info-item">
<h4>Published</h4>
<!-- Updated ID to avoid CSS conflict -->
<span id="published-date">--</span>
</div>
</div>
</aside>
<!-- Right Content -->
<main class="main-content">
<div class="book-header">
<h1 class="book-title" id="title">Loading...</h1>
<div class="meta-row">
<div class="pill score" id="score">--% Score</div>
<div class="pill" id="genres">Action</div>
</div>
<div class="action-row">
<button class="btn-primary" id="read-start-btn">
Start Reading
</button>
<button class="btn-secondary">+ Add to Library</button>
</div>
</div>
<div class="chapters-section">
<div class="section-title">
<h2>Chapters</h2>
<div class="chapter-controls">
<!-- New Provider Filter Dropdown -->
<select id="provider-filter" class="filter-select" style="display: none; margin-left: 15px;">
<option value="all">All Providers</option>
</select>
</div>
</div>
<div class="chapters-table-wrapper">
<table class="chapters-table">
<thead>
<tr>
<th>#</th>
<th>Title</th>
<!-- Date Column Removed -->
<th>Provider</th>
<th>Action</th>
</tr>
</thead>
<tbody id="chapters-body">
<!-- Populated via JS -->
</tbody>
</table>
</div>
<!-- Pagination -->
<div class="pagination-controls" id="pagination" style="display:none;">
<button class="page-btn" id="prev-page">Previous</button>
<span class="page-info" id="page-info">Page 1</span>
<button class="page-btn" id="next-page">Next</button>
</div>
</div>
</main>
</div>
<script src="../public/book.js"></script>
</body>
</html>