Consolidate examples into unified production config with static CSS

- New sqlite_serve.conf: all features on single port 8080
- New zenburn.css: hex color palette, all styles in one cacheable file
- New Zenburn templates: header/footer/card partials
- New start.sh: unified launcher with all endpoint docs
- Removed 3 separate example configs and start scripts

15 files changed, 980 insertions(+), 258 deletions(-)
This commit is contained in:
Edward Langley
2025-11-15 16:42:05 -08:00
parent f3e3b8c77b
commit a4a838ad3b
15 changed files with 980 additions and 258 deletions

View File

@ -0,0 +1,15 @@
<article class="book-card">
<div class="book-header">
<h3 class="book-title">{{title}}</h3>
<div class="book-rating">⭐ {{rating}}</div>
</div>
<p class="book-author">{{author}}</p>
<p class="book-description">{{description}}</p>
<div class="book-meta">
<span class="genre-badge">{{genre}}</span>
<span class="year-badge">{{year}}</span>
{{#if isbn}}<span class="isbn">{{isbn}}</span>{{/if}}
</div>
<a href="/book?id={{id}}" class="detail-link">View Details →</a>
</article>

View File

@ -0,0 +1,9 @@
</main>
<footer>
<p>sqlite-serve v0.1.0</p>
<p>Rust + NGINX + SQLite + Handlebars</p>
<p>45 tests | Type-safe | Read-only</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sqlite-serve | Book Catalog</title>
<link rel="stylesheet" href="/static/zenburn.css">
</head>
<body>
<header>
<div class="header-content">
<h1>📚 sqlite-serve</h1>
<p>Dynamic content from SQLite via NGINX</p>
</div>
</header>
<nav>
<div class="nav-content">
<a href="/books">All Books</a>
<a href="/genre?genre=Programming">Programming</a>
<a href="/genre?genre=Databases">Databases</a>
<a href="/genre?genre=Computer%20Science">Computer Science</a>
<a href="/top?min=4.7">Top Rated</a>
<a href="/era?from=2015&to=2024">Recent (2015-2024)</a>
<form class="search-form" action="/search" method="get">
<input type="text" name="q" placeholder="Search titles..." />
<button type="submit">Search</button>
</form>
</div>
</nav>
<main>