Migrate social_link components

This commit is contained in:
Florian RICHER 2023-10-08 22:02:08 +02:00
parent d420097a88
commit 35d4878bb7
6 changed files with 37 additions and 48 deletions

View file

@ -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 {
<p class="px-10 pb-10 text-left">"Tailwind will scan your Rust files for Tailwind class names and compile them into a CSS file."</p>
<components::Tag>Salut</components::Tag>
<components::Link>Salut</components::Link>
<components::SocialLinkContainer>
<components::SocialLink icon=Icon::from(FaGithubBrands) url="https://github.com/mrdev023".to_string()>Github</components::SocialLink>
<components::SocialLink icon=Icon::from(FaGithubBrands) url="https://github.com/mrdev023".to_string()>Github</components::SocialLink>
</components::SocialLinkContainer>
<button
class="bg-amber-600 hover:bg-sky-700 px-5 py-3 text-white rounded-lg"
on:click=move |_| set_count.update(|count| *count += 1)