Rearrange things

This commit is contained in:
Ben Ramey
2014-04-08 19:38:55 -05:00
parent 15906b56de
commit d5ac63762b
14 changed files with 144 additions and 93 deletions

View File

@@ -7,20 +7,12 @@ lunchApp = angular.module 'lunchApp', [
lunchApp.config ['$routeProvider',
($routeProvider) ->
$routeProvider
.when '/home',
templateUrl: 'templates/home.html',
controller: 'HomeCtrl'
.when '/run/create',
templateUrl: 'templates/create-run.html',
controller: 'CreateRunCtrl'
.when '/run/:id',
templateUrl: 'templates/run.html',
controller: 'RunCtrl'
.when '/run/:id/order/:inviteeName',
templateUrl: 'templates/create-order.html',
controller: 'CreateOrderCtrl'
.otherwise
redirectTo: '/home'
]
lunchApp.config ['$locationProvider',

View File

@@ -1,7 +0,0 @@
lunchControllers = angular.module 'lunchControllers'
lunchControllers.controller 'HomeCtrl', ['$scope', '$location',
HomeController = ($scope,$location) ->
$scope.createRun = () ->
$location.path '/run/create'
]

View File

@@ -10,6 +10,7 @@ body {
}
#page {
.interior {
padding: 20px 40px;
background-color: rgba(0,0,0,0.8);
box-shadow: 0px 0px 20px #000;
@@ -20,9 +21,5 @@ body {
font-size: 1.2em;
}
}
.interior-content {
padding: 20px 40px;
}
}
}

View File

@@ -1,24 +0,0 @@
#home-page(ng-controller='HomeCtrl')
.row
.col-xs-12.col-sm-6.offset-md-2
#logo.pod
h1
| lunch run
span.text-muted  me
.row
.col-xs-12.col-sm-6.offset-md-2
#welcome.pod
p
| Organize a lunch run in less than a minute. All you need to know is
strong  who 
| you want to invite and
strong  where 
| you want to go.
p Get started below. No login required.
.row
.col-xs-12.col-sm-6.offset-md-2
#cta.pod
a.btn.btn-block(ng-click='createRun()')
| start a run  
span.glyphicon.glyphicon-chevron-right

View File

@@ -1,16 +0,0 @@
nav.navbar(role='navigation')
.container-fluid
.navbar-header
button.navbar-toggle(type='button',data-toggle='collapse',data-target='main-nav')
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='/')
| lunch run
span.text-muted  me
.collapse.navbar-collapse#main-nav
ul.nav.navbar-nav
li
a(href='/') home