diff --git a/pkg6depotd/src/http/handlers/ui.rs b/pkg6depotd/src/http/handlers/ui.rs index 7200bed..e36d0ff 100644 --- a/pkg6depotd/src/http/handlers/ui.rs +++ b/pkg6depotd/src/http/handlers/ui.rs @@ -529,21 +529,8 @@ pub async fn ui_p5i_generate( // Embedded static assets // =========================================================================== -static CSS_CONTENT: &str = include_str!("../../../static/css/style.css"); static HTMX_JS_CONTENT: &str = include_str!("../../../static/js/htmx.min.js"); -/// GET /ui/static/css/style.css -pub async fn static_css() -> Response { - ( - [ - (header::CONTENT_TYPE, "text/css; charset=utf-8"), - (header::CACHE_CONTROL, "public, max-age=3600"), - ], - CSS_CONTENT, - ) - .into_response() -} - /// GET /ui/static/js/htmx.min.js pub async fn static_htmx_js() -> Response { ( diff --git a/pkg6depotd/src/http/routes.rs b/pkg6depotd/src/http/routes.rs index d34921d..e933b1c 100644 --- a/pkg6depotd/src/http/routes.rs +++ b/pkg6depotd/src/http/routes.rs @@ -74,7 +74,6 @@ pub fn app_router(state: Arc) -> Router { .route("/ui/package/{publisher}/{*fmri}", get(ui::ui_package_detail)) .route("/ui/p5i", get(ui::ui_p5i_generate)) // Embedded static assets - .route("/ui/static/css/style.css", get(ui::static_css)) .route("/ui/static/js/htmx.min.js", get(ui::static_htmx_js)) .layer(TraceLayer::new_for_http()) .with_state(state) diff --git a/pkg6depotd/templates/base.html b/pkg6depotd/templates/base.html index 30bc191..bb340fe 100644 --- a/pkg6depotd/templates/base.html +++ b/pkg6depotd/templates/base.html @@ -7,7 +7,109 @@ - +