Closed RizkyRajitha closed 2 years ago
Can you assign this issue to me.
hi @demonicirfan , you have assigned to #33 issue .
Hi, I would like to participate in this issue
hi @davidzcode , appreciate your interest to contribute , i assigned this issue to you.
@davidzcode
everything works great , i merged the pr and now it's live on dev branch 👌 .
Nice to hear that 🔥 Your explanation of workflow was very helpfully 😄
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 thedashboard
rough workflow
and register it with the react-form-hook
register
method passedavatarBorderColor
. destructureavatarBorderColor
variable . (refer the existing implementation) https://github.com/RizkyRajitha/linkin/blob/f92d38cb6eb07bcba3f445db568ccb76f50819f3/components/colorform.js#L12add new column to the
pagedata
relation in prisma with nameavatarBorderColor
and typeString? @db.VarChar
https://github.com/RizkyRajitha/linkin/blob/4f982b43707c20e8c55e7a98d5e800cdaae5199e/prisma/schema.prisma#L26 .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 ).
destructure the new
avatarBorderColor
variable and the pass it to the styleshttps://github.com/RizkyRajitha/linkin/blob/4f982b43707c20e8c55e7a98d5e800cdaae5199e/components/linkinthebiopage.js#L161
test whether everything works.