Update leptos_icons + Add chrono datetime for matter + Add reading time estimation
This commit is contained in:
parent
4ab4b95d8a
commit
8b7e528bc9
12 changed files with 362 additions and 68 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue