Skip to content

Commit

Permalink
Merge pull request #33 from youcan-shop/TH-88
Browse files Browse the repository at this point in the history
TH-88: All themes > Performance > Serves images with high resolution
  • Loading branch information
ibrilBadreddine authored Aug 26, 2024
2 parents c68a7b8 + 4a322b5 commit c36a12e
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 7 deletions.
Binary file removed themes/aura/assets/default-logo.png
Binary file not shown.
Binary file added themes/aura/assets/default-logo.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions themes/aura/sections/main-navbar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div class='logo'>
<a href='/' aria-label='home'>
<img
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-logo.png' | asset_url }} {%- endif -%}'
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-logo.webp' | asset_url }} {%- endif -%}'
alt='{{ store.name }}'
width="89"
height="34"
Expand Down Expand Up @@ -138,7 +138,7 @@
<div class='logo flex items-center justify-center'>
<a href='/' aria-label="home">
<img
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-logo.png' | asset_url }} {%- endif -%}'
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-logo.webp' | asset_url }} {%- endif -%}'
alt='{{ store.name }}'
width="89" height="34"
>
Expand Down
Binary file removed themes/harmony/assets/default-black-logo.png
Binary file not shown.
Binary file added themes/harmony/assets/default-black-logo.webp
Binary file not shown.
Binary file removed themes/harmony/assets/default-white-logo.png
Binary file not shown.
Binary file added themes/harmony/assets/default-white-logo.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion themes/harmony/sections/main-footer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
>
{% else %}
<img
src="{{ 'default-white-logo.png' | asset_url }}"
src="{{ 'default-white-logo.webp' | asset_url }}"
alt="{{ store.name }}"
width="169" height="46"
>
Expand Down
4 changes: 2 additions & 2 deletions themes/harmony/sections/main-navbar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div class='logo'>
<a href='/' aria-label='home'>
<img
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-black-logo.png' | asset_url }} {%- endif -%}'
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-black-logo.webp' | asset_url }} {%- endif -%}'
alt='{{ store.name }}'
width="133" height="32"
>
Expand Down Expand Up @@ -149,7 +149,7 @@
<div class='logo flex items-center justify-center'>
<a href='/' aria-label='home'>
<img
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-black-logo.png' | asset_url }} {%- endif -%}'
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-black-logo.webp' | asset_url }} {%- endif -%}'
alt='{{ store.name }}'
width="133" height="32"
>
Expand Down
Binary file removed themes/meraki/assets/default-black-logo.png
Binary file not shown.
Binary file added themes/meraki/assets/default-black-logo.webp
Binary file not shown.
Binary file removed themes/meraki/assets/default-white-logo.png
Binary file not shown.
Binary file added themes/meraki/assets/default-white-logo.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion themes/meraki/sections/main-footer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{% else %}
<div class='footer-logo column'>
<img
loading='lazy' src='{{ 'default-black-logo.png' | asset_url }}' alt='logo'
loading='lazy' src='{{ 'default-black-logo.webp' | asset_url }}' alt='logo'
width="80" height="23"
>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/meraki/sections/main-navbar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<div class='logo'>
<a href='/' aria-label='home'>
<img
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-white-logo.png' | asset_url }} {%- endif -%}'
src='{%- if section.settings.navbar_logo.src -%} {{ section.settings.navbar_logo.src }} {%- else -%} {{ 'default-white-logo.webp' | asset_url }} {%- endif -%}'
alt='{{ store.name }}'
width="80"
height="23"
Expand Down

0 comments on commit c36a12e

Please sign in to comment.