From ab6d012ccaed6b5d940a900c45fed380222162a1 Mon Sep 17 00:00:00 2001 From: skeptrune Date: Mon, 2 Dec 2024 23:43:44 -0800 Subject: [PATCH] feature: add tailwind to public page + roughjs try me preview and arrow --- pdf2md/server/src/routes/jinja_templates.rs | 2 +- pdf2md/server/src/templates/demo-ui.html | 2 +- pdf2md/server/static/output.css | 270 ++++---- server/Dockerfile.server | 1 + server/src/lib.rs | 4 +- server/src/public/navbar.html | 135 ++-- server/src/public/page.html | 161 +++-- server/src/public/search-component-code.html | 2 +- server/src/public/tabs.html | 22 +- server/static/in.css | 3 + server/static/output.css | 659 +++++++++++++++++++ server/tailwind.config.js | 29 + 12 files changed, 1028 insertions(+), 262 deletions(-) create mode 100644 server/static/in.css create mode 100644 server/static/output.css create mode 100644 server/tailwind.config.js diff --git a/pdf2md/server/src/routes/jinja_templates.rs b/pdf2md/server/src/routes/jinja_templates.rs index 17cfc4e86f..0baad2041e 100644 --- a/pdf2md/server/src/routes/jinja_templates.rs +++ b/pdf2md/server/src/routes/jinja_templates.rs @@ -3,7 +3,7 @@ use crate::{ get_env, Templates, }; use actix_web::{get, HttpResponse}; -use minijinja::context; +use minijinja::{context, path_loader, Environment}; #[utoipa::path( get, diff --git a/pdf2md/server/src/templates/demo-ui.html b/pdf2md/server/src/templates/demo-ui.html index 2b187c6e6c..4b241572e5 100644 --- a/pdf2md/server/src/templates/demo-ui.html +++ b/pdf2md/server/src/templates/demo-ui.html @@ -32,7 +32,7 @@ id="upload-form-container" class="flex justify-center mt-[10vh] sm:mt-[20vh] items-center px-4" > -
+