mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
Reworking the temp homepage to use the Foundation styles more cleverly
This commit is contained in:
@@ -29,20 +29,19 @@
|
||||
.large-12.columns.centered
|
||||
%h3 WHERE WOULD YOU LIKE TO SHOP?
|
||||
%p.secondary Select your hub from the list below
|
||||
.row.landing-page-row.with-bottom-border
|
||||
- @groups.in_groups_of(4, false) do |row|
|
||||
%div.clearfix
|
||||
- row.each do |group|
|
||||
.large-3.columns
|
||||
.group-header
|
||||
%h5= group.name.upcase
|
||||
- group.enterprises.is_distributor.by_name.each do |distributor|
|
||||
.row.distributor-link-row
|
||||
.large-12.columns
|
||||
= succeed ',' do
|
||||
= link_to "<strong>#{distributor.name}</strong>".html_safe, shop_enterprise_path(distributor), {class: temp_landing_page_distributor_link_class(distributor)}
|
||||
- @groups.in_groups_of(4, false) do |row|
|
||||
.row.landing-page-row{:class => row == @groups.last ? "with-bottom-border" : ""}
|
||||
- row.each do |group|
|
||||
.large-3.columns
|
||||
.group-header
|
||||
%h5= group.name.upcase
|
||||
- group.enterprises.is_distributor.by_name.each do |distributor|
|
||||
.row.distributor-link-row
|
||||
.large-12.columns
|
||||
= succeed ',' do
|
||||
= link_to "<strong>#{distributor.name}</strong>".html_safe, shop_enterprise_path(distributor), {class: temp_landing_page_distributor_link_class(distributor)}
|
||||
|
||||
%span.secondary= distributor.city
|
||||
%span.secondary= distributor.city
|
||||
%footer
|
||||
.row.landing-page-row
|
||||
.large-6.columns.text-left
|
||||
|
||||
Reference in New Issue
Block a user