MLH-Fellowship / SocioMark

A social media platform that lets you upload images and secures them by embedding a personalised hash.
https://sociomark.netlify.app
MIT License
16 stars 8 forks source link

Edit Profile in UserProfile #84

Open aitikgupta opened 3 years ago

aitikgupta commented 3 years ago

We can reuse CreatePost with the right handler to Edit a user's profile Bio and Profile Picture. Currently #82 does not implement this yet.

Sameerkash commented 3 years ago

Hey!, me and @suhanichawla would like to work on this. Please assign us.

aitikgupta commented 3 years ago

Sure @Sameerkash! Relevant entrypoint would be https://github.com/MLH-Fellowship/SocioMark/blob/main/frontend/src/Components/UserProfile.js

And this specific line: https://github.com/MLH-Fellowship/SocioMark/blob/8ecdf24ab14f09a1daa2ea5eb99901624e6057cc/frontend/src/Components/UserFeed.js#L53

Sameerkash commented 3 years ago

@aitikgupta Can we use this endpint? @router.patch("/update", response_description="Update user from the database")

Sameerkash commented 3 years ago

And we're a bit stuck with the styling, what resources should we use? we're guessing its tailwind, but not entirely sure as we don't see any CSS. Could you help? @aitikgupta

aitikgupta commented 3 years ago

Yes, it's Tailwind! Their docs are pretty extensive I believe.

Ping @bodhisha, could you send some useful links?

bodhisha commented 3 years ago

@Sameerkash Yea.. Its same as normal css just that we use shortcuts inside the classname="" of div. Say, if we need to add padding to a div just add classname="p-4". Similarly everything works.. Their official documentation is pretty good.. If you need any help with this.. Just let me know