use maud::html; use page::page::{Page, PageMetadata}; use crate::pages::page_wrapper; pub fn notfound() -> Page { Page { meta: PageMetadata { title: "Betalupi: About".into(), author: None, description: None, image: Some("/assets/img/icon.png".to_owned()), backlinks: Some(false), }, generate_html: Box::new(move |page, _ctx| { Box::pin(async { let inner = html! { div style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh" { p style="font-weight:bold;font-size:50pt;margin:0;" { "404" } p style="font-size:13pt;margin:0;color:var(--grey);" { "(page not found)" } a style="font-size:12pt;margin:10pt;padding:5px;" href="/" {"<- Back to site"} } }; page_wrapper(&page.meta, inner, false).await }) }), ..Default::default() } }