Create a Side Nav with Tailwind - And It's Responsive!

Поделиться
HTML-код
  • Опубликовано: 7 июн 2024
  • Let's build a side navigation with Tailwind. Similar to building a top navigation, creating a side navigation with Tailwind uses a lot of flexbox and important Tailwind classes.
    CodePen: codepen.io/chris__sev/pen/RwK...
    In Video: Chris Sev ( / chris__sev )
    0:00 Introduction
    1:18 Starting HTML
    2:19 Sidebar Styles
    8:07 Hovering Links
    10:24 Responsive
    12:00 Mobile Menu
    14:45 Click to Show Nav
    16:48 Conclusion
    To learn more about DigitalOcean: www.digitalocean.com/
    Follow us on Twitch: / digitaloceantv
    Follow us on Twitter: / digitalocean
    Like us on Facebook: / digitaloceancloudhosting
    Follow us on Instagram: / thedigitalocean
    We're hiring: grnh.se/aicoph1
    #WebDevelopment #javascript #tailwindCSS #tailwindCSStutorial #tailwindnavbar #tailwindtutorial #howtousetailwind #tailwindCSSnavbar #tailwindCSSsidenav #tailwindCSSmobilenav #tailwindCSSsidebar
  • НаукаНаука

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

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

    thank you very much! this helped me for my thesis, thank you

  • @nyashachiroro2531
    @nyashachiroro2531 2 года назад +4

    This is a very useful series. Nav bars are one of the most difficult parts of a website to implement. Thank you.

  • @christiant5512
    @christiant5512 3 месяца назад

    This is a great tutorial. A followup deep-dive into responsive design would be awesome. A video talking about classes like "translate-x-full" and what they are doing behind the scenes.
    Tailwind offers a lot of ways to do something, and generally they offer advantages and disadvantages. It would be great to hear the thought process behind why you use the classes you do for your desired effects

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

    It was really helpful just what I need. Man really thanks for your Hard Work

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

    Thank you so much for this. Exactly what I needed. Cheers

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

    Amazing tutorial!!!!! I'll never build any other Navbar different 😄

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

    Works like a charm with Vue! Thanks!

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

    Love this!

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

    Thank you very much!

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

    Hi! Is there an approach to close the mobile menu by tapping anywhere outside that block?

  • @ruiaraujo4004
    @ruiaraujo4004 11 месяцев назад +1

    The only problem is when the main content needs to have a scroll bar, the navbar scrolls as well. Any solution?

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

    Thank you...!

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

    how to create a responsive navbar with search bar?

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

      We have a tutorial on navbars here: ruclips.net/video/miiPsBlqMns/видео.html

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

    The toggle function is not working !!!!

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

      document.addEventListener('DOMContentLoaded', () => {
      const btn = document.querySelector('.mobile-menu-button');
      const mobileMenu = document.querySelector('.mobile-menu');
      btn.addEventListener('click', () => {
      mobileMenu.classList.toggle('-translate-x-full');
      });
      });