Skip to content

Commit

Permalink
Add headshot fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoelho93 committed May 31, 2020
1 parent 61fd160 commit b04bc14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/sections/AboutMe.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function AboutMe() {
src={Resume.basics.picture}
alt={Resume.basics.name}
className="is-rounded"
onError={(e)=>{e.target.onerror = null; e.target.src=Resume.basics.pictureFallback}}
/>
</figure>
<p className="subtitle is-4 has-text-white has-text-weight-bold">
Expand Down
3 changes: 2 additions & 1 deletion src/resume.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"basics": {
"name": "José Coelho",
"label": "DevOps Engineer",
"picture": "images/jcoelho.jpg",
"picture": "images/jcoelho.webp",
"x_pictureFallback": "images/jcoelho.jpg",
"x_title": "Hey There! Glad you're here",
"summary": "Going on 4 years of experience in IT. Currently I’m working as a developer exploring the DevOps world. I’m interested in service management, all sorts of automation and developing front-end and back-end applications.",
"location": {
Expand Down

0 comments on commit b04bc14

Please sign in to comment.