Added web ui with templates

This commit is contained in:
Manuel Forcén Muñoz 2024-02-19 23:51:18 +01:00
parent d2cb5b3031
commit 90b02eef79
24 changed files with 1403 additions and 78 deletions

14
build.rs Normal file
View file

@ -0,0 +1,14 @@
use std::env::current_dir;
use std::process::Command;
fn main() {
Command::new("npx")
.args(&["tailwindcss", "-i", "base.css", "-o"])
.arg(&format!(
"{}/static/styles.css",
current_dir().unwrap().into_os_string().to_str().unwrap()
))
.status()
.unwrap();
println!("cargo:rerun-if-changed=templates/*")
}