Skip to content

Commit 116e5a7

Browse files
committed
fix logos
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
1 parent be65b51 commit 116e5a7

12 files changed

Lines changed: 25 additions & 164 deletions

File tree

142 KB
Loading
141 KB
Loading

benchmarks-website/public/vortex_black_nobg.svg

Lines changed: 0 additions & 69 deletions
This file was deleted.

benchmarks-website/public/vortex_white_nobg.svg

Lines changed: 0 additions & 70 deletions
This file was deleted.

benchmarks-website/server/src/html.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ const CHART_JS: &[u8] = include_bytes!("../static/chart.umd.js");
7878
const CHART_ZOOM_JS: &[u8] = include_bytes!("../static/chartjs-plugin-zoom.umd.min.js");
7979
const CHART_INIT_JS: &[u8] = include_bytes!("../static/chart-init.js");
8080
const STYLE_CSS: &[u8] = include_bytes!("../static/style.css");
81-
const VORTEX_BLACK_SVG: &[u8] = include_bytes!("../../public/vortex_black_nobg.svg");
82-
const VORTEX_WHITE_SVG: &[u8] = include_bytes!("../../public/vortex_white_nobg.svg");
81+
const VORTEX_BLACK_PNG: &[u8] = include_bytes!("../../public/Vortex_Black_NoBG.png");
82+
const VORTEX_WHITE_PNG: &[u8] = include_bytes!("../../public/Vortex_White_NoBG.png");
8383
const STATIC_ASSET_VERSION: &str = "bench-v3-ui-16";
8484

8585
/// Commits to inline for the first group's pre-fetched chart payloads.
@@ -101,8 +101,8 @@ pub fn router() -> Router<AppState> {
101101
)
102102
.route("/static/chart-init.js", get(serve_chart_init_js))
103103
.route("/static/style.css", get(serve_style_css))
104-
.route("/vortex_black_nobg.svg", get(serve_vortex_black_svg))
105-
.route("/vortex_white_nobg.svg", get(serve_vortex_white_svg))
104+
.route("/Vortex_Black_NoBG.png", get(serve_vortex_black_png))
105+
.route("/Vortex_White_NoBG.png", get(serve_vortex_white_png))
106106
}
107107

108108
/// Query string for HTML routes. `?n=` overrides the commit window;
@@ -430,8 +430,8 @@ fn theme_bootstrap_script() -> Markup {
430430
}
431431

432432
fn site_header(universe: Option<&api::FilterUniverse>, filter: &FilterState) -> Markup {
433-
let black_logo = versioned_asset("/vortex_black_nobg.svg");
434-
let white_logo = versioned_asset("/vortex_white_nobg.svg");
433+
let black_logo = versioned_asset("/Vortex_Black_NoBG.png");
434+
let white_logo = versioned_asset("/Vortex_White_NoBG.png");
435435
let show_filters = universe
436436
.map(|u| !u.engines.is_empty() || !u.formats.is_empty())
437437
.unwrap_or(false);
@@ -995,12 +995,12 @@ async fn serve_style_css() -> impl IntoResponse {
995995
static_response(STYLE_CSS, "text/css; charset=utf-8")
996996
}
997997

998-
async fn serve_vortex_black_svg() -> impl IntoResponse {
999-
static_response(VORTEX_BLACK_SVG, "image/svg+xml; charset=utf-8")
998+
async fn serve_vortex_black_png() -> impl IntoResponse {
999+
static_response(VORTEX_BLACK_PNG, "image/png")
10001000
}
10011001

1002-
async fn serve_vortex_white_svg() -> impl IntoResponse {
1003-
static_response(VORTEX_WHITE_SVG, "image/svg+xml; charset=utf-8")
1002+
async fn serve_vortex_white_png() -> impl IntoResponse {
1003+
static_response(VORTEX_WHITE_PNG, "image/png")
10041004
}
10051005

10061006
fn static_response(bytes: &'static [u8], content_type: &'static str) -> Response {

benchmarks-website/server/static/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ a:hover { text-decoration: underline; }
192192
.site-logo {
193193
display: block;
194194
width: auto;
195-
height: 48px;
195+
height: 24px;
196196
}
197197

198198
.logo-dark { display: none; }
@@ -209,7 +209,7 @@ a:hover { text-decoration: underline; }
209209

210210
.site-title {
211211
display: none;
212-
margin: 0;
212+
margin: 0 0 0 1.5rem;
213213
color: var(--fg);
214214
font-size: 1.25rem;
215215
font-weight: 600;
@@ -911,7 +911,7 @@ main > .chart-card:not(.chart-grid .chart-card) .chart-wrap {
911911
padding: 0 0.5rem;
912912
}
913913
.site-logo {
914-
height: 32px;
914+
height: 16px;
915915
}
916916
.header-left {
917917
gap: 0.5rem;

0 commit comments

Comments
 (0)