add Bumhan Yu (@baadaa) && fix build failure on Person.js (#1227)

* 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`)
This commit is contained in:
Bumhan Yu 2021-09-07 14:04:10 -04:00 committed by GitHub
parent 841009aae5
commit 3aff65deee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 1 deletions

View file

@ -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`;

View file

@ -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',