mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Show registration CTA in footer rather than connect and learn CTA
This commit is contained in:
@@ -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
|
||||
&, & *
|
||||
|
||||
10
app/views/shared/_connect_learn_call.html.haml
Normal file
10
app/views/shared/_connect_learn_call.html.haml
Normal 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'
|
||||
5
app/views/shared/_page_alert.html.haml
Normal file
5
app/views/shared/_page_alert.html.haml
Normal file
@@ -0,0 +1,5 @@
|
||||
- if feature? :connect_learn_homepage
|
||||
= render "shared/connect_learn_call"
|
||||
|
||||
- else
|
||||
= render "shared/register_call"
|
||||
@@ -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
|
||||
|
||||
@@ -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()" } } ×
|
||||
|
||||
Reference in New Issue
Block a user