RizkyRajitha / linkin

Linkin is a customizable self hosted link tree platform.
https://linkindemo.vercel.app/
MIT License
78 stars 22 forks source link

Editable avatar border colors #31

Closed RizkyRajitha closed 2 years ago

RizkyRajitha commented 3 years ago

currently avatar border color is hard coded to #fff color .

This has to be dynamic, so that the users can customize the color .

The new form input for color should be under the Colors tab in the dashboard

rough workflow

  1. add new form Input with color type (use bootstrap), https://github.com/RizkyRajitha/linkin/blob/f92d38cb6eb07bcba3f445db568ccb76f50819f3/components/colorform.js#L99

and register it with the react-form-hook register method passed avatarBorderColor . destructure avatarBorderColor variable . (refer the existing implementation) https://github.com/RizkyRajitha/linkin/blob/f92d38cb6eb07bcba3f445db568ccb76f50819f3/components/colorform.js#L12

  1. add new column to the pagedata relation in prisma with name avatarBorderColor and type String? @db.VarCharhttps://github.com/RizkyRajitha/linkin/blob/4f982b43707c20e8c55e7a98d5e800cdaae5199e/prisma/schema.prisma#L26 .

  2. migrate the modified prisma schema prisma doc . (when migration dev you will need permission to create databases , if such problem occurs use docker postgres instance ).

  3. destructure the new avatarBorderColor variable and the pass it to the styles
    https://github.com/RizkyRajitha/linkin/blob/4f982b43707c20e8c55e7a98d5e800cdaae5199e/components/linkinthebiopage.js#L161

  4. test whether everything works.

avatarborder

irffanasiff commented 2 years ago

Can you assign this issue to me.

RizkyRajitha commented 2 years ago

hi @demonicirfan , you have assigned to #33 issue .

davidzcode commented 2 years ago

Hi, I would like to participate in this issue

RizkyRajitha commented 2 years ago

hi @davidzcode , appreciate your interest to contribute , i assigned this issue to you.

RizkyRajitha commented 2 years ago

@davidzcode
everything works great , i merged the pr and now it's live on dev branch 👌 .

davidzcode commented 2 years ago

Nice to hear that 🔥 Your explanation of workflow was very helpfully 😄