Skip to content

Commit

Permalink
Changes in Contributor Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ojas-Arora committed Jan 21, 2025
1 parent b4a52b2 commit 0b862e9
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 26 deletions.
86 changes: 62 additions & 24 deletions contributors/contributor.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ body.dark {
body.dark .title {
background: linear-gradient(90deg, #4a4a4a, #ffffff); /* Dark gradient for text */
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: #fff; /* Fallback text color */
}
Expand Down Expand Up @@ -539,7 +540,6 @@ body.dark p {
}
}

/* Pratik Ghuge CSS start */

body {

Expand All @@ -551,7 +551,7 @@ body.dark p {
margin: 0;
padding: 0;
font-family: Arial, sans-serif; /* Default font */
color: #fff; /* Text color for contrast */
color: black; /* Text color for contrast */
}

.container {
Expand All @@ -571,6 +571,7 @@ body.dark p {
letter-spacing: 1.5px; /* Adds spacing between letters */
background: linear-gradient(90deg, #303131, #262728); /* Gradient background */
-webkit-background-clip: text; /* Clips the gradient to the text */
background-clip: text; /* Standard property for compatibility */
-webkit-text-fill-color: transparent; /* Makes the background of the text transparent */
text-align: center; /* Centers the text */
}
Expand All @@ -594,13 +595,16 @@ body.dark p {
border-radius: 20px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
font-size: larger;
font-weight: bold;
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
overflow: hidden;
backdrop-filter: blur(5px);
width: 270px;
margin-bottom: 40px;
z-index: 1;
border: 1px white solid;
}

.contributor-card:before {
Expand Down Expand Up @@ -645,38 +649,71 @@ body.dark p {
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contributor-card {
border: 2px solid #d4af37;
border-radius: 12px;
padding: 16px;
margin: 12px;
text-align: center;
background: linear-gradient(145deg, #f7e8a1, #f2c94c);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 220px;
}
.contributor-card img {
border-radius: 50%;
width: 100px;
height: 100px;
margin-bottom: 10px;
/* Pulse Effect for Avatar */
@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.8;
}
100% {
transform: scale(1);
opacity: 1;
}
}

/* Contributor Name */
.contributor-card h3 {
margin: 10px 0;
color: #5a4637;
margin: 15px 0;
font-size: 1.6rem;
font-weight: bold;
color: #333; /* Default dark color */
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
letter-spacing: 1px;
position: relative;
z-index: 2;
}

.contributor-card h3::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
width: 100%;
height: 2px;
background: linear-gradient(145deg, #f1c40f, #f39c12); /* Warm yellow gradient */
transform: scaleX(0);
transition: transform 0.3s ease;
}

.contributor-card h3:hover::after {
transform: scaleX(1);
}

/* Glow Effect for Name on Hover with a Subtle Yellow */
.contributor-card h3:hover {
color: #f39c12; /* Subtle yellow color */
text-shadow: 0 4px 20px rgba(243, 156, 18, 0.6); /* Subtle yellow glow effect */
}

/* Pratik Ghuge CSS end */

.contributor-card button {
margin-top: 12px;
padding: 10px 16px;
background-color:#5a4637;
color: #fff;
border-radius: 20px;
font-size: 1rem;
background-color:#d6a52b;
color: var(--clouds-color);
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
.contributor-card button:hover {
background-color:#f2c94c;
background-color:linear-gradient(145deg, #f1c40f, #f39c12); /* Warm yellow gradient */
transform: translateY(-2px);
}

Expand Down Expand Up @@ -806,3 +843,4 @@ margin-bottom: 0.5rem;
background-color: #000; /* Change color on hover */
transform: scale(1.2); /* Slightly enlarge */
}

2 changes: 1 addition & 1 deletion contributors/contributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function fetchContributors() {

// Generate Certificate Button
const button = document.createElement("button");
button.textContent = "Certificate";
button.textContent = "CERTIFICATE";
button.addEventListener("click", () => {
generateCertificate(contributor.login, contributor.avatar_url);
});
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ <h3 class="card-title">Dashboard</h3>
</div>
<div class="card-back">
<p>Analyze job market trends and insights</p>
<a href="https://public.tableau.com/app/profile/ojas.arora/viz/JobTrendAnalysis_17349777011460/HighestPayingJobs2" class="card-button">View Analytics</a>
<a href="" class="card-button">View Analytics</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 0b862e9

Please sign in to comment.