Skip to content

Commit 629f61e

Browse files
committed
Optimize image size, update config (#16)
* Update config to stop email notifs, style improvements * [ImgBot] optimizes images (#15) *Total -- 12,052.21kb -> 10,987.22kb (8.84%) /static/img/misc/logo_square.png -- 15.51kb -> 2.00kb (87.08%) /static/img/experience/flipp_logo.png -- 21.64kb -> 5.63kb (73.98%) /static/img/experience/wloop_logo.png -- 29.92kb -> 14.17kb (52.65%) /static/img/experience/equithon_logo.png -- 76.03kb -> 39.78kb (47.69%) /static/img/experience/wloop_bg.png -- 711.28kb -> 453.93kb (36.18%) /static/img/resume/alex_xie_resume_1B.png -- 657.84kb -> 452.86kb (31.16%) /static/img/experience/tedx_logo.png -- 293.86kb -> 215.98kb (26.5%) /static/img/resume/alex_xie_resume_1A.png -- 304.81kb -> 231.23kb (24.14%) /static/img/resume/alex_xie_resume_2A.png -- 378.26kb -> 307.52kb (18.7%) /static/archive/may-2018/resources/images/avatar.png -- 467.27kb -> 381.43kb (18.37%) /static/archive/jan-2018/resources/images/favicon.png -- 8.54kb -> 7.16kb (16.21%) /static/archive/may-2018/resources/images/favicon.png -- 8.54kb -> 7.16kb (16.21%) /static/img/projects/easy.png -- 147.27kb -> 128.10kb (13.02%) /static/img/projects/watbus.png -- 249.21kb -> 227.10kb (8.87%) /static/img/projects/eqrscanner.png -- 179.03kb -> 165.16kb (7.75%) /static/img/projects/alexieyizhewebsite.png -- 179.16kb -> 165.29kb (7.74%) /static/img/experience/tedx_bg.jpg -- 152.84kb -> 145.89kb (4.55%) /static/img/experience/flipp_bg.jpg -- 884.69kb -> 848.21kb (4.12%) /static/img/about/about_me.png -- 655.35kb -> 630.85kb (3.74%) /static/img/experience/equithon_bg.jpg -- 1,133.08kb -> 1,103.13kb (2.64%) /static/img/misc/index_main.png -- 759.90kb -> 745.37kb (1.91%) /static/archive/jan-2018/resources/images/favicon_alt.png -- 72.27kb -> 70.92kb (1.86%) /static/archive/may-2018/resources/images/favicon_alt.png -- 72.27kb -> 70.92kb (1.86%) /static/img/about/about_travel.png -- 2,078.26kb -> 2,065.09kb (0.63%) /static/img/about/about_equithon.png -- 2,515.35kb -> 2,502.34kb (0.52%) * Bump to retrigger build
1 parent c6e630d commit 629f61e

30 files changed

+41
-20
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
notifications:
2+
email: false
3+
14
language: node_js
25
node_js:
36
- "node"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"test": "jest --coverage && cat ./test/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
1717
"test:update": "jest --updateSnapshot",
1818
"test:nocov": "jest",
19+
"test:nocoveralls": "jest --coverage",
1920
"test:watch": "jest --watch",
2021
"prettier": "prettier --single-quote --list-different \"src/**/*.jsx\" \"test/*.test.js\" \"test/*.test.jsx\""
2122
},

scripts/publish_on_netlify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# die on error
3+
# Exit on error
44
set -e
55

66
# https://gist.github.com/cjus/1047794

src/pages/about.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,12 @@ class AboutPage extends React.Component {
332332
})}
333333
<a
334334
data-tip="Music"
335-
data-for={'interestTipMusic'}
335+
data-for="interestTipMusic"
336336
href="https://open.spotify.com/user/alexieyizhe"
337337
target="_blank"
338+
rel="noreferrer noopener"
338339
>
339-
<ReactTooltip id={'interestTipMusic'} effect="solid" />
340+
<ReactTooltip id="interestTipMusic" effect="solid" />
340341
<Icon name="headphones" size="1em" color="#000000" />
341342
</a>
342343
</AboutInterests>
@@ -347,7 +348,11 @@ class AboutPage extends React.Component {
347348
Chinese, but my hometown is the city-state of Singapore, Singapore
348349
(trippy, I know). These days, I'm proudly Canadian and working as
349350
a back-end software engineer at{' '}
350-
<a href="https://flipp.com/home" target="_blank">
351+
<a
352+
href="https://flipp.com/home"
353+
target="_blank"
354+
rel="noreferrer noopener"
355+
>
351356
Flipp Corp
352357
</a>
353358
. <br />

src/pages/index.jsx

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import styled from 'styled-components';
1010
import posed from 'react-pose';
1111
import Img from 'gatsby-image';
1212
import Link from 'gatsby-link';
13+
import Particles from 'react-particles-js';
1314
import { isMobile, isIOS } from 'react-device-detect';
1415
import {
1516
mediaSize,
@@ -18,7 +19,6 @@ import {
1819
} from '../data/configOptions';
1920
import TemplateWrapper from '../components/TemplateWrapper';
2021
import SVGDrawIcon from '../components/SVGDrawIcon';
21-
import Particles from 'react-particles-js';
2222
import ScrambleText from '../components/ScrambleText';
2323
import Icon from '../components/Icon';
2424

@@ -85,8 +85,8 @@ const ImportantInfo = styled(posed.div(fadeEnterConfig))`
8585
& a {
8686
color: inherit;
8787
margin-bottom: 2vh;
88-
margin-left: 1.5vh;
89-
margin-right: 1.5vh;
88+
margin-left: 1vh;
89+
margin-right: 1vh;
9090
}
9191
9292
& a:first-child {
@@ -164,57 +164,69 @@ class HomePage extends React.Component {
164164
pose={'normal'}
165165
/>
166166
{/* NOTE: script font in logo is BarleyScript */}
167-
<Greeting initialPose={'enter'} pose={'normal'}>
168-
{this.state.greeting + " I'm"}
167+
<Greeting initialPose="enter" pose="normal">
168+
{`${this.state.greeting} I'm`}
169169
</Greeting>
170-
<MainInfoText initialPose={'enter'} pose={'normal'}>
170+
<MainInfoText initialPose="enter" pose="normal">
171171
<ScrambleText
172172
text="Alex Xie."
173173
scramble="!<>-_\\/[]{}—=+*^?#_abiwxevpi"
174174
options={{ duration: 250, speed: 15 }}
175175
/>
176176
</MainInfoText>
177-
<BriefBioText initialPose={'enter'} pose={'normal'}>
177+
<BriefBioText initialPose="enter" pose="normal">
178178
<div>web developer.</div>
179179
<div>opportunity pursuer.</div>
180180
<div>soccer fanatic.</div>
181181
<div>lover of bad puns.</div>
182182
</BriefBioText>
183-
<ImportantInfo initialPose={'enter'} pose={'normal'}>
184-
<a href="mailto:alexieyizhe@gmail.com" target="_blank">
183+
<ImportantInfo initialPose="enter" pose="normal">
184+
<a
185+
href="mailto:alexieyizhe@gmail.com"
186+
target="_blank"
187+
rel="noreferrer noopener"
188+
>
185189
<SVGDrawIcon
186190
animate={this.state.iconAnimate}
187191
ignoreHover={isMobile}
188192
>
189-
<Icon name="paperPlane" size="3vmax" color="#80D07F" />
193+
<Icon name="paperPlane" size="3.5vh" color="#80D07F" />
190194
</SVGDrawIcon>
191195
</a>
192196
<Link to="/resume">
193197
<SVGDrawIcon
194198
animate={this.state.iconAnimate}
195199
ignoreHover={isMobile}
196200
>
197-
<Icon name="file" size="3vmax" color="#DE7947" />
201+
<Icon name="file" size="3.5vh" color="#DE7947" />
198202
</SVGDrawIcon>
199203
</Link>
200-
<a href="https://github.com/alexieyizhe" target="_blank">
204+
<a
205+
href="https://github.com/alexieyizhe"
206+
target="_blank"
207+
rel="noreferrer noopener"
208+
>
201209
<SVGDrawIcon
202210
animate={this.state.iconAnimate}
203211
ignoreHover={isMobile}
204212
>
205-
<Icon name="github" size="3vmax" color="#5534AC" />
213+
<Icon name="github" size="3.5vh" color="#5534AC" />
206214
</SVGDrawIcon>
207215
</a>
208-
<a href="https://www.linkedin.com/in/alexieyizhe/" target="_blank">
216+
<a
217+
href="https://www.linkedin.com/in/alexieyizhe/"
218+
target="_blank"
219+
rel="noreferrer noopener"
220+
>
209221
<SVGDrawIcon
210222
animate={this.state.iconAnimate}
211223
ignoreHover={isMobile}
212224
>
213-
<Icon name="linkedin" size="3vmax" color="#2381D9" />
225+
<Icon name="linkedin" size="3.5vh" color="#2381D9" />
214226
</SVGDrawIcon>
215227
</a>
216228
</ImportantInfo>
217-
<MainPagePic initialPose={'enter'} pose={'normal'}>
229+
<MainPagePic initialPose="enter" pose="normal">
218230
<Img sizes={this.props.data.mainImage.sizes} />
219231
</MainPagePic>
220232
</TemplateWrapper>
-1.38 KB
Loading
-1.35 KB
Loading
-85.8 KB
Loading
-1.38 KB
Loading
-1.35 KB
Loading

0 commit comments

Comments
 (0)