Show registration CTA in footer rather than connect and learn CTA

This commit is contained in:
Rohan Mitchell
2016-08-03 15:03:14 +10:00
parent ee2c1ef195
commit d3ab9faede
5 changed files with 25 additions and 24 deletions

View File

@@ -30,7 +30,7 @@ footer
background-color: transparent
border: none
padding: 0
a.alert-cta
.alert-cta
@include csstrans
width: 100%
border: 1px solid rgba($dark-grey, 0.35)
@@ -44,7 +44,7 @@ footer
color: #333
strong
letter-spacing: 0.5px
&:hover, &:active, &:focus
a:hover, a:active, a:focus
text-decoration: none
border-color: white
&, & *

View File

@@ -0,0 +1,10 @@
:css
.page-alert .alert-box { background-color: #f27052; }
.alert-cta
%h6
%strong
= link_to "Connect", "https://openfoodnetwork.org/au/connect/", target: '_blank'
and
%strong
= link_to "Learn", "https://openfoodnetwork.org/au/learn/", target: '_blank'

View File

@@ -0,0 +1,5 @@
- if feature? :connect_learn_homepage
= render "shared/connect_learn_call"
- else
= render "shared/register_call"

View File

@@ -1,22 +1,8 @@
- if feature? :connect_learn_homepage
:css
.page-alert .alert-box { background-color: #f27052; }
.alert-cta
%h6
.alert-cta
%h6
%a{href: registration_path, target: "_blank"}
= t '.selling_on_ofn'
 
%strong
= link_to "Connect", "https://openfoodnetwork.org/au/connect/", target: '_blank'
and
%strong
= link_to "Learn", "https://openfoodnetwork.org/au/learn/", target: '_blank'
- else
.alert-cta
%h6
%a{href: registration_path, target: "_blank"}
= t '.selling_on_ofn'
 
%strong
= t '.register'
%i.ofn-i_054-point-right
= t '.register'
%i.ofn-i_054-point-right

View File

@@ -1,4 +1,4 @@
.text-center.page-alert.fixed{ "ofn-page-alert" => true }
.alert-box
= render 'shared/register_call'
= render 'shared/page_alert'
%a.close{ ng: { click: "close()" } } ×