add sc-logo branding to hero card and favicon
This commit is contained in:
parent
1762fa250f
commit
000538b440
3 changed files with 19 additions and 0 deletions
12
index.html
12
index.html
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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>
|
<title>SoccerCloud Web</title>
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
|
|
@ -229,6 +230,16 @@
|
||||||
font-weight: 700;
|
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 {
|
h1 {
|
||||||
font-family: "Sora", "Space Grotesk", sans-serif;
|
font-family: "Sora", "Space Grotesk", sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -598,6 +609,7 @@
|
||||||
<main class="app">
|
<main class="app">
|
||||||
<section class="hero">
|
<section class="hero">
|
||||||
<article class="hero-card">
|
<article class="hero-card">
|
||||||
|
<img class="hero-logo" src="sc-logo.jpg" alt="SoccerCloud logo" />
|
||||||
<p class="eyebrow">Rust Backend</p>
|
<p class="eyebrow">Rust Backend</p>
|
||||||
<h1>SoccerCloud Web Control Room</h1>
|
<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>
|
<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
BIN
sc-logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
|
|
@ -269,6 +269,12 @@ async fn data_js() -> impl Responder {
|
||||||
.body(include_str!("../data.js"))
|
.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 {
|
async fn api_teams() -> impl Responder {
|
||||||
let items: Vec<TeamDto> = TEAMS
|
let items: Vec<TeamDto> = TEAMS
|
||||||
.iter()
|
.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("/", web::get().to(index_html))
|
||||||
.route("/index.html", web::get().to(index_html))
|
.route("/index.html", web::get().to(index_html))
|
||||||
.route("/data.js", web::get().to(data_js))
|
.route("/data.js", web::get().to(data_js))
|
||||||
|
.route("/sc-logo.jpg", web::get().to(sc_logo_jpg))
|
||||||
.service(
|
.service(
|
||||||
web::scope("/api")
|
web::scope("/api")
|
||||||
.route("/teams", web::get().to(api_teams))
|
.route("/teams", web::get().to(api_teams))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue