add sc-logo branding to hero card and favicon

This commit is contained in:
markmental 2026-02-11 16:44:59 -05:00
commit 000538b440
3 changed files with 19 additions and 0 deletions

View file

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/jpeg" href="sc-logo.jpg" />
<title>SoccerCloud Web</title>
<script>
(function () {
@ -229,6 +230,16 @@
font-weight: 700;
}
.hero-logo {
width: 80px;
height: auto;
display: block;
border-radius: 14px;
margin: 0 0 12px;
border: 1px solid var(--line);
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}
h1 {
font-family: "Sora", "Space Grotesk", sans-serif;
margin: 0;
@ -598,6 +609,7 @@
<main class="app">
<section class="hero">
<article class="hero-card">
<img class="hero-logo" src="sc-logo.jpg" alt="SoccerCloud logo" />
<p class="eyebrow">Rust Backend</p>
<h1>SoccerCloud Web Control Room</h1>
<p class="lead">A modern web frontend backed by the same Rust simulation engine used in CLI and TUI modes.</p>

BIN
sc-logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -269,6 +269,12 @@ async fn data_js() -> impl Responder {
.body(include_str!("../data.js"))
}
async fn sc_logo_jpg() -> impl Responder {
HttpResponse::Ok()
.insert_header((header::CONTENT_TYPE, "image/jpeg"))
.body(include_bytes!("../sc-logo.jpg").as_slice())
}
async fn api_teams() -> impl Responder {
let items: Vec<TeamDto> = TEAMS
.iter()
@ -497,6 +503,7 @@ pub fn run_web_server(base_seed: u64, speed: Speed, listen_open: bool) -> io::Re
.route("/", web::get().to(index_html))
.route("/index.html", web::get().to(index_html))
.route("/data.js", web::get().to(data_js))
.route("/sc-logo.jpg", web::get().to(sc_logo_jpg))
.service(
web::scope("/api")
.route("/teams", web::get().to(api_teams))