From fa558ccfb3efc7f76684683933ce6187068fc51d Mon Sep 17 00:00:00 2001 From: sirdave73 Date: Fri, 4 Sep 2026 07:22:43 -0400 Subject: [PATCH] UI redesign v2: modern ant/mono design + app version (v2.0.0) --- app.py | 7 +- templates/index.html | 534 ++++++++++++++++++++++++++++++------------- 2 files changed, 378 insertions(+), 163 deletions(-) diff --git a/app.py b/app.py index 12045a8..315b508 100644 --- a/app.py +++ b/app.py @@ -48,6 +48,9 @@ for _d in (UPLOAD_DIR, OUTPUT_DIR, WORK_DIR): MAX_UPLOAD_MB = 400 +# Semantic version exposed by /health so the UI can show "vX.Y.Z" in the footer. +APP_VERSION = "2.0.0" + # req 3 (health): supported formats advertised to clients. Additive key — the # existing /health contract asserts only status + max_upload_mb. SUPPORTED_FORMATS = ["epub", "html", "htm", "md", "markdown", "txt", "log", @@ -623,10 +626,10 @@ def health(): if not _cjk_fonts_present(): problems.append("CJK fonts missing (fc-list found none)") body = {"status": "ok", "max_upload_mb": MAX_UPLOAD_MB, - "supported_formats": SUPPORTED_FORMATS} + "supported_formats": SUPPORTED_FORMATS, "version": APP_VERSION} if problems: body = {"status": "degraded", "max_upload_mb": MAX_UPLOAD_MB, - "supported_formats": SUPPORTED_FORMATS, "problems": problems} + "supported_formats": SUPPORTED_FORMATS, "version": APP_VERSION, "problems": problems} return jsonify(body), 503 return jsonify(body), 200 diff --git a/templates/index.html b/templates/index.html index 66aa5b5..d58b3dc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,172 +1,380 @@ - - -Bindery — EPUB to PDF + + +Bindery — EPUB to PDF -
-
❦Bindery
-

A local typesetter. Drop a document, take a properly set PDF. Nothing leaves your machine.

-
-
- -
-
- -
-

Drop a file to set it in type

-

or browse your files · up to 400 MB · .epub .docx .odt .rtf .tex .org .adoc .rst .html .md .txt .csv .json .xml .svg .png .jpg .webp …

-
- - -
- - -
- +
+

Turn any document into a typeset PDF

+

Drop an EPUB, Markdown, DOCX, or 20+ other formats — get a clean, self-hosted PDF back in seconds. Your files never leave this machine.

+ + + Local & private · nothing leaves your machine + +
+ +
+
+ +

Drop a file to set it in type

+

or browse your files · up to 400 MB · .epub .docx .odt .md .html .txt .csv .svg .png .pdf

+ + +
+ + +
+ + +