Rearrange things
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
lunchControllers = angular.module 'lunchControllers'
|
||||
|
||||
lunchControllers.controller 'HomeCtrl', ['$scope', '$location',
|
||||
HomeController = ($scope,$location) ->
|
||||
$scope.createRun = () ->
|
||||
$location.path '/run/create'
|
||||
]
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user