From 3aff65deee89652fc4b912987ab2b9a63438969b Mon Sep 17 00:00:00 2001 From: Bumhan Yu Date: Tue, 7 Sep 2021 14:04:10 -0400 Subject: [PATCH] add Bumhan Yu (@baadaa) && fix build failure on `Person.js` (#1227) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add B * Update Person.js to prevent Netlify Build failing Prevent Netlify Build from failing when there's a data entry no `twitter` key. ([See this log](https://app.netlify.com/sites/suspicious-bardeen-7965c7/deploys/6123362c272db900081ce8da) as an example — #157: `WebpackError: TypeError: Cannot read property 'replace' of null`) --- src/components/Person.js | 2 +- src/data.js | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/components/Person.js b/src/components/Person.js index 6270d572..c5d71681 100644 --- a/src/components/Person.js +++ b/src/components/Person.js @@ -24,7 +24,7 @@ function useIntersectionObserver(ref) { export default function Person({ person, currentTag }) { const url = new URL(person.url); - const twitter = `https://unavatar.now.sh/twitter/${person.twitter.replace('@', '')}`; + const twitter = person.twitter ? `https://unavatar.now.sh/twitter/${person.twitter.replace('@', '')}` : null; const website = `https://unavatar.now.sh/${url.host}`; const unavatar = person.twitter ? `${twitter}?fallback=${website}` : website; const img = `https://images.weserv.nl/?url=${unavatar}&w=100&l=9&af&il&n=-1`; diff --git a/src/data.js b/src/data.js index 261d9288..d320b273 100644 --- a/src/data.js +++ b/src/data.js @@ -1,6 +1,37 @@ // keep it commonjs export // Data is validated against the following schema https://github.com/wesbos/awesome-uses/blob/master/scripts/utils.js#L53-L68 module.exports = [ + { + name: 'Bumhan "B" Yu', + description: + '"B" as in bald. Designer who writes code—with backgrounds in psychology and linguistics', + url: 'https://bald.design/uses', + twitter: '@baadaa', + emoji: '🦲', + country: '🇺🇸', + computer: 'apple', + phone: 'iphone', + tags: [ + 'Bald', + 'Web Developer', + 'Front End', + 'JavaScript', + 'TypeScript', + 'Designer', + 'Design Systems', + 'UI/UX', + 'JAMstack', + 'Netlify', + 'React', + 'Gatsby', + 'Next', + 'Figma', + 'SCSS', + 'CSS', + 'HTML', + 'Styled-Components', + ], + }, { name: 'Yassine Bridi', description: 'Developer, Designer, Creator',