mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 22:54:24 +01:00
Use official logo in Goose web (#3012)
Co-authored-by: Sam Bradbury <Sam Bradbury>
This commit is contained in:
@@ -199,6 +199,16 @@ async fn serve_static(axum::extract::Path(path): axum::extract::Path<String>) ->
|
||||
include_str!("../../static/script.js"),
|
||||
)
|
||||
.into_response(),
|
||||
"img/logo_dark.png" => (
|
||||
[("content-type", "image/png")],
|
||||
include_bytes!("../../../../documentation/static/img/logo_dark.png").to_vec(),
|
||||
)
|
||||
.into_response(),
|
||||
"img/logo_light.png" => (
|
||||
[("content-type", "image/png")],
|
||||
include_bytes!("../../../../documentation/static/img/logo_light.png").to_vec(),
|
||||
)
|
||||
.into_response(),
|
||||
_ => (axum::http::StatusCode::NOT_FOUND, "Not found").into_response(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,10 @@
|
||||
--tool-bg: #f8f9fa;
|
||||
--code-bg: #f5f5f5;
|
||||
}
|
||||
|
||||
header h1::before {
|
||||
background-image: url('/static/img/logo_light.png');
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -94,8 +98,14 @@ header h1 {
|
||||
}
|
||||
|
||||
header h1::before {
|
||||
content: "🪿";
|
||||
font-size: 1.5rem;
|
||||
content: "";
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background-image: url('/static/img/logo_dark.png');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.status {
|
||||
|
||||
Reference in New Issue
Block a user