New logo (#64)

This commit is contained in:
Cecile Tonglet 2020-10-04 21:28:01 +02:00 committed by GitHub
parent aa0f4777e2
commit dcd2e7a421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 5 deletions

BIN
assets/favicon.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

59
assets/logo.svg vendored Normal file
View file

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg14"
version="1.1"
width="104.49973"
height="104.49973">
<metadata
id="metadata20">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs18" />
<path
id="path10"
d="m 52.249865,4.9798651 c -26.06,0 -47.2699999,21.2199999 -47.2699999,47.2699999 0,26.05 21.2199999,47.27 47.2699999,47.27 26.05,0 47.27,-21.22 47.27,-47.27 0,-26.05 -21.22,-47.2699999 -47.27,-47.2699999 z m -0.07,4.2 c 1.680761,0.04353 3.02056,1.4232549 3.02,3.1099999 0,4.146665 -6.22,4.146665 -6.22,0 -7.34e-4,-1.753376 1.447359,-3.1607409 3.2,-3.1099999 z m -37.08,28.1399999 c 1.682359,0.04871 3.020705,1.426936 3.02,3.11 0,4.146665 -6.22,4.146665 -6.22,0 -7.34e-4,-1.753376 1.447359,-3.160741 3.2,-3.11 z m 74.15,0.14 c 1.68236,0.04871 3.0207,1.426936 3.02,3.11 0,4.146665 -6.22,4.146665 -6.22,0 -7.3e-4,-1.753376 1.44736,-3.160741 3.2,-3.11 z m -9.72,41.27 -6.57,-1.41 c -1.53,-0.33 -3.04,0.65 -3.37,2.18 l -1.56,7.28 c -10.151161,4.59844 -21.802519,4.54367 -31.91,-0.15 l -1.56,-7.28 c -0.33,-1.53 -1.83,-2.51 -3.36,-2.18 l -6.43,1.38 c -8.398642,-9.04912 -11.752096,-19.063124 -10.57,-30.76 l 6.7,-2.98 c 1.43,-0.64 2.08,-2.31 1.44,-3.74 l -2.4207,-7.724535 c 1.298519,-3.7317 1.2753,-3.707102 3.8207,-6.965465 5.614011,-6.271594 13.13907,-10.5174 21.41,-12.08 l 4.79,5.02 c 1.08,1.13 2.87,1.18 4,0.09 l 5.36,-5.11 c 11.050222,2.069744 20.631432,8.893613 26.2,18.66 l -3.67,8.28 c -0.63,1.43 0.02,3.11 1.44,3.75 l 7.06,3.13 c 1.4734,12.035465 -3.01903,22.750172 -10.8,30.61 z m -50.38,2.38 c 1.682359,0.04871 3.020705,1.42694 3.02,3.11 0,4.14666 -6.22,4.14666 -6.22,0 -7.34e-4,-1.75338 1.447359,-3.160741 3.2,-3.11 z m 46.05,0.14 c 1.682359,0.04871 3.020705,1.42694 3.02,3.11 0,4.14666 -6.22,4.14666 -6.22,0 -7.34e-4,-1.75338 1.447359,-3.160741 3.2,-3.11 z" />
<path
id="path12"
stroke-width="3"
stroke-linejoin="round"
stroke-linecap="round"
stroke="#000000"
fill-rule="evenodd"
d="m 96.879865,52.249865 a 44.63,44.63 0 0 1 -44.63,44.63 44.63,44.63 0 0 1 -44.6299999,-44.63 44.63,44.63 0 0 1 44.6299999,-44.6299999 44.63,44.63 0 0 1 44.63,44.6299999 z m -0.84,-4.31 6.960005,4.31 -6.960005,4.31 5.980005,5.59 -7.660005,2.87 4.78,6.65 -8.09,1.32 3.4,7.46 -8.19,-0.29 1.88,7.98 -7.98,-1.88 0.29,8.19 -7.46,-3.4 -1.32,8.09 -6.65,-4.78 -2.87,7.660005 -5.59,-5.980005 -4.31,6.960005 -4.31,-6.960005 -5.59,5.980005 -2.87,-7.660005 -6.65,4.78 -1.32,-8.09 -7.46,3.4 0.29,-8.19 -7.98,1.88 1.88,-7.98 -8.19,0.29 3.4,-7.46 -8.0899999,-1.32 4.7799999,-6.65 -7.6599999,-2.87 5.98,-5.59 -6.96,-4.31 6.96,-4.31 -5.98,-5.59 7.6599999,-2.87 -4.7799999,-6.65 8.0899999,-1.32 -3.4,-7.46 8.19,0.29 -1.88,-7.98 7.98,1.88 -0.29,-8.19 7.46,3.4 1.32,-8.0899999 6.65,4.7799999 2.87,-7.6599999 5.59,5.98 4.31,-6.96 4.31,6.96 5.59,-5.98 2.87,7.6599999 6.65,-4.7799999 1.32,8.0899999 7.46,-3.4 -0.29,8.19 7.98,-1.88 -1.88,7.98 8.19,-0.29 -3.4,7.46 8.09,1.32 -4.78,6.65 7.660005,2.87 z" />
<g
transform="matrix(0.90796789,0,0,0.90796789,77.560123,-27.259986)"
id="g915">
<circle
r="14.258088"
cy="68.183838"
cx="-32.55904"
id="circle904"
style="fill:#d02020;fill-opacity:1;stroke:none;stroke-width:5.80377" />
<circle
style="fill:#fedc57;fill-opacity:1;stroke:none;stroke-width:5.80377"
id="circle908"
cx="-8.6893606"
cy="90.637924"
r="14.258088" />
<circle
r="14.258088"
cy="101.12518"
cx="-40.10968"
id="circle910"
style="fill:#22d05f;fill-opacity:1;stroke:none;stroke-width:5.80377" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4 KiB

View file

@ -1,2 +1,2 @@
pub static STATIC_STYLE_CSS: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/style.css")); pub static STATIC_STYLE_CSS: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/style.css"));
pub static STATIC_FAVICON_PNG: &[u8] = include_bytes!("../../assets/favicon.png"); pub static STATIC_FAVICON: &[u8] = include_bytes!("../../assets/logo.svg");

View file

@ -52,7 +52,7 @@ impl App {
router.add("/", Route::Index); router.add("/", Route::Index);
router.add("/static/style.css", Route::Static(StaticFile::StyleCss)); router.add("/static/style.css", Route::Static(StaticFile::StyleCss));
router.add("/static/favicon.png", Route::Static(StaticFile::FaviconPng)); router.add("/static/logo.svg", Route::Static(StaticFile::FaviconPng));
router.add( router.add(
"/repo/:site/:qual/:name", "/repo/:site/:qual/:name",
@ -345,8 +345,8 @@ impl App {
.body(Body::from(assets::STATIC_STYLE_CSS)) .body(Body::from(assets::STATIC_STYLE_CSS))
.unwrap(), .unwrap(),
StaticFile::FaviconPng => Response::builder() StaticFile::FaviconPng => Response::builder()
.header(CONTENT_TYPE, "image/png") .header(CONTENT_TYPE, "image/svg+xml")
.body(Body::from(assets::STATIC_FAVICON_PNG)) .body(Body::from(assets::STATIC_FAVICON))
.unwrap(), .unwrap(),
} }
} }

View file

@ -17,7 +17,7 @@ fn render_html<B: Render>(title: &str, body: B) -> Response<Body> {
meta charset="utf-8"; meta charset="utf-8";
meta name="viewport" content="width=device-width, initial-scale=1"; meta name="viewport" content="width=device-width, initial-scale=1";
title { (format!("{} - Deps.rs", title)) } title { (format!("{} - Deps.rs", title)) }
link rel="icon" type="image/png" href="/static/favicon.png"; link rel="icon" type="image/svg+xml" href="/static/logo.svg";
link rel="stylesheet" type="text/css" href="/static/style.css"; link rel="stylesheet" type="text/css" href="/static/style.css";
link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600"; link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600";
link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Code+Pro"; link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Code+Pro";