VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
40 stars 69 forks source link

[Feature Request]: Adding login for admin #320

Closed MeetDOD closed 2 months ago

MeetDOD commented 3 months ago

Is there an existing issue for this?

Feature Description

Creating an additional parameter in the user model for isAdmin which is false for all users by default and a sign-in dashboard for admin users with a route /sign-in. once signed in the user can see a blank page for now.

Use Case

Admin flexibility.

Benefits

Admin usage

Add ScreenShots

No response

Priority

High

Record

github-actions[bot] commented 3 months ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

MeetDOD commented 3 months ago

@VaibhavArora314 if admin login it should navigate by default to dashboard but what about navbar what links you want on top ?

image

VaibhavArora314 commented 2 months ago

@VaibhavArora314 if admin login it should navigate by default to dashboard but what about navbar what links you want on top ?

image

you can add a basic navbar in a separate pull request

VaibhavArora314 commented 2 months ago

@MeetDOD instead of a navbar you can create a sidebar for logged-in users like you posted in #337 and for users which are not logged in, they only see sign in page

MeetDOD commented 2 months ago

@MeetDOD instead of a navbar you can create a sidebar for logged-in users like you posted in #337 and for users which are not logged in, they only see sign in page

Ya I do that only but the default navbar which user can see what about it, should i show all the fields or just the dashboard only ?

VaibhavArora314 commented 2 months ago

@MeetDOD instead of a navbar you can create a sidebar for logged-in users like you posted in #337 and for users which are not logged in, they only see sign in page

Ya I do that only but the default navbar which user can see what about it, should i show all the fields or just the dashboard only ?

after login, the user should only be able to see dashboard since there is nothing else in the admin panel other than the dashboard. user and posts can easily be integrated in panel.

MeetDOD commented 2 months ago

@VaibhavArora314 you can close this as admin login is done !

github-actions[bot] commented 2 months ago

Hello @MeetDOD! Your issue #320 has been closed. Thank you for your contribution!