Skip to content

Commit

Permalink
Merge pull request #542 from RadhikaMalpani1702/main
Browse files Browse the repository at this point in the history
Designed the Contributors Page Match to Website Theme and Made it Responsive
  • Loading branch information
akbatra567 authored Aug 6, 2024
2 parents c6b5f73 + d182199 commit 4364945
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/pages/Contributors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,22 @@ const Contributors: React.FC = () => {
backgroundPosition: "center",
}}>
<div className="container mx-auto py-8">
<h1 className="text-center text-3xl font-semibold mb-8">🤝 Contributors</h1>
<h1 className="text-center text-3xl font-semibold mb-8 mt-16">Our Contributors</h1>
<div className="flex flex-wrap justify-center gap-8">
{currentContributors.map((contributor) => (
<a
key={contributor.id}
href={contributor.html_url}
className="w-full md:w-1/3 lg:w-1/4 flex flex-col items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg shadow-md p-4 transition-transform transform hover:scale-105 hover:shadow-xl"
className="w-11/12 sm:w-1/2 md:w-1/3 lg:w-1/4 flex flex-col items-center bg-white dark:bg-[#001f3f] border border-gray-300 dark:border-gray-700 rounded-lg shadow-md p-4 transition-transform transform hover:scale-105 hover:shadow-xl"
target="_blank"
rel="noopener noreferrer"
style={{ borderColor: '#800080', borderWidth: 2 }}
>
<img
src={contributor.avatar_url}
alt={contributor.login}
className="w-24 h-24 rounded-full object-cover mb-4"
style={{ borderColor: '#800080', borderWidth: 2, borderStyle: 'solid' }}
/>
<h2 className="text-lg font-medium text-gray-900 dark:text-gray-100 mb-2">
{contributor.login}
Expand All @@ -84,7 +86,7 @@ const Contributors: React.FC = () => {
</a>
))}
</div>
<div className="flex justify-center items-center mt-4 w-full space-x-2">
<div className="flex justify-center items-center mt-4 w-full flex-wrap gap-2">
<button
onClick={handlePreviousPage}
disabled={currentPage === 1}
Expand Down

0 comments on commit 4364945

Please sign in to comment.