feat: Update avatar URLs in Avatar and LoginModal components

This commit is contained in:
Florian Briand 2024-09-24 20:36:17 +02:00
parent 345190dfeb
commit 9307469817
Signed by: florian_briand
GPG Key ID: CC981B9E6B98E70B
2 changed files with 11 additions and 10 deletions

View File

@ -17,6 +17,7 @@
if (user.avatar) { if (user.avatar) {
return user.avatar; return user.avatar;
} }
return 'https://avatar.iran.liara.run/username?username=' + user.name; // return 'https://avatar.iran.liara.run/username?username=' + user.name;
return 'https://i.pravatar.cc/150?u=' + user.name;
}; };
</script> </script>

View File

@ -29,15 +29,15 @@
const users: User[] = [ const users: User[] = [
{ id: 1, name: 'John Doe', avatar: 'https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp' }, { id: 1, name: 'John Doe', avatar: 'https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp' },
{ id: 2, name: 'Jane Doe', avatar: 'https://avatar.iran.liara.run/public' }, { id: 2, name: 'Jane Doe', avatar: 'https://i.pravatar.cc/150?u=JANEDOE728' },
{ id: 3, name: 'Michel Moulin', avatar: '' }, { id: 3, name: 'Michel Moulin' },
{ id: 4, name: 'Jean Paris', avatar: '' }, { id: 4, name: 'Jean Paris' },
{ id: 5, name: 'Marie Dupont', avatar: '' }, { id: 5, name: 'Marie Dupont' },
{ id: 6, name: 'Émilie Fournier', avatar: '' }, { id: 6, name: 'Émilie Fournier' },
{ id: 7, name: 'Pierre Lefevre', avatar: '' }, { id: 7, name: 'Pierre Lefevre' },
{ id: 8, name: 'Sophie Lemoine', avatar: '' }, { id: 8, name: 'Sophie Lemoine' },
{ id: 9, name: 'Lucie Simon', avatar: '' }, { id: 9, name: 'Lucie Simon' },
{ id: 10, name: 'Kevin Boucher', avatar: '' }, { id: 10, name: 'Kevin Boucher' },
]; ];
const loginModal = useTemplateRef('login_modal'); const loginModal = useTemplateRef('login_modal');