logo.rs
⎇
Raw
1//! The brand mark. Same artwork as `web/favicon.svg` — keep the two in sync.
2
3use leptos::prelude::*;
4
5#[component]
6pub fn Logo(#[prop(optional)] class: Option<String>) -> impl IntoView {
7 let mut cls = String::from("logo");
8 if let Some(extra) = class {
9 cls.push(' ');
10 cls.push_str(&extra);
11 }
12 view! {
13 <svg class=cls viewBox="0 0 32 32" aria-hidden="true">
14 <rect width="32" height="32" fill="#2563eb"/>
15 <path d="M6 8h7l3 4h10v14H6z" fill="#fff"/>
16 <path
17 d="M11.5 17.5 16 22l4.5-4.5"
18 fill="none"
19 stroke="#2563eb"
20 stroke-width="3"
21 />
22 </svg>
23 }
24}
25