mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Tweak logo embedding to use new version, and use srcset with src as a fallback
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#tagline
|
||||
.row
|
||||
.small-12.text-center.columns
|
||||
%h1= image_tag "ofn_logo_beta.png", title: "Open Food Network (beta)"
|
||||
%h1
|
||||
%img{src: "/assets/open-food-network-beta.png", srcset: "/assets/open-food-network-beta.svg", width: "550", height: "134", title: "Open Food Network (beta)"}
|
||||
%h2 An open marketplace that makes it easy to find, buy, sell and move sustainable local food.
|
||||
|
||||
%ofn-modal{title: "Learn more", "ng-cloak" => true}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
%nav.top-bar.show-for-large-up{'data-topbar' => true}
|
||||
%section.top-bar-section
|
||||
%ul.left{}
|
||||
%li.ofn-logo= link_to image_tag("ofn_logo_small.png"), root_path
|
||||
%li.ofn-logo
|
||||
%a{href: root_path}
|
||||
%img{src: "/assets/open-food-network-beta.png", srcset: "/assets/open-food-network-beta.svg", width: "110", height: "26"}
|
||||
%li.divider
|
||||
- if current_page? root_path
|
||||
%li
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
|
||||
%aside.left-off-canvas-menu.show-for-medium-down
|
||||
%ul.off-canvas-list
|
||||
%li= link_to image_tag("ofn_logo_small.png"), root_path
|
||||
%li.ofn-logo
|
||||
%a{href: root_path}
|
||||
%img{src: "/assets/open-food-network-beta.png", srcset: "/assets/open-food-network-beta.svg", width: "110", height: "26"}
|
||||
|
||||
- if current_page? root_path
|
||||
%li.li-menu
|
||||
|
||||
Reference in New Issue
Block a user