Don't show CTA on landing page
This commit is contained in:
parent
8274e23b34
commit
defc930699
|
@ -19,7 +19,7 @@ Controller = Ember.Controller.extend
|
||||||
}
|
}
|
||||||
|
|
||||||
showCta: (->
|
showCta: (->
|
||||||
!@get('auth.signedIn') && !@get('config.pro')
|
!@get('auth.signedIn') && !@get('config.pro') && !@get('landingPage')
|
||||||
).property('auth.signedIn')
|
).property('auth.signedIn', 'landingPage')
|
||||||
|
|
||||||
`export default Controller`
|
`export default Controller`
|
||||||
|
|
|
@ -11,10 +11,14 @@ Route = BasicRoute.extend
|
||||||
@_super.apply(this, arguments)
|
@_super.apply(this, arguments)
|
||||||
@store.set('isLandingPageOpened', true)
|
@store.set('isLandingPageOpened', true)
|
||||||
|
|
||||||
|
@controllerFor('top').set('landingPage', true)
|
||||||
|
|
||||||
deactivate: ->
|
deactivate: ->
|
||||||
@_super.apply(this, arguments)
|
@_super.apply(this, arguments)
|
||||||
@store.set('isLandingPageOpened', false)
|
@store.set('isLandingPageOpened', false)
|
||||||
|
|
||||||
|
@controllerFor('top').set('landingPage', false)
|
||||||
|
|
||||||
setupController: (controller, model) ->
|
setupController: (controller, model) ->
|
||||||
repos = Ember.ArrayProxy.extend(
|
repos = Ember.ArrayProxy.extend(
|
||||||
isLoadedBinding: 'repos.isLoaded'
|
isLoadedBinding: 'repos.isLoaded'
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
.top.landing-page .topbar
|
.top.landing-page .topbar
|
||||||
background-color: #fff
|
background-color: #fff
|
||||||
|
|
||||||
.button--signin
|
.button--signin
|
||||||
background-color: #ffffff
|
background-color: #ffffff
|
||||||
border: 1px solid #d7dada
|
border: 1px solid #d7dada
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
|
|
||||||
#laptop
|
#laptop
|
||||||
width: 200%
|
width: 200%
|
||||||
|
|
||||||
.hero
|
.hero
|
||||||
background-color: #f8f7f4
|
background-color: #f8f7f4
|
||||||
h1
|
h1
|
||||||
|
@ -108,13 +108,13 @@
|
||||||
|
|
||||||
.customers
|
.customers
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
.left
|
.left
|
||||||
text-align: left
|
text-align: left
|
||||||
|
|
||||||
img
|
img
|
||||||
margin: 0 30px 0 30px
|
margin: 0 30px 0 30px
|
||||||
|
|
||||||
.recent-builds
|
.recent-builds
|
||||||
background-color: #f4f3eb
|
background-color: #f4f3eb
|
||||||
text-align: center
|
text-align: center
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
.bf
|
.bf
|
||||||
display: inline-block
|
display: inline-block
|
||||||
width: 120px
|
width: 120px
|
||||||
|
|
||||||
p
|
p
|
||||||
font-size: 1em
|
font-size: 1em
|
||||||
line-height: 1.5em
|
line-height: 1.5em
|
||||||
|
|
Loading…
Reference in New Issue
Block a user