|
| 1 | +use leptos::*; |
| 2 | + |
| 3 | +use crate::components::{cards::contributor_card::ContributorCard, footer::Footer, header::Header}; |
| 4 | + |
| 5 | +struct ContributorItem { |
| 6 | + name: &'static str, |
| 7 | + description: &'static str, |
| 8 | + link: &'static str, |
| 9 | + brand_src: &'static str, |
| 10 | +} |
| 11 | + |
| 12 | +#[component] |
| 13 | +pub fn Contributors() -> impl IntoView { |
| 14 | + let contributors: Vec<ContributorItem> = vec![ |
| 15 | + ContributorItem { |
| 16 | + name: "Phosphorus Moscu", |
| 17 | + description: "Student in Computer Science degree at Universidad Nacional del Oeste | Developer Consultant at Globant", |
| 18 | + link: "https://github.com/Phosphorus-M", |
| 19 | + brand_src: "https://avatars.githubusercontent.com/u/19656993?v=4", |
| 20 | + }, |
| 21 | + ContributorItem { |
| 22 | + name: "Sergio Alejandro Ribera Costa", |
| 23 | + description: "Enthusiastic developer Linux and Open Source lover", |
| 24 | + link: "https://github.com/SergioRibera", |
| 25 | + brand_src: "https://avatars.githubusercontent.com/u/56278796?v=4", |
| 26 | + }, |
| 27 | + ContributorItem { |
| 28 | + name: "Michael Cardoza", |
| 29 | + description: "Software Developer", |
| 30 | + link: "https://github.com/michaelcardoza", |
| 31 | + brand_src: "https://avatars.githubusercontent.com/u/8800455?v=4", |
| 32 | + }, |
| 33 | + ContributorItem { |
| 34 | + name: "Emilio Ruscitti", |
| 35 | + description: "Rust Dev", |
| 36 | + link: "https://github.com/Lemin-n", |
| 37 | + brand_src: "https://avatars.githubusercontent.com/u/88170949?v=4", |
| 38 | + }, |
| 39 | + ContributorItem { |
| 40 | + name: "carbon based lifeform", |
| 41 | + description: "Rust Dev", |
| 42 | + link: "https://github.com/ph4un00b", |
| 43 | + brand_src: "https://avatars.githubusercontent.com/u/1057021?v=4", |
| 44 | + }, |
| 45 | + ContributorItem { |
| 46 | + name: "CrawKatt", |
| 47 | + description: "Aprendiz de Rust, estudiante de AIEP, Chileno", |
| 48 | + link: "https://github.com/CrawKatt", |
| 49 | + brand_src: "https://avatars.githubusercontent.com/u/108593932?v=4", |
| 50 | + }, |
| 51 | + ]; |
| 52 | + |
| 53 | + view! { |
| 54 | + <div> |
| 55 | + <Header/> |
| 56 | + <main> |
| 57 | + <section class="bg-orange-300/30 py-16"> |
| 58 | + <div class="flex flex-col gap-y-6 container mx-auto px-4"> |
| 59 | + <h2 class="text-3xl text-left mb-6"> |
| 60 | + <span class="font-work-sans font-light">"Nuestros "</span> |
| 61 | + <span class="font-alfa-slab text-orange-500">"Colaboradores"</span> |
| 62 | + </h2> |
| 63 | + <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-5 gap-6"> |
| 64 | + {contributors |
| 65 | + .into_iter() |
| 66 | + .map(|contributor| { |
| 67 | + view! { |
| 68 | + <ContributorCard |
| 69 | + name=contributor.name |
| 70 | + description=contributor.description |
| 71 | + link=contributor.link |
| 72 | + brand_src=contributor.brand_src |
| 73 | + /> |
| 74 | + } |
| 75 | + }) |
| 76 | + .collect::<Vec<_>>()} |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </section> |
| 80 | + </main> |
| 81 | + <Footer/> |
| 82 | + </div> |
| 83 | + } |
| 84 | +} |
0 commit comments