Compare commits
No commits in common. "fdb16dcb380fc656818c830e540c8121b9b8bad7" and "0e0cbba624eb58c033e64ff0a23dbeb1dfa8b2d0" have entirely different histories.
fdb16dcb38
...
0e0cbba624
@ -40,15 +40,11 @@ impl IntoResponse for AppError {
|
|||||||
(maud::DOCTYPE)
|
(maud::DOCTYPE)
|
||||||
head {
|
head {
|
||||||
meta charset="utf8";
|
meta charset="utf8";
|
||||||
link rel="preconnect" href="https://fonts.googleapis.com";
|
|
||||||
link rel="preconnect" href="https://fonts.gstatic.com" crossorigin;
|
|
||||||
link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Kode+Mono&display=swap";
|
|
||||||
title { (title) }
|
title { (title) }
|
||||||
}
|
}
|
||||||
body style=(crate::BODY_STYLE) {
|
body style=(crate::BODY_STYLE) {
|
||||||
p style=(format!("{} font-size: 1.3em;", crate::IMG_STYLE)) {
|
p style=(format!("{} font-size: 2em;", crate::IMG_STYLE)) {
|
||||||
"Something went wrong: "
|
"Something went wrong"
|
||||||
br;
|
|
||||||
(self.internal.to_string());
|
(self.internal.to_string());
|
||||||
}
|
}
|
||||||
a style=(format!("{} right: 0;", crate::ABOUT_STYLE)) href="https://gaze.systems" target="_blank" {
|
a style=(format!("{} right: 0;", crate::ABOUT_STYLE)) href="https://gaze.systems" target="_blank" {
|
||||||
|
@ -64,7 +64,7 @@ async fn show_art(state: State<AppState>) -> AppResult<axum::response::Response>
|
|||||||
}
|
}
|
||||||
|
|
||||||
const BODY_STYLE: &str =
|
const BODY_STYLE: &str =
|
||||||
"margin: 0px; background: #0e0e0e; height: 100vh; width: 100vw; display: flex; font-family: \"Kode Mono\", monospace; font-weight: 400; font-style: normal; font-optical-sizing: auto;";
|
"margin: 0px; background: #0e0e0e; height: 100vh; width: 100vw; display: flex;";
|
||||||
const IMG_STYLE: &str = "display: block; margin: auto; max-height: 100vh; max-width: 100vw;";
|
const IMG_STYLE: &str = "display: block; margin: auto; max-height: 100vh; max-width: 100vw;";
|
||||||
const ABOUT_STYLE: &str = "position: absolute; bottom: 0; font-size: 0.75em; color: #ffffff; background-color: #0e0e0eaa;";
|
const ABOUT_STYLE: &str = "position: absolute; bottom: 0; font-size: 0.75em; color: #ffffff; background-color: #0e0e0eaa;";
|
||||||
|
|
||||||
@ -81,9 +81,6 @@ fn render_page(art: &Art, image_link: &str) -> Html<String> {
|
|||||||
meta property="og:title" content=(embed_title);
|
meta property="og:title" content=(embed_title);
|
||||||
meta property="og:description" content=(embed_content);
|
meta property="og:description" content=(embed_content);
|
||||||
meta name="theme-color" content=(embed_color);
|
meta name="theme-color" content=(embed_color);
|
||||||
link rel="preconnect" href="https://fonts.googleapis.com";
|
|
||||||
link rel="preconnect" href="https://fonts.gstatic.com" crossorigin;
|
|
||||||
link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Kode+Mono&display=swap";
|
|
||||||
title { (title) }
|
title { (title) }
|
||||||
}
|
}
|
||||||
body style=(BODY_STYLE) {
|
body style=(BODY_STYLE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user