Don't show CTA on landing page

This commit is contained in:
Piotr Sarnacki 2015-04-01 11:32:04 +02:00
parent 8274e23b34
commit defc930699
3 changed files with 11 additions and 7 deletions

View File

@ -19,7 +19,7 @@ Controller = Ember.Controller.extend
}
showCta: (->
!@get('auth.signedIn') && !@get('config.pro')
).property('auth.signedIn')
!@get('auth.signedIn') && !@get('config.pro') && !@get('landingPage')
).property('auth.signedIn', 'landingPage')
`export default Controller`

View File

@ -11,10 +11,14 @@ Route = BasicRoute.extend
@_super.apply(this, arguments)
@store.set('isLandingPageOpened', true)
@controllerFor('top').set('landingPage', true)
deactivate: ->
@_super.apply(this, arguments)
@store.set('isLandingPageOpened', false)
@controllerFor('top').set('landingPage', false)
setupController: (controller, model) ->
repos = Ember.ArrayProxy.extend(
isLoadedBinding: 'repos.isLoaded'

View File

@ -7,7 +7,7 @@
.top.landing-page .topbar
background-color: #fff
.button--signin
background-color: #ffffff
border: 1px solid #d7dada
@ -67,7 +67,7 @@
#laptop
width: 200%
.hero
background-color: #f8f7f4
h1
@ -108,13 +108,13 @@
.customers
text-align: center
.left
text-align: left
img
margin: 0 30px 0 30px
.recent-builds
background-color: #f4f3eb
text-align: center
@ -196,7 +196,7 @@
.bf
display: inline-block
width: 120px
p
font-size: 1em
line-height: 1.5em