engagementgamelab/CivicSeed

View on GitHub
client/templates/pages/home.jade

Summary

Maintainability
Test Coverage
.row.homepage

  .col-md-7.welcome
    //h1 Welcome to Civic Seed!
    img.logo(src='#{CivicSeed.CLOUD_PATH}/img/logo-large.png')
    h4 Where civic engagement meets social gaming.
    p We believe learning becomes even more powerful when you have fun doing it. Civic Seed is an experimental gaming and teaching platform designed to do just that. By playing Civic Seed, you'll learn more about yourself and your peers, Tuft’s host communities, how to build mutually beneficial relationships with them, and the philosophies behind meaningful and effective civic engagement.
    p Best of all, you’ll be certified by Tufts to engage with the vibrant host communities it partners with, and build your own Civic Resume as you play!

  .col-md-4.col-md-offset-1.col-sm-6.col-sm-offset-3.text-center
    img(src='#{CivicSeed.CLOUD_PATH}/img/other/trees.png')
    if(!sessionStorage.userId)
      form.form-inline#login-form(method='post', action='/')
        input#username.input(type='text', name='username', rel='popover', data-content='Enter your email.', data-original-title='Email Address', placeholder='Email')
        input#password.input(type='password', name='password', rel='popover', data-content='Super secret password.', data-original-title='Password', placeholder='Password')
        button.btn.btn-primary.btn-lg(type='submit') Sign In
        p
          a(href='/remind-me') Forget your password?
    else
      div
        a.btn.btn-info.btn-lg.profile(href='/profiles/' + sessionStorage.profileLink) See your civic resume
        a.btn.btn-info.btn-lg.play-game(href='/game') Play the game!