//! Web UI module for serving the interactive web interface

use axum::response::{Html, IntoResponse};

/// Serve the main HTML page
pub async fn index() -> Html<&'static str> {
    Html(include_str!("static/index.html"))
}

/// Serve the CSS styles
pub async fn styles() -> impl IntoResponse {
    (
        [("Content-Type", "text/css")],
        include_str!("static/styles.css"),
    )
}

/// Serve the JavaScript application
pub async fn app() -> impl IntoResponse {
    (
        [("Content-Type", "application/javascript")],
        include_str!("static/app.js"),
    )
}
