1
1
use leptos:: * ;
2
2
3
- use crate :: components:: dummy_component :: DummyComponent ;
4
- use crate :: components :: icons :: discord_icon :: DiscordIcon ;
5
- use crate :: components :: icons :: github_icon :: GithubIcon ;
6
- use crate :: components :: icons :: telegram_icon:: TelegramIcon ;
7
- use crate :: components :: cards :: card_title :: CardTitle ;
3
+ use crate :: components:: {
4
+ cards :: card_title :: CardTitle ,
5
+ dummy_component :: DummyComponent ,
6
+ icons :: { discord_icon :: DiscordIcon , github_icon :: GithubIcon , telegram_icon:: TelegramIcon } ,
7
+ } ;
8
8
9
9
#[ component]
10
10
pub fn CommunityCard (
@@ -22,19 +22,18 @@ pub fn CommunityCard(
22
22
class="group flex flex-col gap-y-6 border border-black p-6 hover:bg-orange-500 bg-orange-100 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] transition justify-between"
23
23
>
24
24
<div>
25
- <img src=brand_src width="60" class="rounded-full mb-4" alt=brand_alt />
26
- <CardTitle texts=name />
27
- <p class="font-work-sans text-black" >
28
- { description}
29
- </p>
25
+ <img src=brand_src width="60" class="rounded-full mb-4" alt=brand_alt/>
26
+ <CardTitle texts=name/>
27
+ <p class="font-work-sans text-black" >{ description} </p>
30
28
</div>
31
29
<span class="ml-auto" >
32
30
{ move || match icon {
33
- "discord" => view!{ <DiscordIcon size=30 /> } ,
34
- "github" => view!{ <GithubIcon size=30 /> } ,
35
- "telegram" => view!{ <TelegramIcon size=30 /> } ,
36
- _ => view!{ <DummyComponent /> }
31
+ "discord" => view! { <DiscordIcon size=30 /> } ,
32
+ "github" => view! { <GithubIcon size=30 /> } ,
33
+ "telegram" => view! { <TelegramIcon size=30 /> } ,
34
+ _ => view! { <DummyComponent /> } ,
37
35
} }
36
+
38
37
</span>
39
38
</a>
40
39
}
0 commit comments