Building Tailwind CSS Navbars - Responsive Too!

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Let's build Tailwind CSS Navbars. We will talk about overall strategy in building responsive navbars and also mobile navigation with Tailwind.
    CodePen: codepen.io/chris__sev/pen/QWG...)
    In Video: Chris Sev ( / chris__sev )
    0:00 Introduction
    1:05 Nav Structure
    2:30 Nav Container
    5:27 Nav Contents
    6:48 Logo
    9:16 Nav Items
    16:51 Centered Nav
    17:44 Mobile
    26:12 Conclusion
    To learn more about DigitalOcean: do.co/3XUjxDs
    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 #tailwind #css #tailwindCSSnavbars #tailwind #CSSnavigation #tailwindCSSresponsive
  • НаукаНаука

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

  • @freshhorizonswithjakub
    @freshhorizonswithjakub Год назад +5

    You win the prize in category: 'Amazing explanation of CSS design and tailwind'. Seriously, the value here for someone who maybe know react and is technical but needs to catch up on CSS is immense. The thinking process between the lines you say loud is key to to learn fast. Most people doing these vides do not get it I think.

  • @mschwanitz
    @mschwanitz Год назад +12

    Man this was super helpful. A lot of tutorials throw a mountain of stuff at you by cut/paste and “trust me bro, it works” approach. This helped me see the strategy of how to develop and the approach to using tailwind to position and style things. Easy sub!

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

    I was having a hard time with Tailwind CSS but this tutorial just shows me the scope of it.
    Great video

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

    Great video!
    I hope we can expect more videos about building Tailwind CSS components!

  • @BrettKromkamp
    @BrettKromkamp 8 месяцев назад

    Definitely one of the better (short) Tailwind tutorials on RUclips. Thanks 🙏

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

    Excellent presentation on Tailwind classes relating to build a responsive nav bar. Thanks!

  • @licokr
    @licokr 7 месяцев назад

    This is absolutely amazing. Not only learned Tailwind, strategies, how to design, why you weren't happy about some styles and how you dealth with them, all the way you coded I learned really a lot. Wow video, this has all benefits watching live coding. Thank you very much!

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

    Thanks for this excellent video! I'm a back-end developer, trying to decide on a front-end framework. Your video made me want to use Tailwind!

  • @marysoil3209
    @marysoil3209 5 месяцев назад

    This is my first time commenting on a RUclips video tutorial because this is so goooddddd! I must watch your other tutorials and I can really say I will learn a lot from you. I've never imagined this to be so simple! You made it look so easy to do! Great JOB!

  • @jaitjacob
    @jaitjacob 10 месяцев назад

    neat explaination Chris! always good to strategize before diving into implementation. I will be using your approach often.

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

    The best navBar tutorial I've EVER seen. Gj Bro.

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

    The use of the and elements are good practices in terms of accessibility.
    With them, screen reader users have feedback on how many elements of the same block exist and what they can do to interact.

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

    Thank you so much for explaining the strategies I love your teaching style. Yes, please make a video on more robust production-friendly menus!

  • @senatrius1968
    @senatrius1968 9 месяцев назад

    "Google does it so it's ok" is not a valid reason to ignore accessibility in 2023. If you're not going to use tags for nav links (although it is helpful, but not really necessary) then for the love of god, at least use tags for navigation, it's as basic as it gets. As someone who occasionally uses a screen reader, we shouldn't teach new developers to use tags for everything without a single thought behind it.
    Outside of that it's a good tutorial, better than most. A lot of tutorials just throw one thing after another at you with no explanation and all you know at the end is how to recreate the exact copy, not make something on your own. You actually take the time to go into detail and explain things really well. Great job.

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

    Super quality content right there! Thanks.

  • @jtunstopable
    @jtunstopable 6 месяцев назад

    I've been avoiding making my own nav for forever since I used to have bootstrap do it for me but I've been trying to get a handle on tailwind. Thank you

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

    the algorithm brought me here, really like your style and presentation man! Keep it up.

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

    Very nice, succinct and easy to follow. Thank you! Just wondering if using tailwind allows us to use a strategy where we dont use a duplicate menu. To have the desktop menu items change on mobile as opposed to have two completely separate menus.

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

    Excellent tutorial!!!

  • @gr1msasor14
    @gr1msasor14 8 месяцев назад

    nice tutorial dude tnx!!!!!

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

    Awesome job, i would use section once before divs. Like section id is main nav n mobile nav

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

    This video helped me a LOT, very well explained, easy to understand your reasoning, perfect video :) :)

  • @nicolaj-alexandermayer1754
    @nicolaj-alexandermayer1754 Год назад

    Absolut great!!
    Could you tell me/us we can dispay some text under the logo-image too?

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

    The Codepen link throws a 404. Is it possible to get the example somehow?

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

    I like your style and I’ve subscribed to your channel.
    The only thing I don’t like about this video is you have two different navbars, one for full screen and one for mobile devices.
    I always try to avoid having duplicate information to avoid problems down the road.

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

      Smart approach, Bill!

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

      @@DigitalOcean It can turn into an issue if the navbar is big with a lot of links.
      I’m learning Tailwind and your video helped me move forward.

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

    Great Video but I need one help. When the hamburger gets open I want it to replace with X (close) icon, Can you please tell me how to do it? When are you going to make other video for different navigation styles? more complex ones as well as which includes dropdown, social icons etc....

  • @Sinha.ritesh
    @Sinha.ritesh 5 месяцев назад

    outstanding

  • @randolphcarter8283
    @randolphcarter8283 10 месяцев назад

    thanks, just newbie with TW and give me a the ideas to approach this and refactor my code, i was doing a lot of work with js to show the mobile menu, and with hidden and breakpoints is just easy

  • @7073shea
    @7073shea Год назад

    thank you man

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

    THANKU SO MUCH

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

    Hi there, this is first time i discovered your channel with this video and I instantly liked your style! However, I was side by side practicing in my VS Code on my project and till the part where CSS was bring used I was following (my css code is inside my xxx.js file in return() and it is working as is here) however introduction of js from @24:00 when I implement it crashes when i use it, gives a null error if i start with the js script with it, however if i start my server first and then use the js code it works! What am I missing?

    • @crystinecullen3031
      @crystinecullen3031 9 месяцев назад

      document.addEventListener("DOMContentLoaded", () => {
      const btn = document.querySelector("button.mobile-menu-button");
      const menu = document.querySelector(".mobile-menu");
      btn.addEventListener("click", () => {
      menu.classList.toggle("hidden");
      });
      });
      This is what you need.

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

    Liked it.

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

    thank you

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

    the heck?
    so we still have to use JS for the hamburger menu thingy?
    bummer :(
    By the way, this was an amazing video!
    Even though I have been working in tailwind for the past 4 months, it was mostly just copy pasting codes
    Glad that you talked about the logic behind why you wrote those classes the way you did.

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

      can't we bypass the hamburger menu thingy from using javascript

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

    Helpful

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

    Thanks❤🙏🙏 dude

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

    Thanks, thanks

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

    Can you add accessibility?

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

    from @24:00 how do I use it in my vs code, it gives me a a null error if i start my script with this js code in it, however if i implement it in an already started server, it works. What am I missing?

    • @appstuff6565
      @appstuff6565 6 месяцев назад

      6 months later and still no response.

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

    Thanks for the tutorial. Codepen link is broken.

  • @user-cn1dk9iy7j
    @user-cn1dk9iy7j 7 месяцев назад

    source code?

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

    My digital ocean account is locked please help me regarding this

  • @arsnohachikoi1767
    @arsnohachikoi1767 10 месяцев назад

    404 codepen T.T

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

    My digital ocean account is locked please help me

  • @kacperkepinski4990
    @kacperkepinski4990 9 месяцев назад

    u use so weird font that i even cant find what u typed

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

    iam backend developer and i hate to create UI