forked from coala/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gci/: Redesign the GCI Students web-page
The redesigned web-page displays the data in a better UI/UX form with some additional information to make it more interactive and attractive. Closes coala#257
- Loading branch information
Showing
10 changed files
with
243 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.data-fetch-error { | ||
padding: 20px 20px 0px 20px; | ||
} | ||
|
||
.gci-students { | ||
padding: 2% 2%; | ||
} | ||
|
||
.gci-students .student-card { | ||
box-shadow: 0px 0px 25px 2px black; | ||
background-color: #c7da99; | ||
font-size: large; | ||
border: 4px #6c9a55 solid; | ||
} | ||
|
||
|
||
.gci-students .student-image { | ||
align-items: normal; | ||
} | ||
|
||
.gci-students .student-details { | ||
width: 100%; | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.gci-students .student-card { | ||
width: 45%; | ||
height: 300px; | ||
overflow-y: auto; | ||
} | ||
} | ||
|
||
.participated-year, | ||
.gci-student-id, | ||
.public-repos, | ||
.public-gists, | ||
.followers { | ||
color: #37474f; | ||
font-weight: bold; | ||
padding-right: 3px; | ||
} | ||
|
||
.web-page-details { | ||
width: 100%; | ||
} | ||
|
||
.web-page-description, | ||
.data-updated-time, | ||
.data-fetch-error { | ||
text-align: center; | ||
font-size: large; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
$(document).ready(function(){ | ||
function generateTimeString(timestamp) { | ||
var sec = ((new Date()).getTime() / 1000) - parseInt(timestamp); | ||
var min = sec / 60; | ||
var hour = min / 60; | ||
var day = hour / 24; | ||
|
||
var timeString = ''; | ||
if (day >= 1) { | ||
timeString = Math.round(day) + ' days ago'; | ||
} else if (hour >= 1) { | ||
timeString = Math.round(hour) + ' hours ago'; | ||
} else if (min >= 1) { | ||
timeString = Math.round(min) + ' minutes ago'; | ||
} else { | ||
timeString = Math.round(sec) + ' seconds ago'; | ||
} | ||
|
||
return timeString; | ||
} | ||
|
||
function updateTimeAgo(time) { | ||
time.text(" " + generateTimeString(time.attr('data-time'))); | ||
} | ||
|
||
function loadTimeElements() { | ||
updateTimeAgo($('#time')); | ||
} | ||
|
||
loadTimeElements(); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.