Add connect and learn links to page alert

This commit is contained in:
Rohan Mitchell
2016-08-03 12:52:05 +10:00
parent 87e063593a
commit 5b43d7a87a
2 changed files with 24 additions and 9 deletions

View File

@@ -21,13 +21,13 @@
font-size: 10px
line-height: 24px
a.alert-cta
.alert-cta
&, & *
@include csstrans
color: #333
strong
letter-spacing: 0.5px
&:hover, &:active, &:focus
a:hover, a:active, a:focus
&, & *
text-decoration: none
color: white

View File

@@ -1,7 +1,22 @@
%a.alert-cta{href: registration_path, target: "_blank"}
%h6
= t '.selling_on_ofn'
 
%strong
= t '.register'
%i.ofn-i_054-point-right
- if feature? :connect_learn_homepage
: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'
- else
.alert-cta
%h6
%a{href: registration_path, target: "_blank"}
= t '.selling_on_ofn'
 
%strong
= t '.register'
%i.ofn-i_054-point-right