@@ -13,11 +13,11 @@ pub fn ContributorCard(
1313 #[ prop( into) ] contributions : u64 ,
1414) -> impl IntoView {
1515 view ! {
16- <article class="hover:z-10" >
16+ <article class="hover:z-10 flex flex-col h-full gap-y-6 border border-black p-4 hover:bg-orange-500 bg-orange-100 dark:hover:bg-zinc-900/40 dark:bg-black/40 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] transition justify-between " >
1717 <a
1818 href=link. clone( )
1919 target="_blank"
20- class="group flex flex-col gap-y-6 border border-black p-4 hover:bg-orange-500 bg-orange-100 dark:hover:bg-zinc-900/40 dark:bg-black/40 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] transition justify-between h-full "
20+ class="group flex flex-col justify-between"
2121 >
2222 <span class="absolute top-0 end-0 inline-flex items-center size-3.5 group-hover:min-w-16 rounded-full border-2 border-white text-xs font-medium transition-all transform -translate-y-1/2 translate-x-1/2 bg-teal-500 dark:border-slate-900 badge-container" >
2323 <span class="sr-only text-black badge-content transition-all transform" >
@@ -27,45 +27,38 @@ pub fn ContributorCard(
2727 <div class="flex flex-col gap-y-2" >
2828 <img src=brand_src width="60" class="rounded-full mb-4" alt=name. clone( ) />
2929 <h2 class="font-work-sans text-black dark:text-white text-xl" >{ name} </h2>
30- { location
31- . map_or_else(
32- || view! { <div class="hidden" ></div> } ,
33- |location| {
34- view! {
35- <div class="flex gap-2 items-center bg-slate-200/20 dark:bg-neutral-500/40 rounded-md p-1" >
36- <LocationIcon size=16 />
37- <p class="font-work-sans text-black dark:text-white text-sm" >
38- { location}
39- </p>
40- </div>
41- }
42- } ,
43- ) }
30+ { location. map( |location| {
31+ view! {
32+ <div class="flex gap-2 items-center bg-slate-200/20 dark:bg-neutral-500/40 rounded-md p-1" >
33+ <LocationIcon size=16 />
34+ <p class="font-work-sans text-black dark:text-white text-sm" >
35+ { location}
36+ </p>
37+ </div>
38+ }
39+ } , ) }
4440
4541 <p class="font-work-sans text-black dark:text-white" >{ description} </p>
4642 </div>
47- <span class="ml-auto flex" >
48- { twitter
49- . map_or_else(
50- || view! { <div></div> } ,
51- |twitter| {
52- view! {
53- <div>
54- <a
55- href=format!( "https://twitter.com/{}" , twitter)
56- target="_blank"
57- >
58- <TwitterIcon size=30 />
59- </a>
60- </div>
61- }
62- } ,
63- ) }
64- <a href=link target="_blank" >
65- <GithubIcon size=30 />
66- </a>
67- </span>
6843 </a>
44+ <div class="ml-auto flex flex-row gap-2" >
45+ { twitter
46+ . map(
47+ |twitter| {
48+ view! {
49+ <a
50+ href=format!( "https://twitter.com/{}" , twitter)
51+ target="_blank"
52+ >
53+ <TwitterIcon size=30 />
54+ </a>
55+ }
56+ } ,
57+ ) }
58+ <a href=link target="_blank" >
59+ <GithubIcon size=30 />
60+ </a>
61+ </div>
6962 </article>
7063 }
7164}
0 commit comments