Skip to content

Commit 19eff42

Browse files
authored
Merge branch 'main' into fix/dark-mode-and-milestone
2 parents a0be4f0 + 397d377 commit 19eff42

File tree

9 files changed

+53
-11
lines changed

9 files changed

+53
-11
lines changed

Website/404.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Page Not Found | ML Repos</title>
8-
<link rel="icon" href="logo-bg.png" type="image/png">
8+
<link rel="icon" href="/assets/recode-hive.png" type="image/png">
99
<style>
1010
body {
1111
display: flex;
@@ -36,7 +36,7 @@
3636
position: absolute;
3737
width: 80px;
3838
height: 80px;
39-
background-image: url('logo-bg.png');
39+
background-image: url('/assets/recode-hive.png');
4040
background-size: contain;
4141
background-repeat: no-repeat;
4242
cursor: pointer;
@@ -188,7 +188,7 @@ <h1>404 - Page Not Found</h1>
188188
</div>
189189

190190
<!-- // linking script -->
191-
<script src="js/404.js"></script>
191+
<script src="/js/404.js"></script>
192192
</body>
193193

194194
</html>

Website/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>About | ML Repos</title>
7-
<link rel="icon" href="logo-bg.png" type="image/png">
7+
<link rel="icon" href="/assets/recode-hive.png" type="image/png">
88
</head>
99
<body>
1010
<h1>This is the about page</h1>

Website/assets/chatbot.png

21.5 KB
Loading

Website/contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Contact | ML Repos</title>
7-
<link rel="icon" href="logo-bg.png" type="image/png">
7+
<link rel="icon" href="/assets/recode-hive.png" type="image/png">
88
</head>
99
<body>
1010
<h1>This is the Contact page</h1>

Website/faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>FAQ | ML Repos</title>
7-
<link rel="icon" href="logo-bg.png" type="image/png">
7+
<link rel="icon" href="/assets/recode-hive.png" type="image/png">
88
</head>
99
<body>
1010
<h1>This is the FAQ page</h1>

Website/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Machine Learning Repositories</title>
77
<link rel="stylesheet" href="styles.css">
8-
<link rel="icon" href="logo-bg.png" type="image/png"> <!-- Added favicon -->
8+
<link rel="icon" href="/assets/recode-hive.png" type="image/png"> <!-- Added favicon -->
99
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
1010
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
1111
</head>
@@ -191,8 +191,8 @@ <h3>Recommendation Models</h3>
191191

192192
<!-- Chatbot Button -->
193193
<div class="chatbot-button" id="chatbot-button">
194-
<!-- <img src="logo-bg.png" height="50px" width="50px"> -->
195-
<svg fill="#444" width="163px" height="163px" viewBox="-0.96 -0.96 25.92 25.92" xmlns="http://www.w3.org/2000/svg" stroke="#444" stroke-width="0.00024000000000000003"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#fff" stroke-width="0.096"></g><g id="SVGRepo_iconCarrier"><path d="M21.928 11.607c-.202-.488-.635-.605-.928-.633V8c0-1.103-.897-2-2-2h-6V4.61c.305-.274.5-.668.5-1.11a1.5 1.5 0 0 0-3 0c0 .442.195.836.5 1.11V6H5c-1.103 0-2 .897-2 2v2.997l-.082.006A1 1 0 0 0 1.99 12v2a1 1 0 0 0 1 1H3v5c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5a1 1 0 0 0 1-1v-1.938a1.006 1.006 0 0 0-.072-.455zM5 20V8h14l.001 3.996L19 12v2l.001.005.001 5.995H5z"></path><ellipse cx="8.5" cy="12" rx="1.5" ry="2"></ellipse><ellipse cx="15.5" cy="12" rx="1.5" ry="2"></ellipse><path d="M8 16h8v2H8z"></path></g></svg>
194+
<img src="assets/chatbot.png" height="50px" width="50px" id="chatbot-img" class="floating">
195+
<!-- <svg fill="#444" width="163px" height="163px" viewBox="-0.96 -0.96 25.92 25.92" xmlns="http://www.w3.org/2000/svg" stroke="#444" stroke-width="0.00024000000000000003"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#fff" stroke-width="0.096"></g><g id="SVGRepo_iconCarrier"><path d="M21.928 11.607c-.202-.488-.635-.605-.928-.633V8c0-1.103-.897-2-2-2h-6V4.61c.305-.274.5-.668.5-1.11a1.5 1.5 0 0 0-3 0c0 .442.195.836.5 1.11V6H5c-1.103 0-2 .897-2 2v2.997l-.082.006A1 1 0 0 0 1.99 12v2a1 1 0 0 0 1 1H3v5c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5a1 1 0 0 0 1-1v-1.938a1.006 1.006 0 0 0-.072-.455zM5 20V8h14l.001 3.996L19 12v2l.001.005.001 5.995H5z"></path><ellipse cx="8.5" cy="12" rx="1.5" ry="2"></ellipse><ellipse cx="15.5" cy="12" rx="1.5" ry="2"></ellipse><path d="M8 16h8v2H8z"></path></g></svg> -->
196196
</div>
197197

198198
<!-- Chatbox -->
@@ -219,4 +219,4 @@ <h3>Recommendation Models</h3>
219219
</footer>
220220
<script src="js/script.js"></script>
221221
</body>
222-
</html>
222+
</html>

Website/js/script.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,46 @@ async function fetchSubdirectoryCounts() {
285285
fetchRepoStats();
286286
toggleStatsSection();
287287
});
288+
document.addEventListener("DOMContentLoaded", function() {
289+
fetchContributors();
290+
291+
function fetchContributors() {
292+
const repoOwner = 'recodehive'; // Replace with your repository owner
293+
const repoName = 'machine-learning-repos'; // Replace with your repository name
294+
const apiUrl = `https://api.github.com/repos/${repoOwner}/${repoName}/contributors`;
295+
296+
fetch(apiUrl)
297+
.then(response => response.json())
298+
.then(contributors => {
299+
const contributorsGrid = document.getElementById('contributors-grid');
300+
301+
contributors.forEach(contributor => {
302+
const contributorDiv = document.createElement('div');
303+
contributorDiv.className = 'contributor';
304+
305+
contributorDiv.innerHTML = `
306+
<img src="${contributor.avatar_url}" alt="${contributor.login}" class="contributor-image">
307+
<div class="contributor-info">
308+
<a href="${contributor.html_url}" target="_blank" class="contributor-github">GitHub Profile</a>
309+
</div>
310+
`;
311+
312+
contributorsGrid.appendChild(contributorDiv);
313+
});
314+
})
315+
.catch(error => {
316+
console.error('Error fetching contributors:', error);
317+
});
318+
}
319+
});
320+
321+
const toggleDarkModeButton = document.getElementById('toggle-dark-mode');
322+
const body = document.body;
288323

324+
toggleDarkModeButton.addEventListener('click', () => {
325+
body.classList.toggle('dark-mode');
326+
// Change icon based on dark mode status
327+
const icon = toggleDarkModeButton.querySelector('i');
328+
icon.classList.toggle('fa-moon');
329+
icon.classList.toggle('fa-sun');
330+
});

Website/logo-bg.png

-19.5 KB
Binary file not shown.

Website/organization.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Organization | ML Repos</title>
7-
<link rel="icon" href="logo-bg.png" type="image/png">
7+
<link rel="icon" href="/assets/recode-hive.png" type="image/png">
88
</head>
99
<body>
1010
<h1>This is the Organization page</h1>

0 commit comments

Comments
 (0)