Skip to content
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

Designed the Contributors Page Match to Website Theme and Made it Responsive #542

Merged
merged 3 commits into from
Aug 6, 2024
Merged
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
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
Loading