Tailwind CSS Tutorial #2 - HTML Template

Поделиться
HTML-код
  • Опубликовано: 5 июл 2020
  • Hey gang, in this tailwind css tutorial we'll create the base html template for our project, so that in future lessons we can just focus on tailwind classes.
    Full html template - github.com/iamshaunjp/tailwin...
    🐱‍👤🐱‍👤 JOIN THE GANG -
    / @netninja
    ----------------------------------------
    🐱‍💻 🐱‍💻 My Udemy Courses:
    + Modern JavaScript - www.thenetninja.co.uk/udemy/m...
    + Vue JS & Firebase - www.thenetninja.co.uk/udemy/vu...
    + D3.js & Firebase - www.thenetninja.co.uk/udemy/d...
    🐱‍💻 🐱‍💻 Course Files:
    + github.com/iamshaunjp/tailwin...
    + Full html template - github.com/iamshaunjp/tailwin...
    🐱‍💻 🐱‍💻 Other Related Free Courses:
    + • HTML & CSS Crash Cours...
    Download node.js - nodejs.org/en/
    Get VS Code - code.visualstudio.com/

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

  • @alex__coder
    @alex__coder 3 года назад +75

    For lazy 😴 guys like me -
    Emmet shortcut for the template:
    div>(div>nav>(div>h1)+ul>(li>a>span)*4)+main>(div>a*2)+(header>h2+h3)+(div>h4)+(div>div>img+div>span*2)*4+div>div
    just fill it and use it 👍

    • @pandahacker789
      @pandahacker789 3 года назад +6

      You're an absolute legend

    • @alex__coder
      @alex__coder 3 года назад +5

      @@pandahacker789 Thanks for the appreciation.
      still learning ..😊

    • @yungifez
      @yungifez 3 года назад +4

      You are a crazy guy lol

    • @rax_4real618
      @rax_4real618 3 года назад +4

      Press F for respect *LEGEND*

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

      WoW Who will use this, lazy fakers, no ur just annoying

  • @Olejoss1906
    @Olejoss1906 8 месяцев назад +3

    Love that you showed explicitly all HTML you create along with a comment. Really appreciate it

  • @tn9753
    @tn9753 3 года назад +6

    The basics spelled out clearly. Well done. Thank you.

  • @TheKamble
    @TheKamble 4 года назад +47

    Shaun, do you ever take a break😂😂anyways always good to see an update from you. Very hardworking...

    • @NetNinja
      @NetNinja  3 года назад +37

      Haha, sometimes. Luckily I just really enjoy coding & learning, so I don't always see it as work.

    • @TheKamble
      @TheKamble 3 года назад +14

      @@NetNinja You are the definition of inspiration mate. Keep it up.

  • @jumzeey
    @jumzeey 3 года назад +6

    Netninja with tailwind!!!, seems like I'm in heaven, thanks for kicking this off

  • @Naruto-id1gl
    @Naruto-id1gl Год назад +5

    To spin up a auto build add in package.json file
    "build-css":"tailwindcss build src/style.css -o public/style.css",
    "watch":"tailwindcss build src/style.css -o public/style.css --watch"
    in terminal run the command:
    npm run watch

  • @kumarkshitij24
    @kumarkshitij24 3 года назад +14

    Shaun! i have been watching your tutorials since last three months.. i kind of been through all the playlist you made.... for me literally these lessons and contents are like blessings.... all the lessons are super well explained and its just brilliant... you are very hardworking.
    p.s - can you please make a separate playlist on docker.. ! :)

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

    I love this. i am just so excited!

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

    Best teacher to learn web dev from!!

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

    Man thumbs up to you I owe you big for helping me all this time with php css js react you name it!!

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

    Yesssss, thats what i was looking for. hanks for helping

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

    @The Net Ninja What styles did you use to remove the default browser settings?

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

    What is the difference from using the VS Code live server vs the npm live server? I tried googling it but got nothing. It appears they do the same thing.

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

    Thanks for the html template!

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

    Respect to your good work, thanks a lot

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

      Much appreciated! Thanks Moisés.

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

    I come here first for tutorials , keep it up !

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

    Thank you for your hardwork

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

    Thank you teacher 🙏🏻

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

    What is the color theme that you were using in the tutorial?

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

    Thanks alot sir!!!!

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

    Question : Is the live server extension in vs code basically the same thing as the live server package you downloaded at 7min into the video?

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

    thanks much!

  • @user-eu9rf4nt9c
    @user-eu9rf4nt9c Месяц назад

    Nice bro👌❤️❤️

  • @charles-adriangitonga2332
    @charles-adriangitonga2332 7 месяцев назад

    Just a slight observation; You didn't include the tailwind.config.js file where content to be processed by tailwindcss is determined

  • @yasha6466
    @yasha6466 4 месяца назад +1

    Some updates in 2024:
    1. In terminal run
    > npm install -D tailwindcss
    > npx tailwindcss init
    npx creates a tailwind.config.js, but you nee to change the content file path manually
    2. In package.json
    "scripts": {
    "build-css": "tailwindcss -i ./src/styles.css -o ./public/styles.css",
    "watch-css": "tailwindcss -i ./src/styles.css -o ./public/styles.css --watch"
    },
    Run "npm run watch-css". This enables tailwind changes from html to be shown live

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

    Wooohooo!

  • @PaulBrownclk-me
    @PaulBrownclk-me 3 года назад

    Live server can also be installed as an extension inside vsCode 🤪

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

    Thank you

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

    Emmet for the cards:
    div>(figure>img+figcaption>span{TITLE}span{Recipe By Dude})

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

    thank you

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

    Awsome guy

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

    thanks!

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

    which vscode theme is that?

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

    thank you so much sir

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

      You're welcome Raj! :) thanks for watching

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

    Please i can't see the course file on GitHub can you help

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

    Where do we get the pictures?

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

    First time caller first time listener. The content is great but im having to pausse at every sentence as my guy is moving at lightning speed

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

    What if i use the cdn?

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

    why is the live-server public have error on me

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

    my bro loves divs

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

    i support everyo one who talk abou coding

  • @jklabay
    @jklabay 4 месяца назад

    Can you help me my tailwind wont work with my php

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

    My index.html in the browser won't update with the image and also other updates aren't taking place and I can't figure out why. Did anyone else have trouble with this?

    • @Naruto-id1gl
      @Naruto-id1gl Год назад

      To spin up a auto build add in package.json file
      "build-css":"tailwindcss build src/style.css -o public/style.css",
      "watch":"tailwindcss build src/style.css -o public/style.css --watch"
      in terminal run the command:
      npm run watch

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

    I'm following everything to the letter. But this does not work:
    WHY?!

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

    Please it’s not working,my text are still in black,please help

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

    Semantic html fam, its the new ting, yea

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

    9:13 live-server public

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

    its not removing the default browser styles as in video

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

      Silly mistake, i named the file styles.css and linked style.css

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

    live-server : File C:\Users\Izzham\AppData\Roaming
    pm\live-server.ps1 cannot
    be loaded because running scripts is disabled on this system. For more
    information, see about_Execution_Policies at
    https:/go.microsoft.com/fwlink/?LinkID=135170.
    At line:1 char:1
    + live-server public
    + ~~~~~~~~~~~
    + CategoryInfo : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    it come out like this , when i wrote live-server public . Did anyone know how to overcome this .

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

    We need a roadmap to follow your channel content?

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

    Bro VS Code Theme name please

  • @shivamb.3973
    @shivamb.3973 2 года назад

    "let me copy my dude" - net ninja

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

    why so many divs?

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

      I was just about to type this

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

    7th..!

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

    Wrong use of title tags, their use is SEO, not markup.

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

    Hey, hitting a block here, i'm getting the following error in the console:
    Not allowed to load local resource: styles.css
    Does anyone know a work around for this?

  • @Munchen888
    @Munchen888 Месяц назад +5

    Anyone in 2024?

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

    a div inside of a div inside of a div...

  • @prafulrane3591
    @prafulrane3591 Год назад +4

    Anyone in 2023

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

    Too many nested divs.

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

    {2024-04-18}

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

    Anyone in 2024😅