Tweak logo embedding to use new version, and use srcset with src as a fallback

This commit is contained in:
summerscope
2014-10-30 15:03:36 +11:00
parent 32daa1745c
commit 799c894bd3
3 changed files with 8 additions and 3 deletions

View File

@@ -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}

View File

@@ -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

View File

@@ -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