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

feat: Contributors Update #1254

Merged
merged 1 commit into from
Jul 29, 2024
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
Binary file added back5.mp4
Binary file not shown.
124 changes: 65 additions & 59 deletions contributors.css
Original file line number Diff line number Diff line change
@@ -1,60 +1,66 @@
body {
font-family: 'Poppins';
background-color: #f4f4f4;
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}

.container {
text-align: center;
}

.title {
font-size: 2em;
margin-bottom: 20px;
}

.contributors-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}

.contributor-card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 200px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
}

.contributor-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contributor-card img {
border-radius: 50%;
width: 80px;
height: 80px;
object-fit: cover;
margin-bottom: 10px;
}

.contributor-card h2 {
font-size: 1.2em;
margin: 0 0 10px;
}

.contributor-card p {
color: #666;
}

font-family: "Poppins";
background-color: #f4f4f4;
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}

.container {
text-align: center;
}

.title {
display: inline-block;
font-size: 3em;
margin-bottom: 20px;
padding: 10px;
color: #055364;
border-radius: 20px;
background-color: rgba(209, 209, 255, 0.8);
}

.contributors-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
padding: 10px;
gap: 40px;
}

.contributor-card {
background-color: #e5e5f8;
border: 2px solid #101010;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 200px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
}

.contributor-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.9);
}

.contributor-card img {
border-radius: 50%;
width: 100px;
height: 100px;
object-fit: cover;
margin-bottom: 10px;
}

.contributor-card h2 {
font-size: 1.2em;
margin: 0 0 10px;
}

.contributor-card p {
color: #040404;
}
154 changes: 92 additions & 62 deletions contributors.html
Original file line number Diff line number Diff line change
@@ -1,71 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contributors</title>
<link rel="stylesheet" href="contributors.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contributors</title>
<link rel="stylesheet" href="contributors.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>

<style>
html {
scroll-behavior: smooth;
}
.top-btn {
display: none;
width: 50px;
height: 50px;
position: fixed;
bottom: 10px;
right: 0px;
background-color: #ab45e7;
color: #fff;
padding: 2px;
border: none;
margin-right: 36px;
border-radius: 50%;
cursor: pointer;
}
<style>
html {
scroll-behavior: smooth;
}
.top-btn {
display: none;
width: 50px;
height: 50px;
position: fixed;
bottom: 10px;
right: 0px;
background-color: #ab45e7;
color: #fff;
padding: 2px;
border: none;
margin-right: 36px;
border-radius: 50%;
cursor: pointer;
}

.top-btn:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1 class="title">Contributors</h1>
<div id="contributors" class="contributors-grid"></div>
</div>
<button class="top-btn" id="goToTopBtn" onclick="goToTop()"><i class="fa-solid fa-chevron-up"
style="color: #ffffff;"></i></button>
<script>
// Get the button
var mybutton = document.getElementById("goToTopBtn");
.top-btn:hover {
background-color: #0056b3;
}

// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function () {
scrollFunction();
};
video#background-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
background-size: cover;
}
</style>
</head>
<body>
<video id="background-video" autoplay muted loop>
<source src="back5.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
<div class="container">
<h1 class="title">Contributors</h1>
<div id="contributors" class="contributors-grid"></div>
</div>
<button class="top-btn" id="goToTopBtn" onclick="goToTop()">
<i class="fa-solid fa-chevron-up" style="color: #ffffff"></i>
</button>
<script>
// Get the button
var mybutton = document.getElementById("goToTopBtn");

// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function () {
scrollFunction();
};

function scrollFunction() {
if (
document.body.scrollTop > 20 ||
document.documentElement.scrollTop > 20
) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
}

// When the user clicks on the button, scroll to the top of the document
function goToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<script src="contributors.js"></script>
</body>
// When the user clicks on the button, scroll to the top of the document
function goToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<script src="contributors.js"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
html {
scroll-behavior: smooth;
}
</style>
</style>
<style>
.active {
color: red !important;
Expand Down Expand Up @@ -1638,6 +1638,7 @@ <h4 class="footer-head" class="footer__subtitle">Support</h4>
<p><a href="./privacy.html" class="footer__link">Privacy Policy</a></p>
<p><a href="./Licensing.html" class="footer__link">Licensing</a></p>
<p><a href="#cnt-form" class="footer__link">Contact Us</a></p>
<p><a href="contributors.html" class="footer__link">Our Contributors</a></p>
</div>
</div>
<div class="footer__col">
Expand Down
Loading