Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace jpg ang png with webp #403

Merged
merged 2 commits into from
Dec 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`Error should render Error Component in general case 1`] = `
>
<Header__Style>
<h1
className="Header__Style-sc-1tbyssu-1 duHoIG"
className="Header__Style-sc-1tbyssu-1 fhHUsn"
>
Oops!
</h1>
Expand Down Expand Up @@ -93,7 +93,7 @@ exports[`Error should render Error Component in undefined case 1`] = `
>
<Header__Style>
<h1
className="Header__Style-sc-1tbyssu-1 duHoIG"
className="Header__Style-sc-1tbyssu-1 fhHUsn"
>
Oops!
</h1>
Expand Down Expand Up @@ -164,7 +164,7 @@ exports[`Error should render Error Component with 404 1`] = `
>
<Header__Style>
<h1
className="Header__Style-sc-1tbyssu-1 duHoIG"
className="Header__Style-sc-1tbyssu-1 fhHUsn"
>
Oops!
</h1>
Expand Down Expand Up @@ -235,7 +235,7 @@ exports[`Error should render Error Component with 500 1`] = `
>
<Header__Style>
<h1
className="Header__Style-sc-1tbyssu-1 duHoIG"
className="Header__Style-sc-1tbyssu-1 fhHUsn"
>
Oops!
</h1>
Expand Down
2 changes: 1 addition & 1 deletion modules/core/components/error/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Style = styled.h1`
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
background: url(/images/oops.jpg) no-repeat;
background: url(/images/oops.webp) no-repeat;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: cover;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ exports[`Theme Provider Selector Selector fo normal theme should render for chri
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/christmas/bg-christmas.jpg",
"background": "/images/christmas/bg-christmas.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/christmas/bg-pattern-snow.png",
"bgPattern": "/images/christmas/bg-pattern-snow.webp",
"bgPatternOpacity": "0.25",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
"overlayBgColor": "rgba(44, 62, 80, 0.3)",
Expand Down Expand Up @@ -270,9 +270,9 @@ exports[`Theme Provider Selector Selector fo normal theme should render for chri
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/christmas/bg-christmas.jpg",
"background": "/images/christmas/bg-christmas.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/christmas/bg-pattern-snow.png",
"bgPattern": "/images/christmas/bg-pattern-snow.webp",
"bgPatternOpacity": "0.25",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
"overlayBgColor": "rgba(44, 62, 80, 0.3)",
Expand Down Expand Up @@ -351,9 +351,9 @@ exports[`Theme Provider Selector Selector fo normal theme should render for new
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/newyear/bg-newyear.jpg",
"background": "/images/newyear/bg-newyear.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/newyear/bg-pattern.jpg",
"bgPattern": "/images/newyear/bg-pattern.webp",
"bgPatternOpacity": "0.3",
"overlay": "",
"overlayBgColor": "rgba(44, 62, 80, 0.3)",
Expand Down Expand Up @@ -429,9 +429,9 @@ exports[`Theme Provider Selector Selector fo normal theme should render for new
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/newyear/bg-newyear.jpg",
"background": "/images/newyear/bg-newyear.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/newyear/bg-pattern.jpg",
"bgPattern": "/images/newyear/bg-pattern.webp",
"bgPatternOpacity": "0.3",
"overlay": "",
"overlayBgColor": "rgba(44, 62, 80, 0.3)",
Expand Down Expand Up @@ -513,7 +513,7 @@ exports[`Theme Provider Selector Selector fo normal theme should render for norm
"images": Object {
"background": "/images/bg.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/bg-pattern.jpg",
"bgPattern": "/images/bg-pattern.webp",
"bgPatternOpacity": "1",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
"overlayBgColor": "rgba(44, 62, 80, 0.4)",
Expand Down Expand Up @@ -591,7 +591,7 @@ exports[`Theme Provider Selector Selector fo normal theme should render for norm
"images": Object {
"background": "/images/bg.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/bg-pattern.jpg",
"bgPattern": "/images/bg-pattern.webp",
"bgPatternOpacity": "1",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
"overlayBgColor": "rgba(44, 62, 80, 0.4)",
Expand Down Expand Up @@ -671,9 +671,9 @@ exports[`Theme Provider Selector Selector fo normal theme should render for tet
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/tet/bg-tet.jpg",
"background": "/images/tet/bg-tet.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/tet/bg-pattern.jpg",
"bgPattern": "/images/tet/bg-pattern.webp",
"bgPatternOpacity": "0.1",
"overlay": "",
"overlayBgColor": "",
Expand Down Expand Up @@ -749,9 +749,9 @@ exports[`Theme Provider Selector Selector fo normal theme should render for tet
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/tet/bg-tet.jpg",
"background": "/images/tet/bg-tet.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/tet/bg-pattern.jpg",
"bgPattern": "/images/tet/bg-pattern.webp",
"bgPatternOpacity": "0.1",
"overlay": "",
"overlayBgColor": "",
Expand Down
4 changes: 2 additions & 2 deletions modules/core/theme/styleguide/christMasTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const theme = {
bgColor: '#fff'
},
images: {
background: '/images/christmas/bg-christmas.jpg',
background: '/images/christmas/bg-christmas.webp',
backgroundMobile: '/images/bg-mobile.webp',
bgPattern: '/images/christmas/bg-pattern-snow.png',
bgPattern: '/images/christmas/bg-pattern-snow.webp',
bgPatternOpacity: '0.25',
overlayBgColor: 'rgba(44, 62, 80, 0.3)',
overlay:
Expand Down
4 changes: 2 additions & 2 deletions modules/core/theme/styleguide/newYearTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const theme = {
bgColor: '#fff'
},
images: {
background: '/images/newyear/bg-newyear.jpg',
background: '/images/newyear/bg-newyear.webp',
backgroundMobile: '/images/bg-mobile.webp',
bgPattern: '/images/newyear/bg-pattern.jpg',
bgPattern: '/images/newyear/bg-pattern.webp',
bgPatternOpacity: '0.3',
overlayBgColor: 'rgba(44, 62, 80, 0.3)',
overlay: ''
Expand Down
4 changes: 2 additions & 2 deletions modules/core/theme/styleguide/tetTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const theme = {
bgColor: '#fff'
},
images: {
background: '/images/tet/bg-tet.jpg',
background: '/images/tet/bg-tet.webp',
backgroundMobile: '/images/bg-mobile.webp',
bgPattern: '/images/tet/bg-pattern.jpg',
bgPattern: '/images/tet/bg-pattern.webp',
bgPatternOpacity: '0.1',
overlayBgColor: '',
overlay: ''
Expand Down
2 changes: 1 addition & 1 deletion modules/core/theme/styleguide/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const theme = {
images: {
background: '/images/bg.webp',
backgroundMobile: '/images/bg-mobile.webp',
bgPattern: '/images/bg-pattern.jpg',
bgPattern: '/images/bg-pattern.webp',
bgPatternOpacity: '1',
overlayBgColor: 'rgba(44, 62, 80, 0.4)',
overlayBgColorMobile: 'rgba(44, 62, 80, 0.3)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports[`Experiences should render without throwing an error 1`] = `
>
<Experience
company="Zalora"
icon="/images/companies/zalora.png"
icon="/images/companies/zalora.webp"
key="0"
>
<VerticalTimelineElement
Expand All @@ -113,7 +113,7 @@ exports[`Experiences should render without throwing an error 1`] = `
icon={
<Experience__Logo
alt="Zalora"
src="/images/companies/zalora.png"
src="/images/companies/zalora.webp"
/>
}
iconStyle={
Expand All @@ -131,7 +131,7 @@ exports[`Experiences should render without throwing an error 1`] = `
</Experience>
<Experience
company="Dek"
icon="/images/companies/dek.png"
icon="/images/companies/dek.webp"
key="1"
>
<VerticalTimelineElement
Expand All @@ -158,7 +158,7 @@ exports[`Experiences should render without throwing an error 1`] = `
icon={
<Experience__Logo
alt="Dek"
src="/images/companies/dek.png"
src="/images/companies/dek.webp"
/>
}
iconStyle={
Expand All @@ -176,7 +176,7 @@ exports[`Experiences should render without throwing an error 1`] = `
</Experience>
<Experience
company="GCS"
icon="/images/companies/gcs.png"
icon="/images/companies/gcs.webp"
key="2"
>
<VerticalTimelineElement
Expand All @@ -203,7 +203,7 @@ exports[`Experiences should render without throwing an error 1`] = `
icon={
<Experience__Logo
alt="GCS"
src="/images/companies/gcs.png"
src="/images/companies/gcs.webp"
/>
}
iconStyle={
Expand All @@ -221,7 +221,7 @@ exports[`Experiences should render without throwing an error 1`] = `
</Experience>
<Experience
company="GCS-intern"
icon="/images/companies/gcs.png"
icon="/images/companies/gcs.webp"
key="3"
>
<VerticalTimelineElement
Expand All @@ -248,7 +248,7 @@ exports[`Experiences should render without throwing an error 1`] = `
icon={
<Experience__Logo
alt="GCS-intern"
src="/images/companies/gcs.png"
src="/images/companies/gcs.webp"
/>
}
iconStyle={
Expand Down
2 changes: 1 addition & 1 deletion modules/home/components/experiences/StartExp.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const StartExp = () => (
export default StartExp

const StartLogo = () => (
<Logo src={'/images/companies/start.png'} alt={'Start'} />
<Logo src={'/images/companies/start.webp'} alt={'Start'} />
)

const Logo = styled.img`
Expand Down
8 changes: 4 additions & 4 deletions modules/home/consts/experiences.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const COMPANIES = [
{ name: 'Zalora', icon: '/images/companies/zalora.png' },
{ name: 'Dek', icon: '/images/companies/dek.png' },
{ name: 'GCS', icon: '/images/companies/gcs.png' },
{ name: 'GCS-intern', icon: '/images/companies/gcs.png' }
{ name: 'Zalora', icon: '/images/companies/zalora.webp' },
{ name: 'Dek', icon: '/images/companies/dek.webp' },
{ name: 'GCS', icon: '/images/companies/gcs.webp' },
{ name: 'GCS-intern', icon: '/images/companies/gcs.webp' }
]
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports[`GlobalStyleCss should render defaultTheme without throwing an error 1`]
"images": Object {
"background": "/images/bg.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/bg-pattern.jpg",
"bgPattern": "/images/bg-pattern.webp",
"bgPatternOpacity": "1",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
"overlayBgColor": "rgba(44, 62, 80, 0.4)",
Expand Down Expand Up @@ -101,7 +101,7 @@ exports[`GlobalStyleCss should render defaultTheme without throwing an error 1`]
height: 100%;
opacity: 1;
z-index: -1;
background: #fff url(/images/bg-pattern.jpg);
background: #fff url(/images/bg-pattern.webp);
}
*:selection {
color: #f3f6f6;
Expand Down Expand Up @@ -428,9 +428,9 @@ exports[`GlobalStyleCss should render newyearTheme without throwing an error 1`]
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/newyear/bg-newyear.jpg",
"background": "/images/newyear/bg-newyear.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/newyear/bg-pattern.jpg",
"bgPattern": "/images/newyear/bg-pattern.webp",
"bgPatternOpacity": "0.3",
"overlay": "",
"overlayBgColor": "rgba(44, 62, 80, 0.3)",
Expand Down Expand Up @@ -476,7 +476,7 @@ exports[`GlobalStyleCss should render newyearTheme without throwing an error 1`]
height: 100%;
opacity: 0.3;
z-index: -1;
background: #fff url(/images/newyear/bg-pattern.jpg);
background: #fff url(/images/newyear/bg-pattern.webp);
}
*:selection {
color: #f3f6f6;
Expand Down Expand Up @@ -803,9 +803,9 @@ exports[`GlobalStyleCss should render xmasTheme without throwing an error 1`] =
"workexp": "\\\\e804",
},
"images": Object {
"background": "/images/christmas/bg-christmas.jpg",
"background": "/images/christmas/bg-christmas.webp",
"backgroundMobile": "/images/bg-mobile.webp",
"bgPattern": "/images/christmas/bg-pattern-snow.png",
"bgPattern": "/images/christmas/bg-pattern-snow.webp",
"bgPatternOpacity": "0.25",
"overlay": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAAZSURBVHjaYmCAAGM0GjfHGEMGAAAA//8DACm0ATMe8beGAAAAAElFTkSuQmCC",
"overlayBgColor": "rgba(44, 62, 80, 0.3)",
Expand Down Expand Up @@ -850,7 +850,7 @@ exports[`GlobalStyleCss should render xmasTheme without throwing an error 1`] =
height: 100%;
opacity: 0.25;
z-index: -1;
background: #fff url(/images/christmas/bg-pattern-snow.png);
background: #fff url(/images/christmas/bg-pattern-snow.webp);
}
*:selection {
color: #f3f6f6;
Expand Down
4 changes: 2 additions & 2 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class MyDocument extends Document {
/>
<meta
property="og:image"
content="https://phatho-folio.now.sh/images/cover-img.png"
content="https://phatho-folio.now.sh/images/cover-img.webp"
/>
<meta
property="og:image:secure_url"
content="https://phatho-folio.now.sh/images/cover-img.png"
content="https://phatho-folio.now.sh/images/cover-img.webp"
/>
<meta property="og:url" content="https://phatho-folio.now.sh/" />
<meta property="og:site_name" content="DeKal Portfolio" />
Expand Down
Binary file removed public/images/bg-mobile.jpg
Binary file not shown.
Binary file removed public/images/bg-old.jpg
Binary file not shown.
Binary file removed public/images/bg-pattern.jpg
Binary file not shown.
Binary file added public/images/bg-pattern.webp
Binary file not shown.
Binary file removed public/images/bg.jpg
Binary file not shown.
Binary file removed public/images/christmas/bg-christmas.jpg
Binary file not shown.
Binary file added public/images/christmas/bg-christmas.webp
Binary file not shown.
Binary file removed public/images/christmas/bg-pattern-snow.png
Binary file not shown.
Binary file added public/images/christmas/bg-pattern-snow.webp
Binary file not shown.
Binary file removed public/images/companies/dek.png
Binary file not shown.
Binary file added public/images/companies/dek.webp
Binary file not shown.
Binary file removed public/images/companies/gcs.png
Binary file not shown.
Binary file added public/images/companies/gcs.webp
Binary file not shown.
Binary file removed public/images/companies/start.png
Binary file not shown.
Binary file added public/images/companies/start.webp
Binary file not shown.
Binary file removed public/images/companies/zalora.png
Binary file not shown.
Binary file added public/images/companies/zalora.webp
Binary file not shown.
Binary file removed public/images/cover-img.png
Binary file not shown.
Binary file added public/images/cover-img.webp
Binary file not shown.
Binary file removed public/images/map-mobile.jpg
Binary file not shown.
Binary file removed public/images/map.jpg
Binary file not shown.
Binary file removed public/images/newyear/bg-newyear.jpg
Binary file not shown.
Binary file added public/images/newyear/bg-newyear.webp
Binary file not shown.
Binary file removed public/images/newyear/bg-pattern.jpg
Binary file not shown.
Binary file added public/images/newyear/bg-pattern.webp
Binary file not shown.
Binary file removed public/images/oops.jpg
Binary file not shown.
Binary file added public/images/oops.webp
Binary file not shown.
Binary file removed public/images/tet/bg-pattern.jpg
Binary file not shown.
Binary file added public/images/tet/bg-pattern.webp
Binary file not shown.
Binary file removed public/images/tet/bg-tet.jpg
Binary file not shown.
Binary file added public/images/tet/bg-tet.webp
Binary file not shown.