mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
use twitter for avatar first, then website
This commit is contained in:
parent
4952064e63
commit
3c550c57d1
1 changed files with 4 additions and 1 deletions
|
|
@ -24,7 +24,10 @@ function useIntersectionObserver(ref) {
|
|||
|
||||
export default function Person({ person, currentTag }) {
|
||||
const url = new URL(person.url);
|
||||
const img = `https://images.weserv.nl/?url=https://unavatar.now.sh/${url.host}&w=100&l=9&af&il&n=-1`;
|
||||
const twitter = `https://unavatar.now.sh/twitter/${person.twitter}`;
|
||||
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`;
|
||||
|
||||
return (
|
||||
<PersonWrapper>
|
||||
|
|
|
|||
Loading…
Reference in a new issue