scss and talk to gamification api

This commit is contained in:
Lorin Werthen 2016-06-29 21:38:57 +02:00
parent 338efd67ff
commit 476889759d
7 changed files with 18 additions and 4 deletions

2
.gitignore vendored
View file

@ -11,3 +11,5 @@ tmp/
crash.log crash.log
.idea/ .idea/
.sass-cache/

View file

@ -7,6 +7,7 @@ ruby '2.3.1'
gem 'nanoc' gem 'nanoc'
gem 'kramdown' gem 'kramdown'
gem 'coffee-script' gem 'coffee-script'
gem 'sass'
group :development do group :development do
gem 'adsf' gem 'adsf'

View file

@ -50,6 +50,7 @@ GEM
rb-inotify (0.9.7) rb-inotify (0.9.7)
ffi (>= 0.5.0) ffi (>= 0.5.0)
ruby_dep (1.3.1) ruby_dep (1.3.1)
sass (3.4.22)
shellany (0.0.1) shellany (0.0.1)
slop (3.6.0) slop (3.6.0)
thor (0.19.1) thor (0.19.1)
@ -63,6 +64,7 @@ DEPENDENCIES
guard-nanoc guard-nanoc
kramdown kramdown
nanoc nanoc
sass
RUBY VERSION RUBY VERSION
ruby 2.3.1p112 ruby 2.3.1p112

5
Rules
View file

@ -15,6 +15,11 @@ compile '/**/*.coffee' do
write "#{item.identifier.without_ext}.js" write "#{item.identifier.without_ext}.js"
end end
compile '/**/*.scss' do
filter :sass, syntax: :scss
write "#{item.identifier.without_ext}.css"
end
# Markdown # Markdown
compile '/**/*.md' do compile '/**/*.md' do
filter :kramdown filter :kramdown

View file

@ -1,6 +1,8 @@
$.getJSON 'http://cors.io/?u=https://zeus.ugent.be/game/top4/show.json', (data) ->
$('#top-coder-name').text(data[0].github_name)
$.get 'https://api.github.com/orgs/ZeusWPI/events', (data) -> $.get 'https://api.github.com/orgs/ZeusWPI/events', (data) ->
for e in data for e in data
console.log e
$('#github-feed ul').append( $('#github-feed ul').append(
$('<li />').append( $('<li />').append(
$('<img />', $('<img />',

View file

@ -2,8 +2,8 @@
<img id="logo" src="http://i.imgur.com/W5d4B8E.png" alt="" /> <img id="logo" src="http://i.imgur.com/W5d4B8E.png" alt="" />
<div class="pure-u-3-4"> <div class="pure-u-3-4">
</div> </div>
<div class="pure-u-1-4"> <div id="top-coder" class="pure-u-1-4">
#1 CODER ON GAMIFICATION <span id="top-coder-name"></span> is awesome!
</div> </div>
</header> </header>

View file

@ -1,10 +1,12 @@
$zeus_orange: rgb(255, 109, 0);
header { header {
position: absolute; position: absolute;
top: 0; top: 0;
height: 75px; height: 75px;
line-height: 75px; line-height: 75px;
background-color: rgb(255, 109, 0); background-color: $zeus_orange;
color: white; color: white;
width: 100%; width: 100%;