How To Build a Reusable Sidebar (Next.js, Shadcn ui)

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 20

  • @orcdev
    @orcdev  2 месяца назад +3

    Join the Horde! Embrace the path of the dev warrior! Conquer all challenges! ⚔

  • @tchoutangbankouemichelfran5386
    @tchoutangbankouemichelfran5386 Месяц назад +1

    Yes i did apply it and it worked well.
    Currently I have 2 apps that i want to administrate, so by using this tutorial i was able to create 2 admins on the same project in separate folders. So using this technique it helps a lot.
    Thanks a lot dear :)

    • @orcdev
      @orcdev  Месяц назад +1

      So happy to hear that! Means a lot to me to know I really helped someone!
      If you need anything else for your apps just let me know.
      Thank you so much on such a wonderful comment! ⚔

    • @tchoutangbankouemichelfran5386
      @tchoutangbankouemichelfran5386 Месяц назад

      @@orcdev you could help us with Next Auth V5, on signin, signup with protected routes based on multiple roles. Protected routes acting on those sidebars you've built so far, so that if a user is an admin, or superadmin or client he might see a menu from the sidebar or not, if he has a particular role he might execute an action or not.
      That will be a dope addition to your great content :)

    • @orcdev
      @orcdev  Месяц назад +1

      @@tchoutangbankouemichelfran5386 Yes planning on doing something like that on the Orcish Fullstack Admin series!
      There are going to be multiple roles, and protected routes with NextAuth.
      It's this series:
      ruclips.net/video/W-Bd7nzzz3o/видео.html&ab_channel=OrcDev

  • @treyjapan
    @treyjapan 2 месяца назад

    Always learn new tidbits from your videos. Deeply appreciate your work @OrcDev!

    • @orcdev
      @orcdev  2 месяца назад

      Thank you very much for such a wonderful comment, really means a lot! ⚔️
      I hope all next videos are going to be useful to you too!

  • @ymddev
    @ymddev 2 месяца назад +1

    the value of your videos is insane ! Are you planning to make a video on state management (auth) with redux?

    • @orcdev
      @orcdev  2 месяца назад +5

      I am so glad you found my videos valuable! Thank you very much ⚔️
      Yeah, actually I was planning on building entire admin area (auth, roles, db data), but not sure about Redux, I would probably use Zustand to make state management more simple.
      Would that work for you, or you specifically want to learn Redux?

    • @ymddev
      @ymddev 2 месяца назад

      @@orcdev I'm in the process of creating a boilerplate to set up my new projects quickly. Not knowing how complex they will become, I assumed that I would manage the state with redux, which is a little more scalable.

    • @orcdev
      @orcdev  2 месяца назад +1

      @@ymddev In that case maybe it’s even better to choose state management tool based on the project, because Redux can often be an overkill 😅
      I’ll create a simple Redux implementation video! Hope it will help you out a little bit

    • @ymddev
      @ymddev 2 месяца назад

      @@orcdev I think I'll do that, and in any case I can always refactor afterwards! Thanks a lot!

    • @orcdev
      @orcdev  2 месяца назад +1

      @@ymddev You’re welcome! If you need anything else I am here! ⚔️

  • @brutalcodm4605
    @brutalcodm4605 Месяц назад

    Thanks buddy ❤

    • @orcdev
      @orcdev  Месяц назад

      @@brutalcodm4605 You’re welcome brother! ⚔️

  • @piyushshrestha3651
    @piyushshrestha3651 2 месяца назад +1

    For different links how does the sidebar work

    • @orcdev
      @orcdev  2 месяца назад +1

      You can create some array of objects outside of the components, and export it as ‘navItems’ for example.
      After that import it in both Sidebar and MobileNav and dynamically display that exported array as links, instead of currently hardcoded links.
      I can create a quick video on that one if you want? :D

    • @piyushshrestha3651
      @piyushshrestha3651 2 месяца назад

      @@orcdev thank you so much for your response keep up the good work Really appreciate it❤️❤️

    • @orcdev
      @orcdev  2 месяца назад

      @@piyushshrestha3651 You're welcome! Hope I helped! ⚔