Skip to content

Commit 707c665

Browse files
committed
feat: add linkedin url
1 parent 5f45a82 commit 707c665

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

src/components/icons/linkedin_icon.rs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
use leptos::*;
2+
3+
#[component]
4+
pub fn LinkedinIcon(
5+
#[prop(default = 40)] size: u32,
6+
#[prop(default = "fill-black")] class: &'static str,
7+
) -> impl IntoView {
8+
view! {
9+
<svg
10+
width=size
11+
height=size
12+
class=class
13+
viewBox="0 0 16 16"
14+
xmlns="http://www.w3.org/2000/svg"
15+
>
16+
<path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"></path>
17+
</svg>
18+
}
19+
}
20+

src/components/icons/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ mod_use![
55
github_icon,
66
telegram_icon,
77
twitter_icon,
8+
linkedin_icon,
89
location_icon,
910
next
10-
];
11+
];

src/components/our_communities.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use leptos::*;
22

33
use crate::components::{
44
button_link::ButtonLink,
5-
icons::{DiscordIcon, GithubIcon, TelegramIcon},
5+
icons::{DiscordIcon, GithubIcon, LinkedinIcon, TelegramIcon},
66
};
77

88
#[component]
@@ -24,6 +24,10 @@ pub fn OurCommunities() -> impl IntoView {
2424
<GithubIcon size=30/>
2525
"Github"
2626
</ButtonLink>
27+
<ButtonLink href="https://www.linkedin.com/company/rustlanges" color="white" size="big">
28+
<LinkedinIcon size=30/>
29+
"Linkedin"
30+
</ButtonLink>
2731
<ButtonLink href="https://t.me/rust_es" color="white" size="big">
2832
<TelegramIcon size=30/>
2933
"Telegram"
@@ -33,4 +37,4 @@ pub fn OurCommunities() -> impl IntoView {
3337
</div>
3438
</section>
3539
}
36-
}
40+
}

0 commit comments

Comments
 (0)