diff --git a/app/controllers/top.coffee b/app/controllers/top.coffee index 7758ccf9..d70f1f6c 100644 --- a/app/controllers/top.coffee +++ b/app/controllers/top.coffee @@ -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` diff --git a/app/routes/home.coffee b/app/routes/home.coffee index c966a1cb..da0c5f4c 100644 --- a/app/routes/home.coffee +++ b/app/routes/home.coffee @@ -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' diff --git a/app/styles/app/landing.sass b/app/styles/app/landing.sass index dd9d072d..778764c6 100644 --- a/app/styles/app/landing.sass +++ b/app/styles/app/landing.sass @@ -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