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

Added links to side icons #162

Merged
merged 2 commits into from
Aug 7, 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
2 changes: 2 additions & 0 deletions events.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
</div>
</a>
<div class="navbar-right">
<a href="#" class="navbar-link">Tools</a>

<a href="#" class="navbar-link">Events</a>
<a href="githubbadge.html" class="navbar-link">Github-Badge</a>
<a href="blog.html" class="navbar-link">Blog</a>
Expand Down
2 changes: 2 additions & 0 deletions exploremore.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<span class="navbar-text">Recode Hive</span>
</div>
<div class="navbar-right">
<a href="#" class="navbar-link">Tools</a>

<a href="events.html" class="navbar-link">Events</a>
<a href="#" class="navbar-link">Github-Badge</a>
<a href="blog.html" class="navbar-link">Blog</a>
Expand Down
1 change: 1 addition & 0 deletions githubbadge.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
</div>
<div class="navbar-right">
<a href="githubbadge.html" class="navbar-link">Github-Badge</a>
<a href="#" class="navbar-link">Tools</a>

<a href="events.html" class="navbar-link">Events</a>
<a href="blog.html" class="navbar-link">Blog</a>
Expand Down
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="navbar-right">
<a href="githubbadge.html" class="navbar-link">Github-Badge</a>

<a href="#" class="navbar-link">Tools</a>
<a href="events.html" class="navbar-link">Events</a>
<a href="blog.html" class="navbar-link">Blog</a>
<div class="toggle-switch">
Expand Down Expand Up @@ -101,7 +101,11 @@ <h1 class="main-heading">Awesome GitHub Profile READMEs</h1>
class="search-input"
placeholder="Search Nickname or Username..."
/>
<i class="fas fa-search" style="position: relative;right: 40px;"></i>

</div>
<div class="no-profiles-message"><h2>No profiles found</h2></div>

<div class="profiles">
<!-- Profiles will be dynamically loaded here -->
</div>
Expand Down Expand Up @@ -164,4 +168,4 @@ <h5>


</body>
</html>
</html>
18 changes: 17 additions & 1 deletion retriveprofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,27 @@ firebase.initializeApp(firebaseConfig);

document.addEventListener("DOMContentLoaded", function () {
let contributors = [];

const noProfilesMessage = document.querySelector(".no-profiles-message");
noProfilesMessage.style.display="none"
function renderProfiles(filter = "") {

const container = document.querySelector(".profiles");
container.innerHTML = "";
const noProfilesMessage = document.querySelector(".no-profiles-message");

const filteredContributors = contributors.filter(contributor =>
contributor.login.toLowerCase().includes(filter.toLowerCase())
);

if (filteredContributors.length === 0) {
noProfilesMessage.style.display = "block";
console.log('sdsds')

return
}
contributors.forEach((contributor) => {
noProfilesMessage.style.display = "none";

if (contributor.login.toLowerCase().includes(filter.toLowerCase())) {
const card = document.createElement("a");
card.href = `https://github.com/${contributor.login}`;
Expand Down
173 changes: 173 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,184 @@
body {
<<<<<<< HEAD
font-family: "Roboto", sans-serif;
background-color: #f0f0f0;
color: #333;
margin: 0;
padding: 0;
transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
text-align: center;
}

.main-heading {
margin-bottom: 40px;
}

.tags {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 20px;
}

.tag {
display: inline-block;
margin: 5px;
padding: 10px 15px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 20px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.tag:hover{
background-color: #ebebeb;

}
.search-bar {
margin-bottom: 20px;
}

.search-input {
width: 259px;
padding: 15px;
font-size: 16px;
border: 2px solid #ddd;
border-radius: 25px;
box-shadow: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease,all 0.3s;;
}
.search-input:focus{
width: 50%;
outline: none;
transition: all 0.3s;
}

.search-input:hover,
.search-input:focus {
border-color: #aaa;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profiles {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.profile {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 10px;
margin: 10px;
width: 250px;
padding: 15px;
margin-top: 30;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.5s ease-out;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile img {
max-width: 100%;
border-radius: 10px;
}

.profile p {
color: #333;
}

.grey-banner {
background-color: #333333;
color: white;
padding: 10px 15px;
border-bottom-left-radius: 10px;
font-size: 0.8em;
font-weight: 500;
width: 200px;
text-align: center;
display: inline-block;
margin: 20px auto;
cursor: pointer;
}
.grey-banner:hover {
scale: 1.06;
transition: all 0.2s;
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #000000;
color: #f0f0f0;
}

body.dark-mode .tag {
background-color: #555;
border-color: #444;
color: #fff;
}
body.dark-mode .tag:hover{
background-color: #3f3f3f;
}
body.dark-mode .search-input {
background-color: #555;
border-color: #444;
color: #fff;
}

body.dark-mode .profile {
background-color: #444;
border-color: #555;
}

body.dark-mode .profile p {
color: #f0f0f0;
}

/* Switch Label */
.toggle-switch label {
position: relative;
top: 0px;
left: 7px;
width: 55px; /* Adjust width to fit switch button and icons */
height: 30px; /* Adjust height if needed */
background-color: #ccc;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.5s ease;
}
=======
font-family: "Roboto", sans-serif;
background-color: #f0f0f0;
color: #333;
margin: 0;
padding: 0;
transition: background-color 0.3s ease, color 0.3s ease;
}
>>>>>>> upstream/main

/* Styling for Vertical Scrollbar */

Expand Down
Loading