loader & grand*

This commit is contained in:
Zakhar 2026-09-05 20:38:11 +03:00
parent 4965eb25d1
commit 68314e9d49
3 changed files with 6 additions and 0 deletions

BIN
images/broc-grandma.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
images/broc-grandpa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

View File

@ -106,6 +106,12 @@ function getAvatarSrc(user: User): string {
: '/images/broc-boy.png'; : '/images/broc-boy.png';
} }
if (user.age > 60) {
return user.gender === 'f'
? '/images/broc-grandma.png'
: '/images/broc-grandpa.png';
}
return user.gender === 'f' return user.gender === 'f'
? '/images/broc-woman.png' ? '/images/broc-woman.png'
: '/images/broc-man.png'; : '/images/broc-man.png';