mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
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:
parent
841009aae5
commit
3aff65deee
2 changed files with 32 additions and 1 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
31
src/data.js
31
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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue