Skip to content

Commit

Permalink
[Enhance]: Optimize image
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKal committed Jul 16, 2020
1 parent 41c878a commit 384f570
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ exports[`Theme Provider Selector Selector fo normal theme should render for norm
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/bg.jpg",
"backgroundMobile": "/images/bg-mobile.jpg",
"background": "/images/bg.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/bg-pattern.jpg",
"bgPatternOpacity": "1",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
Expand Down Expand Up @@ -573,8 +573,8 @@ exports[`Theme Provider Selector Selector fo normal theme should render for norm
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/bg.jpg",
"backgroundMobile": "/images/bg-mobile.jpg",
"background": "/images/bg.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/bg-pattern.jpg",
"bgPatternOpacity": "1",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
Expand Down
4 changes: 2 additions & 2 deletions modules/core/theme/styleguide/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const theme = {
grey: '#696969'
},
images: {
background: '/images/bg.jpg',
backgroundMobile: '/images/bg-mobile.jpg',
background: '/images/bg.webp',
backgroundMobile: '/images/bg-mobile.webp',
bgPattern: '/images/bg-pattern.jpg',
bgPatternOpacity: '1',
overlayBgColor: 'rgba(44, 62, 80, 0.4)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports[`Home should render without throwing an error 1`] = `
</Anchor>
<Home__Background>
<div
className="Home__Background-gfpuen-3 dQpcR"
className="Home__Background-gfpuen-3 gLbVfp"
/>
</Home__Background>
<Home__Overlay>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ exports[`GlobalStyleCss should render defaultTheme without throwing an error 1`]
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/bg.jpg",
"backgroundMobile": "/images/bg-mobile.jpg",
"background": "/images/bg.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/bg-pattern.jpg",
"bgPatternOpacity": "1",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
Expand Down
Binary file added public/images/bg-mobile.webp
Binary file not shown.
Binary file added public/images/bg.webp
Binary file not shown.

0 comments on commit 384f570

Please sign in to comment.