diff --git a/src/app/components/mod.rs b/src/app/components/mod.rs index c9b9c5b..26b01fd 100644 --- a/src/app/components/mod.rs +++ b/src/app/components/mod.rs @@ -2,4 +2,7 @@ mod tag; pub use tag::Tag; mod link; -pub use link::Link; \ No newline at end of file +pub use link::Link; + +mod social_link; +pub use social_link::{SocialLinkContainer, SocialLink}; \ No newline at end of file diff --git a/src/app/components/social_link.rs b/src/app/components/social_link.rs new file mode 100644 index 0000000..3dc46c6 --- /dev/null +++ b/src/app/components/social_link.rs @@ -0,0 +1,27 @@ +use leptos::*; +use leptos_icons::*; + +#[component] +pub fn SocialLinkContainer( + children: Children +) -> impl IntoView { + view! { +
+ { children() } +
+ } +} + +#[component] +pub fn SocialLink( + children: Children, + url: String, + icon: Icon, +) -> impl IntoView { + view! { + + + { children() } + + } +} \ No newline at end of file diff --git a/src/app/mod.rs b/src/app/mod.rs index 4cfb426..713ff72 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -3,6 +3,8 @@ mod components; use leptos::*; use leptos_meta::*; use leptos_router::*; +use leptos_icons::FaIcon::FaGithubBrands; +use leptos_icons::*; #[component] pub fn App() -> impl IntoView { @@ -29,6 +31,10 @@ fn Home() -> impl IntoView {

"Tailwind will scan your Rust files for Tailwind class names and compile them into a CSS file."

Salut Salut + + Github + Github +