Use unavatar instead of Clearbit API

Closes #376 

unavatar.now.sh uses clearbit API logo (and more providers) under the hood.

Also, the fallback image is customizable, e.g., https://unavatar.now.sh/daftpunk?fallback=https://i.imgur.com/0d1TFfQ.jpg
This commit is contained in:
Kiko Beats 2020-01-14 13:36:40 +01:00 committed by GitHub
parent 6b98ada961
commit 3fd511f4d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ import * as icons from '../util/icons';
export default function Person({ person, currentTag }) {
const url = new URL(person.url);
const img = `https://logo.clearbit.com/${url.host}`;
const img = `https://unavatar.now.sh/${url.host}`;
return (
<PersonWrapper>
<PersonInner>