fedimint_server_ui/
layout.rs

1use maud::{Markup, html};
2
3pub fn common_head(title: &str) -> Markup {
4    html! {
5        meta charset="utf-8";
6        meta name="viewport" content="width=device-width, initial-scale=1.0";
7        title { "Guardian Dashboard"}
8        link rel="stylesheet" href="/assets/bootstrap.min.css" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous";
9        link rel="stylesheet" type="text/css" href="/assets/style.css";
10        link rel="icon" type="image/png" href="/assets/logo.png";
11
12        // Note: this needs to be included in the header, so that web-page does not
13        // get in a state where htmx is not yet loaded. `deref` helps with blocking the load.
14        // Learned the hard way. --dpc
15        script defer src="/assets/htmx.org-2.0.4.min.js" {}
16
17        title { (title) }
18    }
19}