From 799c894bd33bd8678d0719a3128dde9c35fc83c9 Mon Sep 17 00:00:00 2001 From: summerscope Date: Thu, 30 Oct 2014 15:03:36 +1100 Subject: [PATCH] Tweak logo embedding to use new version, and use srcset with src as a fallback --- app/views/home/index.html.haml | 3 ++- app/views/shared/menu/_large_menu.html.haml | 4 +++- app/views/shared/menu/_mobile_menu.html.haml | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 36ee67998f..da6dc97b02 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -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} diff --git a/app/views/shared/menu/_large_menu.html.haml b/app/views/shared/menu/_large_menu.html.haml index 71f297dede..a12d0030e0 100644 --- a/app/views/shared/menu/_large_menu.html.haml +++ b/app/views/shared/menu/_large_menu.html.haml @@ -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 diff --git a/app/views/shared/menu/_mobile_menu.html.haml b/app/views/shared/menu/_mobile_menu.html.haml index 6cc81cab9d..5ed57917fd 100644 --- a/app/views/shared/menu/_mobile_menu.html.haml +++ b/app/views/shared/menu/_mobile_menu.html.haml @@ -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