plebbit / plebbit-react

A GUI for plebbit
https://plebbitapp.eth.limo
GNU General Public License v2.0
35 stars 6 forks source link

Use subplebbit.suggested.avatarUrl and subplebbit.suggested.bannerUrl for subplebbit images #263

Closed estebanabaroa closed 1 year ago

estebanabaroa commented 1 year ago

The subplebbit object has some image URL properties that can be configured:

subplebbit.suggested? = {
  primaryColor?: string
  secondaryColor?: string
  avatarUrl?: string
  bannerUrl?: string
  backgroundUrl?: string
}

There are already places in the UI for avatarUrl and bannerUrl so they should be used already. The mock content already has these values and some of the default subs also have them like https://ipfsgateway.xyz/ipns/12D3KooWNMybS8JqELi38ZBX897PrjWbCrGoMKfw3bgoqzC2n1Dh