Skip to content

Commit

Permalink
Make posts clickable.
Browse files Browse the repository at this point in the history
  • Loading branch information
darbychang committed Oct 12, 2014
1 parent 907af5c commit e537486
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
14 changes: 5 additions & 9 deletions app/app.styl
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
$blue = #6ECFF5
$green = #A1CF64
$orange = #F05940
$red = #D95C5C
$disqus-width = 90%
$hackpad-width = 90%

body, div
font-family "Lato", "Open Sans", "Helvetica Neue", Helvetica, Arial, "微軟正黑體", sans-serif

Expand Down Expand Up @@ -80,6 +73,7 @@ i.icon

#about
background linear-gradient(rgba(255,255,255,.1) 0, rgba(255,255,255,.9) 50%, rgba(255,255,255,.5) 100%), url(../res/g0v1.jpg) center / cover no-repeat
//background url(../res/cover1.png) center / cover no-repeat
color #fff
padding 10rem 0 3rem
text-align center
Expand Down Expand Up @@ -111,21 +105,23 @@ i.icon
padding 3rem 0 4rem
&, *
transition .5s all
li
a
background center / cover no-repeat
box-shadow 0 0 2px #999
color #333
flex 1 1 240px
height 420px
margin .5rem
overflow hidden
position relative
text-align center
.fg
background-color rgba(255,255,255,1)
bottom 0
left 0
padding 4rem 2rem 0
position absolute
right 1
right 0
top 20%
h3
font-weight 800
Expand Down
12 changes: 8 additions & 4 deletions app/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ html
h2 50 days, 50 graphs
a#scroll(href="#posts"): i.angle.down.icon

ol#posts.wrap(data-scroll-index='1',data-scroll-reveal)
li(style='background-image:url(res/slide1.jpg)')
#posts.wrap(data-scroll-index='1',data-scroll-reveal)
a(href="http://councils.g0v.tw/suggestions/",style='background-image:url(res/slide1.jpg)')
.fg
h3 Lorem Ipsum is simply dummy text of the printing and typesetting industry.
span Lorem Ipsum
h3 議員投票指南
span by johnny
a(href="http://muyueh.com/30/base_line/",style='background-image:url(res/slide1.jpg)')
.fg
h3 選舉基準線('10 村里長)
span by muyueh

#contact(data-scroll-index='2',data-scroll-reveal)
#disqus_thread.wrap
Expand Down
5 changes: 1 addition & 4 deletions gulpfile.ls
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ gulp.task \css ->

gulp.task \html ->
html = gulp.src paths.app+\/**/*.html
jade = gulp.src paths.app+\/**/index.jade .pipe gulp-jade {+pretty}
jade = gulp.src paths.app+\/**/*.jade .pipe gulp-jade {+pretty}
streamqueue {+objectMode}
.done html, jade
.pipe gulp.dest paths.build
.pipe livereload!
gulp.src \README.md .pipe gulp-markdown!
.pipe gulp.dest paths.build
.pipe livereload!

gulp.task \js ->
js-bower = gulp.src main-bower-files! .pipe gulp-filter \*.js
Expand Down

0 comments on commit e537486

Please sign in to comment.