Skip to content

Commit

Permalink
INITIALIZED..
Browse files Browse the repository at this point in the history
  • Loading branch information
BashCloud committed Oct 30, 2017
0 parents commit 781b667
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Hacktoberfest Census

A census of those participating in Hacktoberfest 2017 (and an easy PR!)

This census has a live webpage [here](https://cutwell.github.io/gitWorkshop), it's automatically updated every time a PR is accepted!

---
![Hacktoberfest-Census](static/img/Hackcensus.png "Hacktoberfest-Census")
---

### Contributing
Fork this project and add your username + profile link to the [Census](https://github.com/TIEDC/gitWorkshop) list below, then make a Pull Request to add your name to this repository like so..
```markdown
[Cutwell](https://github.com/TIEDC)
```

### Census
- [BashCloud](https://github.com/BashCloud)
- [prashasy](https://github.com/prashasy)
- [akhilesh-k](https://github.com/akhilesh-k)
- [uditpilania](https://github.com/uditpilania)
27 changes: 27 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<html lang="en">

<head>
<title>Hacktoberfest Participation</title>
<link rel="icon" href="static/img/favicon.png">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
<meta name="viewport" content="width=device-width">
<script src="static/js/get_census.js"></script>
<link rel="stylesheet" href="static/css/style.css">
</head>

<body>
<div class="fill top">
<img class="center banner" src="static/img/Hackcensus.png">
<p class="center repo-desc"> A census of those participating in <a href="https://hacktoberfest.digitalocean.com/">#Hacktoberfest</a> </p><br />
<a class="center repo-link" href="https://github.com/TIEDC/gitWorkshop"> Instructions </a>
</div>

<div class="fill bottom">
<h1 class="center census-title" id="census-count"></h1>
<ul id="census-list"></ul>
</div>
</body>

</html>
78 changes: 78 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
body {
margin: 0em;
padding: 0em;
height: 100%;
width: 100%;
font-family: 'Josefin Sans', sans-serif;
background-color: #fff;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
br {
line-height: 3em;
}
.fill {
height: 100%;
width: 100%;
position: relative;
}
.center {
display: block;
margin: auto;
width: 50%;
text-align: center;
}
.top {
background-color: #ff8764;
height: 100vh;
}
.bottom {
background-color: #fff;
margin: 1em;
}
.banner {
height: auto;
max-width: 50em;
width: 100%;
}
.repo-desc {
font-size: 2em;
}
.repo-link {
color: #000;
background-color: #fff;
text-align: center;
font-size: 2em;
padding-top: 0.5em;
padding-bottom: 0.5em;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
width: 10em;
height: 1em;
}
.repo-link:hover {
text-decoration: none;
background-color: #008cba;
color: #fff;
}
.census-title {
font-size: 2.3em;
padding: 1em;
}
.census-list {

}
.census-item {
font-size: 1em;
float:left;
padding: 0.2em;
padding-right: 2em;
}
ul.items li:nth-child(3n+4) {
clear:left;
float:left;
}
Binary file added static/img/Hackcensus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions static/js/get_census.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$.get(
"https://raw.githubusercontent.com/Cutwell/Hacktoberfest-Census/master/README.md",
function(file) {
var census_md = file.split("### Census")[1].split("\n");
census_md.map((user) => {
if(user == ""){
return;
}
var name = user.substring(user.lastIndexOf("[")+1, user.lastIndexOf("]"));
var url = user.substring(user.lastIndexOf("(")+1, user.lastIndexOf(")"));
$("#census-list").append("<li class='census-item'><a href="+url+">"+name+"</a></li>");
});
var census_count = census_md.length - 2;
$("#census-count").html(census_count+" Contributors:");
}
);

0 comments on commit 781b667

Please sign in to comment.