Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
CONTRIBUTORS🎉
Browse files Browse the repository at this point in the history
[MASTER] Added tribute to contributors.
  • Loading branch information
himanshu007-creator authored Jul 7, 2021
2 parents f9444a1 + 20ebf3a commit 8a66148
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Visit : [Code Architecture](CodeArchitecture.md)
<hr>

<h2 >Contributors :</h2>
<a href="https://himanshu007-creator.github.io/SFC-foundations/Tribute_To_Contributors.html">Tribute to contributors</a>
<h3 >Credit goes to these people !!</h3>
<table>
<tr>
Expand Down
129 changes: 129 additions & 0 deletions Tribute_To_Contributors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="https://github.com/rohan-kulkarni-25/Tribute-To-Contributors/blob/460d1edbf904a0ab07abc6724f5d2bba07b565a9/logo.png" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<style>
#list {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

.contributorbox {
background-color: #b1dbff;
display: flex;
flex-direction: column;
justify-content: space-around;
width: max-content;
margin: 2vmin;
padding: 2em;
padding-bottom: 0%;
border-radius: 12px;
}

.avatar {
width: 8em;
border-radius: 12px;
}

.contributorbox a {
display: flex;
justify-content: space-around;
}

.logo {
width: 2.5em;
border-radius: 52px;
cursor: pointer;
margin: 2vmin;

}

#head {
display: flex;
justify-content: center;
align-content: space-around;
border-radius: 12px;
background-color: rgb(13, 50, 75);
}

#head p {
margin: 0;
text-align: center;
padding: 2vmin;
color: white;
font-size: 2rem;
}

.foot {
background-color: black;
color: white;
display: flex;
justify-content: center;
padding: 1vmin;
font-size: 3vmin;

}

.foot a {
text-decoration: none;
color: black;
/* padding-left: 5vmin; */
margin-left: 3vmin;
border-radius: 12px;
padding: 0.5vmin;
text-align: right;
font-size: 3.2vmin;
background-color: white;
}

#head img {
/* width: 1vmin; */
height: 8vmin;
padding: 1vmin;
border-radius: 12px;
}
</style>

<title>Tribute-To-Contributors</title>
</head>

<body>

<div id="head">

</div>
<div id="list">

</div>
<foot class="foot">MADE WITH ❤️ BY ROHAN KULKARNI <a href="https://rohankulkarni.tech">Get Connected</a></foot>
<script>

async function getCollaborator() {
let repo = `himanshu007-creator/SFC-foundations/`
const url = `https://api.github.com/repos/${repo}/contributors`
const response = await fetch(url,)
const result = await response.json()
for (let index = 0; index < result.length; index++) {
let box = document.createElement('div');
box.innerHTML = `<div class="contributorbox">
<img class="avatar" src="https://www.github.com/${result[index].login}.png">
<a href="https://github.com/${result[index].login}"><img class="logo" src="https://avatars.githubusercontent.com/u/9919?v=4"></a>
</div>`

document.getElementById('list').appendChild(box);

}
document.getElementById('head').innerHTML = `<img src="https://raw.githubusercontent.com/rohan-kulkarni-25/Tribute-To-Contributors/460d1edbf904a0ab07abc6724f5d2bba07b565a9/logo.png"><p>CONTRIBUTORS OF ${repo} !! All Credit Goes to Them</p>`
}
getCollaborator();

</script>
</body>

</html>

0 comments on commit 8a66148

Please sign in to comment.