#27 - separate fields for name and surname

This commit is contained in:
Adrian Hopek
2022-01-24 12:06:36 +01:00
parent e147d24365
commit 816af23ce4
17 changed files with 125 additions and 48 deletions

View File

@@ -29,11 +29,11 @@ class UserAvatarGenerator
protected function generate(User $user): SVG
{
return $this->generator->rounded()
->background($this->getColor($user->name))
->background($this->getColor($user->fullName))
->color("#F4F8FD")
->smooth()
->fontSize(0.33)
->generateSvg($user->name);
->generateSvg($user->fullName);
}
protected function getColor(string $name): string