From 93074698177188ea140aec73d2c0055ceeb3e2e2 Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Tue, 24 Sep 2024 20:36:17 +0200 Subject: [PATCH] feat: Update avatar URLs in Avatar and LoginModal components --- frontend/components/Avatar.vue | 3 ++- frontend/components/LoginModal.vue | 18 +++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend/components/Avatar.vue b/frontend/components/Avatar.vue index e4f24e4..ccd075e 100644 --- a/frontend/components/Avatar.vue +++ b/frontend/components/Avatar.vue @@ -17,6 +17,7 @@ if (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; }; diff --git a/frontend/components/LoginModal.vue b/frontend/components/LoginModal.vue index 030e5b8..37c5c21 100644 --- a/frontend/components/LoginModal.vue +++ b/frontend/components/LoginModal.vue @@ -29,15 +29,15 @@ const users: User[] = [ { 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: 3, name: 'Michel Moulin', avatar: '' }, - { id: 4, name: 'Jean Paris', avatar: '' }, - { id: 5, name: 'Marie Dupont', avatar: '' }, - { id: 6, name: 'Émilie Fournier', avatar: '' }, - { id: 7, name: 'Pierre Lefevre', avatar: '' }, - { id: 8, name: 'Sophie Lemoine', avatar: '' }, - { id: 9, name: 'Lucie Simon', avatar: '' }, - { id: 10, name: 'Kevin Boucher', avatar: '' }, + { id: 2, name: 'Jane Doe', avatar: 'https://i.pravatar.cc/150?u=JANEDOE728' }, + { id: 3, name: 'Michel Moulin' }, + { id: 4, name: 'Jean Paris' }, + { id: 5, name: 'Marie Dupont' }, + { id: 6, name: 'Émilie Fournier' }, + { id: 7, name: 'Pierre Lefevre' }, + { id: 8, name: 'Sophie Lemoine' }, + { id: 9, name: 'Lucie Simon' }, + { id: 10, name: 'Kevin Boucher' }, ]; const loginModal = useTemplateRef('login_modal');