GoneRogueProductions / dispatch-issues

dispatch.ml issues
https://dispatch.ml
1 stars 0 forks source link

can we use dicebear for the profile pictures in the new version #11

Closed thisiscoding1234 closed 1 year ago

thisiscoding1234 commented 1 year ago

https://github.com/dicebear/dicebear

thisiscoding1234 commented 1 year ago

https://dicebear.com/playground

thisiscoding1234 commented 1 year ago

http request: https://api.dicebear.com/5.x/identicon/svg?seed=Peanut&backgroundType=gradientLinear&backgroundColor=ffdfbf,ffd5dc,d1d4f9,c0aede,b6e3f4

thisiscoding1234 commented 1 year ago

html <img src="https://api.dicebear.com/5.x/identicon/svg?seed=Peanut&backgroundType=gradientLinear&backgroundColor=ffdfbf,ffd5dc,d1d4f9,c0aede,b6e3f4" alt="avatar" />

thisiscoding1234 commented 1 year ago

js npm install @dicebear/core @dicebear/collection --save import { createAvatar } from '@dicebear/core'; import { identicon } from '@dicebear/collection';

const avatar = createAvatar(identicon, { "seed": "Peanut", "backgroundType": [ "gradientLinear" ], "backgroundColor": [ "ffdfbf", "ffd5dc", "d1d4f9", "c0aede", "b6e3f4" ] });

const svg = avatar.toString();

thisiscoding1234 commented 1 year ago

cli npm install --global dicebear dicebear identicon . \ --seed 'Peanut' \ --backgroundType 'gradientLinear' \ --backgroundColor 'ffdfbf' 'ffd5dc' 'd1d4f9' 'c0aede' 'b6e3f4'

thisiscoding1234 commented 1 year ago

html img src="https://api.dicebear.com/5.x/identicon/svg?seed=Peanut&backgroundType=gradientLinear&backgroundColor=ffdfbf,ffd5dc,d1d4f9,c0aede,b6e3f4" alt="avatar"

thisiscoding1234 commented 1 year ago

the options are now in the repository