From afd82dc38510c6a47cfa227f40f1dae76e1a526c Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Mon, 16 Feb 2026 01:42:50 -0500 Subject: refactor: move to src/ --- src/templates/index.html | 96 +++++++++++++++++++++++++++++++ src/templates/partials/error.html | 4 ++ src/templates/partials/result.html | 5 ++ src/templates/partials/upload_error.html | 4 ++ src/templates/partials/upload_result.html | 12 ++++ 5 files changed, 121 insertions(+) create mode 100644 src/templates/index.html create mode 100644 src/templates/partials/error.html create mode 100644 src/templates/partials/result.html create mode 100644 src/templates/partials/upload_error.html create mode 100644 src/templates/partials/upload_result.html (limited to 'src/templates') diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..42f5f5c --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,96 @@ + + + + + + likha-pdf + + + + + +
+

likha-pdf

+

simple markdown export with pandoc + lualatex.

+ +
+

image upload

+
+ + + + uploading… +
+
+
+ +
+ + + +
+

pdf options

+ + + + + + + +
+ main font + + +
+
+ + + converting… +
+ +
+
+ + + + diff --git a/src/templates/partials/error.html b/src/templates/partials/error.html new file mode 100644 index 0000000..83825f1 --- /dev/null +++ b/src/templates/partials/error.html @@ -0,0 +1,4 @@ +
+

Conversion failed

+
{{ message }}
+
diff --git a/src/templates/partials/result.html b/src/templates/partials/result.html new file mode 100644 index 0000000..427382d --- /dev/null +++ b/src/templates/partials/result.html @@ -0,0 +1,5 @@ +
+

pdf ready

+

{{ filename }}

+ download pdf +
diff --git a/src/templates/partials/upload_error.html b/src/templates/partials/upload_error.html new file mode 100644 index 0000000..d219783 --- /dev/null +++ b/src/templates/partials/upload_error.html @@ -0,0 +1,4 @@ +
+

upload failed

+
{{ message }}
+
diff --git a/src/templates/partials/upload_result.html b/src/templates/partials/upload_result.html new file mode 100644 index 0000000..116c74c --- /dev/null +++ b/src/templates/partials/upload_result.html @@ -0,0 +1,12 @@ +
+

image uploaded

+

{{ filename }}

+

{{ markdown_snippet }}

+ +
-- cgit v1.2.3