Update leptos_icons + Add chrono datetime for matter + Add reading time estimation

This commit is contained in:
Florian RICHER 2024-01-11 23:59:56 +01:00
parent 4ab4b95d8a
commit 8b7e528bc9
12 changed files with 362 additions and 68 deletions

View file

@ -1,5 +1,4 @@
use leptos::*;
use leptos_icons::*;
#[component]
pub fn SocialLinkContainer(
@ -17,11 +16,11 @@ pub fn SocialLink(
children: Children,
#[prop(optional)]
url: Option<String>,
icon: Icon,
icon: icondata::Icon,
) -> impl IntoView {
view! {
<a class="social_link" href=url target="_blank">
<Icon icon=icon />
<leptos_icons::Icon icon=icon />
<span>{ children() }</span>
</a>
}