-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add contributors page #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use leptos::*; | ||
|
||
use crate::components::icons::github_icon::GithubIcon; | ||
|
||
#[component] | ||
pub fn ContributorCard( | ||
#[prop(into)] name: &'static str, | ||
#[prop(into)] description: &'static str, | ||
#[prop(into)] link: &'static str, | ||
#[prop(into)] brand_src: &'static str, | ||
) -> impl IntoView { | ||
view! { | ||
<article> | ||
<a | ||
href=link | ||
target="_blank" | ||
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 h-full" | ||
> | ||
<div class="flex flex-col gap-y-2"> | ||
<img src=brand_src width="60" class="rounded-full mb-4" alt=name/> | ||
<h2 class="font-work-sans text-black text-xl">{name}</h2> | ||
<p class="font-work-sans text-black">{description}</p> | ||
</div> | ||
<span class="ml-auto"> | ||
<GithubIcon size=30/> | ||
</span> | ||
</a> | ||
</article> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod card_title; | ||
pub mod community_card; | ||
pub mod contributor_card; | ||
pub mod project_card; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
use leptos::*; | ||
|
||
use crate::components::{cards::contributor_card::ContributorCard, footer::Footer, header::Header}; | ||
|
||
struct ContributorItem { | ||
name: &'static str, | ||
description: &'static str, | ||
link: &'static str, | ||
brand_src: &'static str, | ||
} | ||
|
||
#[component] | ||
pub fn Contributors() -> impl IntoView { | ||
let contributors: Vec<ContributorItem> = vec![ | ||
ContributorItem { | ||
name: "Phosphorus Moscu", | ||
description: "Student in Computer Science degree at Universidad Nacional del Oeste | Developer Consultant at Globant", | ||
link: "https://github.com/Phosphorus-M", | ||
brand_src: "https://avatars.githubusercontent.com/u/19656993?v=4", | ||
}, | ||
ContributorItem { | ||
name: "Sergio Alejandro Ribera Costa", | ||
description: "Enthusiastic developer Linux and Open Source lover", | ||
link: "https://github.com/SergioRibera", | ||
brand_src: "https://avatars.githubusercontent.com/u/56278796?v=4", | ||
}, | ||
ContributorItem { | ||
name: "Michael Cardoza", | ||
description: "Software Developer", | ||
link: "https://github.com/michaelcardoza", | ||
brand_src: "https://avatars.githubusercontent.com/u/8800455?v=4", | ||
}, | ||
ContributorItem { | ||
name: "Emilio Ruscitti", | ||
description: "Rust Dev", | ||
link: "https://github.com/Lemin-n", | ||
brand_src: "https://avatars.githubusercontent.com/u/88170949?v=4", | ||
}, | ||
ContributorItem { | ||
name: "carbon based lifeform", | ||
description: "Rust Dev", | ||
link: "https://github.com/ph4un00b", | ||
brand_src: "https://avatars.githubusercontent.com/u/1057021?v=4", | ||
}, | ||
ContributorItem { | ||
name: "CrawKatt", | ||
description: "Aprendiz de Rust, estudiante de AIEP, Chileno", | ||
link: "https://github.com/CrawKatt", | ||
brand_src: "https://avatars.githubusercontent.com/u/108593932?v=4", | ||
}, | ||
]; | ||
|
||
view! { | ||
<div> | ||
<Header/> | ||
<main> | ||
<section class="bg-orange-300/30 py-16"> | ||
<div class="flex flex-col gap-y-6 container mx-auto px-4"> | ||
<h2 class="text-3xl text-left mb-6"> | ||
<span class="font-work-sans font-light">"Nuestros "</span> | ||
<span class="font-alfa-slab text-orange-500">"Colaboradores"</span> | ||
</h2> | ||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-5 gap-6"> | ||
{contributors | ||
.into_iter() | ||
.map(|contributor| { | ||
view! { | ||
<ContributorCard | ||
name=contributor.name | ||
description=contributor.description | ||
link=contributor.link | ||
brand_src=contributor.brand_src | ||
/> | ||
} | ||
}) | ||
.collect::<Vec<_>>()} | ||
</div> | ||
</div> | ||
</section> | ||
</main> | ||
<Footer/> | ||
</div> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
pub mod contributors; | ||
pub mod index; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto hay que cambiarlo para que use las rutas de Leptos y no use los a