diff --git a/hayabusa_report.css b/hayabusa_report.css index e6b930c9..8133f2b0 100644 --- a/hayabusa_report.css +++ b/hayabusa_report.css @@ -1,4 +1,11 @@ h2 { background-color: blue; color: white; +} + +img#logo { + width: 25%; + display: block; + margin-left: auto; + margin-right: auto; } \ No newline at end of file diff --git a/src/options/htmlreport.rs b/src/options/htmlreport.rs index 372a7b36..03a2972f 100644 --- a/src/options/htmlreport.rs +++ b/src/options/htmlreport.rs @@ -93,6 +93,7 @@ pub fn create_html_file(input_html: String, path_str: String) { } let mut html_writer = BufWriter::new(File::create(path).unwrap()); + let html_data = format!( "{}", html! { @@ -104,8 +105,10 @@ pub fn create_html_file(input_html: String, path_str: String) { link(rel="icon", type="image/png", href="./favicon.png"); } body { - img(id="logo", src = "./logo.png"); - : Raw(input_html.clone().as_str()); + section { + img(id="logo", src = "./logo.png"); + : Raw(input_html.as_str()); + } } }