Skip to content

Commit 51d380a

Browse files
committed
Update readme, add linter fixes
1 parent 52f42ce commit 51d380a

File tree

7 files changed

+16
-19
lines changed

7 files changed

+16
-19
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# alexieyizhe.github.io
22

3-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/06042577aa204b92ba175fb61df44472)](https://app.codacy.com/app/alexieyizhe/alexieyizhe.github.io?utm_source=github.com&utm_medium=referral&utm_content=alexieyizhe/alexieyizhe.github.io&utm_campaign=badger)
3+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/06042577aa204b92ba175fb61df44472)](https://app.codacy.com/app/alexieyizhe/alexieyizhe.github.io?utm_source=github.com&utm_medium=referral&utm_content=alexieyizhe/alexieyizhe.github.io&utm_campaign=badger) |
4+
![Deploys with Netlify](https://img.shields.io/badge/Netlify-deployed-brightgreen.svg) |
5+
[![GitHub license](https://img.shields.io/github/license/alexieyizhe/alexieyizhe.github.io.svg)](https://github.com/alexieyizhe/alexieyizhe.github.io/blob/master/LICENSE)
46

57
Personal website/portfolio of Alex Yizhe Xie.
68

src/components/Icon.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ const IconWrapper = styled.span`
1212
`;
1313

1414
const icons = {
15-
paper_plane: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
15+
paperPlane: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
1616
<path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/>
1717
</svg>,
1818
file: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
1919
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
2020
<path d="M14 2v6h6M16 13H8M16 17H8M10 9H8"/>
2121
</svg>,
22-
up_arrow: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
22+
upArrow: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
2323
<path d="M17 11l-5-5-5 5M17 18l-5-5-5 5"/>
2424
</svg>,
2525
github: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
@@ -41,20 +41,17 @@ const icons = {
4141
<path d="M5 2 L19 2 L19 22 L5 22 L5 2"/>
4242
<path d="M11,17a1,1 0 1,0 2,0a1,1 0 1,0 -2,0"/>
4343
</svg>,
44-
code: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
45-
<path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/>
46-
</svg>,
4744
terminal: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
4845
<path d="M4 17l6-6-6-6M12 19h8"/>
4946
</svg>,
50-
play_circle: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
47+
playCircle: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
5148
<path d="M2,12a10,10 0 1,0 20,0a10,10 0 1,0 -20,0"/>
5249
<path d="M10 8l6 4-6 4V8z"/>
5350
</svg>,
54-
shopping_bag: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
51+
shoppingBag: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
5552
<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4zM3 6h18M16 10a4 4 0 0 1-8 0"/>
5653
</svg>,
57-
message_square: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
54+
messageSquare: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
5855
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
5956
</svg>,
6057
star: <svg viewBox="0 0 24 24" fill="none" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">

src/components/PageFooter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const PageFooter = () => (
3838
<FooterContainer>
3939
<a href="mailto:alex@alexieyizhe.me" target="_blank" style={{gridArea: 'contactIcon'}}>
4040
<SVGDrawIcon>
41-
<Icon name="paper_plane" size="2vh" color="#80D07F" />
41+
<Icon name="paperPlane" size="2vh" color="#80D07F" />
4242
</SVGDrawIcon>
4343
</a>
4444
<Link to="/resume" style={{gridArea: 'resumeIcon'}}>
@@ -48,7 +48,7 @@ const PageFooter = () => (
4848
</Link>
4949
<span style={{gridArea: 'topIcon'}} onClick={() => animateScroll.scrollToTop()}>
5050
<SVGDrawIcon>
51-
<Icon name="up_arrow" size="4vh" color="#000" />
51+
<Icon name="upArrow" size="4vh" color="#000" />
5252
</SVGDrawIcon>
5353
</span>
5454
<a href="https://github.com/alexieyizhe" target="_blank" style={{gridArea: 'githubIcon'}}>

src/components/SVGDrawIcon.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ class SVGDrawIcon extends React.Component {
3333
}
3434

3535
handleHover(hovering) {
36-
if(this.props.ignoreHover) {
37-
38-
} else {
36+
if(!this.props.ignoreHover) {
3937
this.setState({animate: hovering});
4038
}
4139
}

src/data/projectData.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const projectsList = [
3030
{name: 'Meteor', icon: 'devicons devicons-meteor', color: '#DF6034' },
3131
],
3232
actionLinks: [
33-
{name: "App Store", icon: "shopping_bag", url: "https://itunes.apple.com/US/app/id1380247687"},
34-
{name: "Play Store", icon: "play_circle", url: "https://play.google.com/store/apps/details?id=ionic.eqrscanner"},
33+
{name: "App Store", icon: "shoppingBag", url: "https://itunes.apple.com/US/app/id1380247687"},
34+
{name: "Play Store", icon: "playCircle", url: "https://play.google.com/store/apps/details?id=ionic.eqrscanner"},
3535
{name: "View on Github", icon: "github", url: "https://github.com/alexieyizhe/eqrscanner"},
3636
]
3737
},
@@ -67,7 +67,7 @@ export const projectsList = [
6767
{name: 'Heroku', icon: 'devicons devicons-heroku', color: '#9943A7' },
6868
],
6969
actionLinks: [
70-
{name: "FB Messenger Demo", icon: "message_square", url: "https://m.me/553923414986147"},
70+
{name: "FB Messenger Demo", icon: "messageSquare", url: "https://m.me/553923414986147"},
7171
{name: "View on Github", icon: "github", url: "https://github.com/alexieyizhe/wat-bus"},
7272
]
7373
},

src/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react"
33
let stylesStr
44
if (process.env.NODE_ENV === `production`) {
55
try {
6-
stylesStr = require(`!raw-loader!../public/styles.css`)
6+
stylesStr = require('!raw-loader!../public/styles.css')
77
} catch (e) {
88
console.log(e)
99
}

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class HomePage extends React.Component {
162162
<ImportantInfo initialPose={'enter'} pose={'normal'} >
163163
<a href="mailto:alexieyizhe@gmail.com" target="_blank">
164164
<SVGDrawIcon animate={this.state.iconAnimate} ignoreHover={isMobile}>
165-
<Icon name="paper_plane" size="3vmax" color="#80D07F" />
165+
<Icon name="paperPlane" size="3vmax" color="#80D07F" />
166166
</SVGDrawIcon>
167167
</a>
168168
<Link to="/resume">

0 commit comments

Comments
 (0)