Responsive Side Navigation with Tailwind CSS and Alpine JS

Поделиться
HTML-код
  • Опубликовано: 30 апр 2021
  • In this video, we use Tailwind CSS and Alpine JS to build a responsive side navigation that is fixed on larger screens, but collapsible on smaller screens.
    Github Repository: github.com/ThirusOfficial/sid...
    Subscribe and stay tuned for tips, tutorials and more.
    Follow me on Twitter: / shrutibalasa
    Follow Thirus on Twitter: / thirusofficial
    Visit my website: www.shrutibalasa.com
    #tailwindcss #alpinejs #sidenav #responsive
  • НаукаНаука

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

  • @hectorbritodiaz9760
    @hectorbritodiaz9760 Год назад +2

    Tus videos, son los que siempre me ayudan. Gracias. TAILWIND RULES!!

    • @Thirus
      @Thirus  Год назад

      I only understood “thank you” from your comment 😊 So you’re welcome!

  • @gaton313
    @gaton313 Год назад +1

    Thanks for this tutorial. Looking forward to the full tutorial on Alpinejs 😍

  • @alexwakeup7098
    @alexwakeup7098 2 года назад +1

    Thanks to you my sidebar is working as expected! thank you for putting the repository on the description!

    • @Thirus
      @Thirus  2 года назад

      Very happy to know it helped 😊

  • @rezaanwar7851
    @rezaanwar7851 Год назад +2

    Great tutorial! Been putting off learning Tailwind until now. Thx! :)

    • @Thirus
      @Thirus  Год назад

      Tailwind is a game changer!

  • @J90JAM
    @J90JAM 3 года назад +1

    Your videos are always super helpful, keep them coming 👌

    • @Thirus
      @Thirus  3 года назад

      Sure, thank you 😊

  • @lutzgerken9634
    @lutzgerken9634 3 года назад +1

    Thank you very much. Your tutorials are very good. More of that, please.

    • @Thirus
      @Thirus  3 года назад

      Sure, thank you 😊

  • @jamesbest2221
    @jamesbest2221 2 года назад +2

    Fantastic! This was so helpful, thank you!

    • @Thirus
      @Thirus  2 года назад +1

      Happy to hear that :)

  • @mrprashant8144
    @mrprashant8144 2 года назад +1

    Great, i learned something new.... Subscribed

    • @Thirus
      @Thirus  2 года назад +1

      Nice, thank you

  • @rohanshah7960
    @rohanshah7960 3 года назад +2

    This was really great, and explained very well, most importantly a simple tutorial. I didn't know about your RUclips channel until Brad Traversy mentioned about it on Twitter, since then I've watched many of your videos, and boy they are so good, yet underrated. You're a big reason why I learnt TailwindCSS in the first place. I just had a suggestion: Could you also include dark styles for dark mode in your tutorials? Anyways Thank You for this 🤩🤩

    • @Thirus
      @Thirus  3 года назад +1

      Wow! Thanks for the amazing words of appreciation 😊
      I have a separate video for switching between dark and light mode. In my opinion, including it in every video will increase the duration and overwhelms the viewer with more concepts. But I’ll consider your feedback and try to include where it fits

  • @HeyNoah
    @HeyNoah 2 года назад +1

    Super cool! Great tutorial, thank you!

    • @Thirus
      @Thirus  2 года назад

      You’re welcome :)

  • @patlecat
    @patlecat 2 года назад +3

    Great tutorial, hope you will make more on tailwindcss and alpinejs in particular.

    • @Thirus
      @Thirus  2 года назад +1

      Made a few more. Hope you checked my other videos. Will make more too, thank you! 😊

    • @patlecat
      @patlecat 2 года назад +1

      @@Thirus Some, but I am specifically interested in those topics currently. Thanks again.

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    Awesome as always 👍😀

    • @Thirus
      @Thirus  3 года назад

      Thank you 😊

  • @iamaakashbasnet
    @iamaakashbasnet 3 года назад +1

    Thanks for the tutorial! 😊

    • @Thirus
      @Thirus  3 года назад +1

      You're welcome 😊

  • @stephenlau2845
    @stephenlau2845 3 года назад +1

    Excellence Tutorial, Thank You So Much....!

    • @Thirus
      @Thirus  3 года назад

      You’re welcome 😊

  • @thamibn
    @thamibn 2 года назад +2

    Nice tutorial can you please do a video showing us how we can make the side bar and top header to be fixed wen scrolling

  • @lazarflorentin9727
    @lazarflorentin9727 2 года назад +1

    Great! Thank you.

    • @Thirus
      @Thirus  2 года назад

      You’re welcome

  • @JohnCosly
    @JohnCosly 3 года назад +1

    Very helpful!

    • @Thirus
      @Thirus  3 года назад

      Glad it was helpful! :)

  • @vivekpaliwar7217
    @vivekpaliwar7217 2 года назад +1

    this is what i need yay :)

    • @vivekpaliwar7217
      @vivekpaliwar7217 2 года назад

      Is it possible when the sidebar in mobile version then I click the sidebar item like about us and collapse sidebar .

  • @pratikkeni
    @pratikkeni 3 года назад +2

    That was really good. Also do you suggest learning React or WordPress in this current situation ?

    • @Thirus
      @Thirus  3 года назад

      They are two very different things, depends on your end goal. DM me on Twitter to talk further

  • @danangponorogo166
    @danangponorogo166 3 года назад +2

    Hi , this is a great tutorial , however it would be perfect if you were willing to add a tutorial on how to create smooth transition sub menu within your side navigation ..

  • @sreekar_s
    @sreekar_s 3 года назад +2

    Great video as always 😊
    Just a nitpick, it would be great if you don't disable outline for buttons as it causes accessibility issues. I know that this video's focused on design. I just wanted to put this out for other viewers to make a note of this. Thank you🙏

    • @Thirus
      @Thirus  3 года назад +1

      I removed outline but added background. But yes, you’re right

  • @gessegoncalves6493
    @gessegoncalves6493 2 года назад +1

    Great

  • @AmitDas-yb3re
    @AmitDas-yb3re 3 года назад +1

    Great video. Easy to follow. Subscribe. One question how to purge past used classes that are not used anymore?

    • @Thirus
      @Thirus  3 года назад +1

      Stop the current script and build again, the unused classes will be gone.

    • @AmitDas-yb3re
      @AmitDas-yb3re 3 года назад +1

      @@Thirus Thanks.

  • @adisakjantrasopark7672
    @adisakjantrasopark7672 3 года назад +1

    thank you so much :)

    • @Thirus
      @Thirus  3 года назад

      You’re welcome!

  • @BilalSatellite
    @BilalSatellite 2 года назад +1

    Thanks

    • @Thirus
      @Thirus  2 года назад

      You’re welcome!

  • @juneddhanga3257
    @juneddhanga3257 3 года назад +1

    Great!
    But I've one question at this moment when you resize the browser window then sidebar style is quite disturbing so how could we avoid the same

    • @Thirus
      @Thirus  3 года назад

      You mean, on larger screens, you don’t want the sidebar to appear the way it is?
      Then just remove all the classes with prefix ‘lg:’ - you will have the same behaviour for all screen sizes then

  • @Bukratusi
    @Bukratusi 2 года назад +1

    when i add lg it works for only that screen size but not for all screen sized bigger than that. what to do?

    • @Thirus
      @Thirus  2 года назад

      That doesn’t happen. May be some other classes are affecting the behaviour

  • @PcHabitat
    @PcHabitat 2 года назад +1

    Hi, I was wondering, when the sidebar is open on smaller break points how can I make the rest of the screen dark like when opening a modal? I added a modal to this project you made, I think the z index may have messed up the lower portion of the side bar almost as if bleeded into the back ground so I added overflow-y-auto and that seemed to do the trick

    • @Thirus
      @Thirus  2 года назад

      Are you saying you found the solution?

    • @PcHabitat
      @PcHabitat 2 года назад +1

      @@Thirus Not really to be honest, unless I add overflow-y-auto it still bleeds into the rest of the content. I wish I could upload a screenshot

    • @Thirus
      @Thirus  2 года назад

      Could you DM on Twitter? twitter.com/shrutibalasa

  • @hansdampf10
    @hansdampf10 3 года назад +1

    Great Tutorial. You have a typo in your thumbnail.

    • @Thirus
      @Thirus  3 года назад

      Oh right! Thanks for pointing out

  • @kirantpatil123
    @kirantpatil123 3 года назад +1

    Hi, Do you have an rails example with alpinejs ?

    • @Thirus
      @Thirus  3 года назад

      Sorry, I don’t use Rails

  • @shashiupadhaya6703
    @shashiupadhaya6703 Год назад +1

    I had problem my css is not working on live server. can you help me?

    • @Thirus
      @Thirus  Год назад

      Sure. Send me a DM on Twitter @shrutibalasa with some more details.

  • @shayakdey6787
    @shayakdey6787 3 года назад +1

    Please make a video how to use tailwind css with sass..... I've been trying this for months....

  • @slayer5171
    @slayer5171 2 года назад

    How to set sidebar and navigation to fixed position but the content is scrollable?

    • @Thirus
      @Thirus  2 года назад

      Have you tried adding overflow-y: scroll to the sidebar? DM me on Twitter @shrutibalasa if you need more help

  • @nirmalthomas8838
    @nirmalthomas8838 3 года назад +1

    there is error when i apply npm run dev

    • @Thirus
      @Thirus  3 года назад

      What exactly is the error? DM me on Twitter if needed

  • @neerajsinghtangariya2587
    @neerajsinghtangariya2587 3 года назад

    Yes alpine is great for such these thing... that's the reason i ❤️ alpine...
    Ma'am i have one doubt...what does translate...and uses of this...?

    • @Thirus
      @Thirus  3 года назад

      Uses of translate is it? It is a CSS property used to move elements in x or y direction - mainly used for such animations

  • @stephenlau2845
    @stephenlau2845 3 года назад +1

    Yes, How to build a carousel with 3 images and they play Automatically use Alpine.js ? Thanks again....

    • @Thirus
      @Thirus  3 года назад +1

      Will see if I can create a CodePen for this

    • @stephenlau2845
      @stephenlau2845 3 года назад +1

      @@Thirus Thank You Very Much....

  • @mukuljain8383
    @mukuljain8383 3 года назад +1

    Make a video on how to install tailwind/jit with create react app please

    • @Thirus
      @Thirus  3 года назад

      Follow the same steps here - ruclips.net/video/gvknAnUgv3c/видео.html
      And then, in the tailwind.config.js, add this line before "purge" option
      mode: 'jit',

    • @mukuljain8383
      @mukuljain8383 3 года назад +1

      @@Thirus thank you you are the best ❤️

  • @robotprogrammer2902
    @robotprogrammer2902 2 года назад +1

    :)

  • @shocchosolutions6275
    @shocchosolutions6275 3 года назад

    Explain alpine store

  • @robotprogrammer2902
    @robotprogrammer2902 2 года назад

    :(