Skip to content

Commit

Permalink
task/issue 399 resize images for better best practise score (#409)
Browse files Browse the repository at this point in the history
* task: resize images add srcset

* fix: add additional greenwood logo for 5x DPR

* fix: typo srcset

* fix: header merge issue
  • Loading branch information
hutchgrant authored Aug 19, 2020
1 parent 61c2f28 commit 6b4982d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2 deletions.
Binary file added www/assets/greenwood-logo-1000w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/assets/greenwood-logo-1500w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added www/assets/greenwood-logo-500w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/assets/greenwood-logo-750w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/assets/greenwood-logo-sml.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions www/components/banner/banner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { html, LitElement } from 'lit-element';
import bannerCss from './banner.css';
import buttonCss from './button.css';
import greenwoodLogo from '../../assets/greenwood-logo.png';
import greenwoodLogo300 from '../../assets/greenwood-logo-300w.png';
import greenwoodLogo500 from '../../assets/greenwood-logo-500w.png';
import greenwoodLogo750 from '../../assets/greenwood-logo-750w.png';
import greenwoodLogo1000 from '../../assets/greenwood-logo-1000w.png';
import greenwoodLogo1500 from '../../assets/greenwood-logo-1500w.png';
import '@evergreen-wc/eve-button';
import '@evergreen-wc/eve-container';

Expand Down Expand Up @@ -53,7 +57,14 @@ class Banner extends LitElement {
<div class='banner'>
<eve-container>
<div class='content'>
<img src="${greenwoodLogo}" alt="Greenwood Logo"/>
<img
src="${greenwoodLogo300}"
alt="Greenwood Logo"
srcset="${greenwoodLogo300} 1x,
${greenwoodLogo500} 2x,
${greenwoodLogo750} 3x,
${greenwoodLogo1000} 4x,
${greenwoodLogo1500} 5x"/>
<h3>The static site generator for your. . . <br /><span class="${this.animateState}">${currentProjectType}.</span></h3>
Expand Down

0 comments on commit 6b4982d

Please sign in to comment.