Add 🦀 Rust to the "Made with" section

This commit is contained in:
Héctor Ramón Jiménez 2024-07-12 23:49:47 +02:00
parent f91f25415d
commit 01c5185b2b
No known key found for this signature in database
GPG Key ID: 7CC46565708259A7
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ pub enum Message {
#[derive(Debug, Clone)]
pub enum Link {
Rust,
Iced,
HuggingFace,
LlamaCpp,
@ -100,6 +101,7 @@ impl Search {
Message::RunModel(model) => (Task::none(), Event::ModelSelected(model)),
Message::LinkPressed(link) => {
let _ = open::that(match link {
Link::Rust => "https://rust-lang.org",
Link::Iced => "https://iced.rs",
Link::HuggingFace => "https://huggingface.co",
Link::LlamaCpp => "https://github.com/ggerganov/llama.cpp",
@ -166,6 +168,11 @@ impl Search {
.style(button::text)
};
let rust = link(
button(text("🦀 Rust").shaping(text::Shaping::Advanced)),
Link::Rust,
);
let iced = link(button(iced(12)), Link::Iced);
let hugging_face = link(
@ -180,6 +187,8 @@ impl Search {
row![
text("Made with"),
rust,
text("and"),
iced,
horizontal_space(),
text("Powered by"),