mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add connect and learn links to page alert
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user