Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
berlintay authored Aug 10, 2024
1 parent 5188776 commit 005e435
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@
<a href="https://www.linkedin.com/in/jtkeays" target="_blank">LinkedIn</a>
<a href="https://github.com/berlintay" target="_blank">GitHub</a>
</div>
<div id="github-trending-feed"></div>

<script>
fetch('http://localhost:3000/api/github-trending')
.then(response => response.json())
.then(data => {
const feedContainer = document.getElementById('github-trending-feed');
data.forEach(repo => {
const repoElement = document.createElement('div');
repoElement.innerHTML = `
<h3>${repo.organization} / ${repo.repository}</h3>
<p>${repo.description}</p>
`;
feedContainer.appendChild(repoElement);
});
})
.catch(error => console.error('Error fetching GitHub trending data:', error));
</script>

<div id="terminal"></div>
<div class="prompt">
<span id="prompt-line"></span>
Expand Down

0 comments on commit 005e435

Please sign in to comment.