Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ bun start:build
- [avishekthapamindfire0822](https://github.com/avishekthapamindfire0822)
- [ArnabKMindfire](https://github.com/ArnabKMindfire)
- [praliptarajoo](https://github.com/praliptarajoo)
- [ashutosh-jena-mindfire](https://github.com/ashutosh-jena-mindfire)
2 changes: 2 additions & 0 deletions public/images/social-media/contributor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/images/social-media/git-issue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions public/images/social-media/pull-request.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 61 additions & 7 deletions src/app/contributors/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import Link from "next/link";
import React from "react";
import github from "../../../public/images/social-media/github.png";
import contributorImg from "../../../public/images/social-media/contributor.svg";
import prImg from "../../../public/images/social-media/pull-request.svg";
import issueImg from "../../../public/images/social-media/git-issue.svg";
import Image from "next/image";
import contributorList from "../projects/assets/contributors.json";

Expand Down Expand Up @@ -32,22 +35,73 @@ const Contributors = () => {
src={contributor.avatar_url}
alt={`Contributor ${contributor.login}`}
/>
<h5 className='text-xl font-medium text-gray-900 text-center'>
{contributor.login}
</h5>
<p className='text-sm text-gray-500 text-center'>
Contributions: {contributor.contributions}
</p>
<div className='flex justify-center mt-4'>
<div className='flex justify-center items-center gap-2 mt-4 '>
<Link href={contributor.html_url!} target='_blank'>
<Image
src={github}
height={20}
width={20}
alt='github_img'
loading='lazy'
quality={75}
/>
</Link>
<h5 className='text-xl font-medium text-gray-900 text-center'>
{contributor.login}
</h5>
</div>
<footer>
<div className='grid grid-cols-3 divide-x'>
<div className='flex justify-center items-center gap-1 mt-4 '>
<div>
<Image
src={contributorImg}
height={20}
width={20}
alt='contributor'
loading='lazy'
quality={75}
title='Contributor'
/>
</div>
<p className='text-sm text-gray-500 text-center'>
{contributor.contributions}
</p>
</div>
<div className='flex justify-center items-center gap-1 mt-4 '>
<div>
<Image
src={prImg}
height={20}
width={20}
alt='pull request'
loading='lazy'
quality={75}
title='Pull request'
/>
</div>
<p className='text-sm text-gray-500 text-center'>
{contributor.contributions / 2}
</p>
</div>
<div className='flex justify-center items-center gap-1 mt-4 '>
<div>
<Image
src={issueImg}
height={20}
width={20}
alt='issue'
loading='lazy'
quality={75}
title='Git issue'
/>
</div>
<p className='text-sm text-gray-500 text-center'>
{contributor.contributions / 4}
</p>
</div>
</div>
</footer>
</div>
</div>
))}
Expand Down
Loading