Skip to content

Commit 07fa551

Browse files
committed
Add About section
1 parent 14de07d commit 07fa551

3 files changed

Lines changed: 58 additions & 2 deletions

File tree

app/index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<link rel="stylesheet" href="/static/public/css/main.css"/>
3434
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
3535
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
36-
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
36+
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
3737
<script src="//cdnjs.cloudflare.com/ajax/libs/howler/2.0.0/howler.min.js"></script>
3838
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.8/socket.io.min.js"></script>
3939
<script src="//cdn.jsdelivr.net/odometer/0.4.7/odometer.min.js"></script>
@@ -69,6 +69,20 @@ <h1 class="header-text">
6969
<h2 class="online-users-text"><span class="odometer online-users-count"></span> people listening</h2>
7070
</div>
7171
</div>
72+
<div id="config-area">
73+
<div id="consumption-rate-div">
74+
Set events consumption rate <div id="eventConsumptionSlider"></div>
75+
</div>
76+
<div class="site-description">
77+
<h4>About</h4>
78+
<br/>
79+
<p>This website tracks events happening across GitHub and converts them to music notes based on certain parameters.</p><br/>
80+
<p>
81+
There are three types of sounds(bell, string pluck and string swell) based on four types of events(PushEvent, PullRequestEvent, IssuesEvent and IssueCommentEvent).
82+
Bells represent PushEvents, string plucks represent IssuesEvents and IssueCommentEvents whereas string swells represent PullRequestEvents.
83+
</p>
84+
</div>
85+
</div>
7286

7387
<footer>
7488
<div class="footer-left-text-block">

app/public/css/main.css

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro';
1+
@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400|Josefin+Sans';
22

33
html, body, div, span, applet, object, iframe,
44
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@@ -52,6 +52,7 @@ a{
5252
html,body{
5353
background-color: #0288D1;
5454
font-family: 'Source Sans Pro', sans-serif;
55+
font-weight: 400;
5556
font-size: 16px;
5657
overflow-x: hidden;
5758
}
@@ -154,6 +155,35 @@ circle {
154155
color: #E0E0E0;
155156
}
156157

158+
#config-area{
159+
width: 100%;
160+
background: #FFFFFF;
161+
min-height: 300px;
162+
padding: 40px;
163+
color: #555555;
164+
font-family: 'Josefin Sans', sans-serif;
165+
font-weight: 300;
166+
}
167+
168+
#consumption-rate-div{
169+
width: 50%;
170+
margin: 0 auto;
171+
margin-bottom: 0px;
172+
visibility: hidden;
173+
}
174+
175+
#eventConsumptionSlider{
176+
margin-top: 20px;
177+
width: 300px;
178+
}
179+
180+
.site-description{
181+
font-size: 1em;
182+
line-height: 1.6em;
183+
width: 50%;
184+
margin: 0 auto;
185+
}
186+
157187
footer{
158188
width: 100%;
159189
height: 200px;
@@ -187,6 +217,13 @@ footer{
187217

188218
@media only screen and (max-device-width: 480px) {
189219

220+
.site-description{
221+
font-size: 1em;
222+
line-height: 1.6em;
223+
width: 90%;
224+
margin: 0 auto;
225+
}
226+
190227
.footer-left-text-block{
191228
width: 100%;
192229
margin: 0 auto;

app/public/js/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ $(function(){
109109
}
110110
});
111111

112+
$('#eventConsumptionSlider').slider({
113+
'min': 1,
114+
'max': 100
115+
});
116+
112117

113118
// Main drawing area
114119
svg = d3.select("#area").append("svg");

0 commit comments

Comments
 (0)