Skip to content

Commit

Permalink
Merge pull request Its-Aman-Yadav#1199 from zalabhavy/contributors
Browse files Browse the repository at this point in the history
Contributor Stylish page
  • Loading branch information
Its-Aman-Yadav authored Jul 22, 2024
2 parents 1481925 + 9f2a927 commit 92cbf4b
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 121 deletions.
298 changes: 207 additions & 91 deletions contributor.css
Original file line number Diff line number Diff line change
@@ -1,127 +1,243 @@
body {
margin: 0;
font-family: Arial, sans-serif;
color: #fff;
background-color: linear-gradient(#f5d244, #f5a623);
}

.header-hero {
position: relative;
padding-top: 50px;
padding-bottom: 50px;
}

.header-hero .container {
position: relative;
}

.header-hero .header-hero-content {
position: relative;
color: #fff;
}

.header-hero .header-hero-image {
margin-top: 50px;
}

.header-sub-title {
font-size: 1.5rem;
font-weight: 500;
}

.header-title {
font-size: 2.5rem;
font-weight: 700;
}

.text {
font-size: 1rem;
font-weight: 400;
}

.main-btn {
font-size: 1rem;
font-weight: 500;
padding: 12px 30px;
border-radius: 30px;
background-color: #ffffff;
color: #000;
text-decoration: none;
transition: all 0.3s ease;
}

.main-btn:hover {
background-color: #000;
color: #ffffff;
}

.content {
position: relative;
padding-top: 0;
}

.container {
margin-top: 100px;
max-width: 1200px;
margin: 0 auto;
padding: 16px;
}

#contributor {
font-family: "Poppins", sans-serif;
font-weight: 300;
line-height: 1.4;
scroll-behavior: smooth;
margin: 0;
padding: 50px 0;
.text-center {
text-align: center;
}

.text-3xl {
font-size: 1.875rem;
}

.font-semibold {
font-weight: 600;
}

.mb-8 {
margin-bottom: 0.8rem;
}

.flex {
display: flex;
}

.flex-wrap {
flex-wrap: wrap;
justify-content: center; /* Center the items horizontally */
align-items: center; /* Center the items vertically */
}

.heroes {
font-family: Arial, sans-serif;
font-weight: bold;
margin-top: 25px;
font-size: 45px;
color: var(--light);
text-align: center;
transition: color 0.3s ease-in-out;
cursor: pointer;
.justify-center {
justify-content: center;
}

@media (max-width: 768px) {
.heroes {
font-size: 35px;
margin-top: 20px;
}
.gap-8 {
gap: 2rem;
}

/* For mobile screens */
@media (max-width: 480px) {
.heroes {
font-size: 25px;
margin-top: 15px;
}
.contributors {
padding-top: 10px;
}

h1:hover {
color: var(--primary);
.contributor-card {
width: 100%;
max-width: calc(25% - 16px);
display: flex;
flex-direction: column;
align-items: center;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 16px;
transition: transform 0.3s, box-shadow 0.3s;
text-decoration: none;
color: inherit;
margin-bottom: 5px;
}

#grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 20px;
width: 0%;
justify-content: center; /* Center the grid items */
.contributor-card:hover {
transform: scale(1.05);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.placeholder {
width: 95px;
height: 95px;
background-color: #ccc;
.contributor-card img {
width: 96px;
height: 96px;
border-radius: 50%;
position: relative;
overflow: hidden;
}

.placeholder::after {
content: "";
position: absolute;
top: 0;
left: -150%;
width: 200%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.8) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: loading 0.7s infinite;
object-fit: cover;
margin-bottom: 16px;
}

@keyframes loading {
0% {
transform: translateX(-100%);
}
.text-lg {
font-size: 1.125rem;
}

100% {
transform: translateX(100%);
}
.text-gray-900 {
color: #1a202c;
}

div {
display: block;
.text-gray-100 {
color: #f7fafc;
}

.contributor-card:nth-child(4n + 1),
.contributor-card:nth-child(4n + 3) {
margin-top: -4px;
.mb-2 {
margin-bottom: 0.5rem;
}

.contributor-card {
width: 95px;
height: 95px;
clip-path: circle(50%);
margin: 9px;
overflow: hidden; /* Ensure images don't overflow */
.text-gray-700 {
color: #4a5568;
}

.text-gray-400 {
color: #cbd5e0;
}

.flex-center {
display: flex;
justify-content: center;
align-items: center;
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.contributor-card img {
width: 100%;
height: 100%;
object-fit: cover; /* Make sure the image covers the container */
transition: transform 0.3s ease-in-out;
.mr-1 {
margin-right: 0.25rem;
}

.contributor-card:hover {
box-shadow: 0 0 10px rgba(253, 251, 251, 0.9);
.bg_cover {
background-size: cover;
background-position: center;
}

::-webkit-scrollbar {
width: 10px;
background-color: #f5f5f5;
}

.contributor-card:active img {
transform: scale(1.1);
opacity: 0.8;
box-shadow: 0 0 20px rgb(188, 240, 210);
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
background-color: #f1c11a;
background-image: -webkit-linear-gradient(
45deg,
rgba(255, 255, 255, 0.2) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.2) 50%,
rgba(255, 255, 255, 0.2) 75%,
transparent 75%,
transparent
);
border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
background-color: #d1a10a;
}

/* Responsive Styles */
@media (max-width: 1200px) {
.contributor-card {
max-width: calc(33.333% - 16px);
}
}

@media (max-width: 768px) {
.contributor-card {
max-width: calc(50% - 16px);
}
}

@media (max-width: 480px) {
.contributor-card {
max-width: 100%;
}
}

.contributor-card {
color: #333;
}

.contributor-card .text-lg {
color: #000;
font-size: 12px;
}

@media (max-width: 768px) {
.theme-switch,
#checkbox
{
opacity: 0;
pointer-events: none;
}

#image
{
opacity: 0;
pointer-events: none;
}
}
Loading

0 comments on commit 92cbf4b

Please sign in to comment.