QR Code Component - Frontend Mentor Challenge

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 50

  • @nicoleallen5352
    @nicoleallen5352 2 ปีที่แล้ว +3

    wow this was so great and the steps were easy to follow, I recently joined frontend mentor and you have helped me immensely, this video was so helpful. Great job sir.

  • @fkndead454
    @fkndead454 2 ปีที่แล้ว +3

    Your style is awesome, I am going through your videos and learning quite a bit

  • @rc-wingman5719
    @rc-wingman5719 2 ปีที่แล้ว +2

    thanks. just registered to Frontend Mentor and looking at how submitting on the site works.
    Very cool and fast video. No faces, no blabla. Like your content!
    Why is no one using Dreamweaver for frontend work these days?
    Isn't it "the IDE" for this?
    5-15 years ago every web design company I knew used it for PHP, WordPress, and HTML-CSS work.

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว

      I'm glad you liked the video!
      I confess - this is the first time I'm hearing about Dreamweaver 😅

  • @paulonivar5678
    @paulonivar5678 ปีที่แล้ว +1

    Thank you very much for your tutorial, it was really helpful. Your tutorial helped me accomplish my goal and I learn a few new things along the way.

    • @tsbsankara
      @tsbsankara  ปีที่แล้ว

      I'm glad to hear that 😊

  • @biljeg
    @biljeg 2 ปีที่แล้ว +3

    Very good video, thank you for this quality of content.

  • @realityglitch9677
    @realityglitch9677 2 ปีที่แล้ว +1

    Thank you very much!!! You can't even imagine how much you helped me💪🏻🔥🙌🏻

  • @dilinyercastillo7129
    @dilinyercastillo7129 2 ปีที่แล้ว +2

    Thank you very much for this video!

  • @girijeshthodupunuri1300
    @girijeshthodupunuri1300 ปีที่แล้ว

    can you explain why you set the height to calc(100vh - 1px) for it to be vertically in the middle of screen?

    • @tsbsankara
      @tsbsankara  ปีที่แล้ว

      When you use flex to align items, you need to have a fixed height on the element so that it centres it within the parent element. In this case, we wanted the container to center in the middle, therefore we add a height of 100vh - 1px. We take away the 1px to allow for full support of the height on mobile screens, because smartphones don't correctly interpret vh units, but they have complete support for px.

  • @huynhnhutanhduy
    @huynhnhutanhduy 2 ปีที่แล้ว +1

    Excuse me, Why did you subtract 1px from 100vh in the body? I don't quite understand about that

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว +2

      Because on mobile devices, viewport heights are not properly supported, such that they cause the content to readjust every time that the viewport changes like when you scroll. So to avoid this behaviour, I use the calc() function and subtract a (negligible) amount of pixels so that the height evaluated by the browser is now in pixels and no longer in viewport heights.
      Makes sense?

    • @khaledMohamed-tp4wx
      @khaledMohamed-tp4wx หลายเดือนก่อน

      @@tsbsankara does this still happen when using vmin or dvh?

  • @florin7538
    @florin7538 2 ปีที่แล้ว +1

    Thanks for this video, it was helpful.

  • @avlodlar
    @avlodlar ปีที่แล้ว

    justify-content: center; height: calc(100vh - 1px);

  • @tetradhomes5022
    @tetradhomes5022 2 ปีที่แล้ว

    God bless you for this video.
    Been having problems on it

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว

      You are welcome 😊

  • @seanwalkerjr1864
    @seanwalkerjr1864 ปีที่แล้ว

    How did you get the images and index.html folders, please? Thank you

    • @tsbsankara
      @tsbsankara  ปีที่แล้ว

      I downloaded them from the challenge website

  • @wynez1
    @wynez1 ปีที่แล้ว

    I still don't quite get about height: calc(100vh - 1px); this part. I read your explanation from other comments here and understand this is to accommodate the mobile devices as the viewport is still not supported by mobile devices properly.
    But I'm using my desktop on my computer. If I did not put height: calc(100vh - 1px); in my CSS code, it does not center *vertically* properly.
    However, once I added it to the CSS code, it will center perfectly now.
    I don't understand this. I'm still using the same flexbox, same flex-direction, justify-content & align-items. I thought with that (flexbox), I can make it center perfectly. But I still have to add height: calc(100vh - 1px); to make it center perfectly. Why?

    • @wynez1
      @wynez1 ปีที่แล้ว

      I think I figured it out. Thomas' explanation still stands!
      I only realised, the height of the depends on its content. And because my content- the card which includes the image, the title and the paragraph do not take up the whole viewport, that's why my card does not center perfectly but it does center perfectly in the tag.
      But if I set my 's height to 100vh (which means taking up the whole viewport), my card will be in the center perfectly. And Thomas' code that minus 1px is just for mobile devices as mobile devices can interpret px (pixel) better and 1px does not change much in the position of the height cuz it's such a small amount.
      I'm glad I figured it out! Hope this helps anyone confused like me today.

    • @tsbsankara
      @tsbsankara  ปีที่แล้ว +1

      I understand the frustration - I also understand the relief when you finally figured it out 😁

  • @nicoleallen5352
    @nicoleallen5352 2 ปีที่แล้ว

    For some reason I'm seeing my styles.css like this -
    qr- code- component> # styles.css
    1 - with an empty row to enter codes.
    I don't know if I entered something by mistake and it came out like that. I can't see any of my Css at all.
    Please tell me there is a way for me to see my css again @styles.css. plse sir on the left under open editors plse sir, thanks much for all your help.

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว

      What happened that caused the css to disappear?

    • @nicoleallen5352
      @nicoleallen5352 2 ปีที่แล้ว

      @@tsbsankara I believe I pressed something I was hoping you can help me figure it out ...I know that it has to be there however bcus the qr code image shows up when I run the live server but it is positioned to the left of the page and the grey background is no longer there. Hoping this cleared up what I'm saying. Thanks for your help

  • @bengbeng2005
    @bengbeng2005 2 ปีที่แล้ว

    you didn't set width and height to the ".container", why it is not stretching on the window? and why did you set a margin on the body

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว +1

      Because I added the fixed width as a media query towards the end. Keep watching the video, or take a look at the repository - link in the description.
      Margin on the body to push the container inwards away from the edges.

  • @mostafaalaael-din2600
    @mostafaalaael-din2600 2 ปีที่แล้ว

    hello may i ask you why you set (height 100vh - 1px)?? what does it mean??

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว

      So, vh units are not properly supported on mobile because it causes the content on the website/web app to resize every time that the viewport height(vh) changes - and it changes when you scroll up or down on mobile. So to prevent this, I use the CSS function calc() and subtract a negligible amount of pixels, in this case 1px, which ensures that the evaluated height is now is pixels, which are so much better supported on mobile.
      Hope this helps :)

  • @nadeemdirkse
    @nadeemdirkse 6 หลายเดือนก่อน

    thanks bro ....im new at this and it was very helpfull

    • @tsbsankara
      @tsbsankara  6 หลายเดือนก่อน

      That's so nice to hear. I'm glad I could help

  • @islamicmotivation04u
    @islamicmotivation04u 2 ปีที่แล้ว +3

    Thank you for the detailed video sir

  • @MalikMuneeb32
    @MalikMuneeb32 ปีที่แล้ว

    When i write ( git init ) in powershell it gives error

    • @tsbsankara
      @tsbsankara  ปีที่แล้ว

      Try to run it as administrator. And also check whether you have git installed. If not, use command prompt

    • @MalikMuneeb32
      @MalikMuneeb32 ปีที่แล้ว

      @@tsbsankara Thx Bro

    • @MoadTechnologie
      @MoadTechnologie ปีที่แล้ว

      It worked thanks@@tsbsankara

  • @nicoleallen5352
    @nicoleallen5352 2 ปีที่แล้ว

    I'm stuck at terminal - how can I initialized git so that it can run like yours. Did you install a program?

    • @tsbsankara
      @tsbsankara  2 ปีที่แล้ว +1

      Check if you have Git installed by running the command `git --version` in your terminal. It should print out the current version of Git if you have it installed. If nothing prints out - or if it says something, "git is not recognized as an internal or external command" then go to git-scm.org to download and install it.
      About committing to the remote GitHub repository, you can follow the steps in the video, or go through the GitHub documentation on this link:
      docs.github.com/en/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github

    • @nicoleallen5352
      @nicoleallen5352 2 ปีที่แล้ว

      @@tsbsankara thanks, this is a great help

  • @villyaugust6439
    @villyaugust6439 2 ปีที่แล้ว

    Wonderful Thank you!!!

  • @codenamemoe9337
    @codenamemoe9337 2 ปีที่แล้ว

    Great video as usual.

  • @qrchina
    @qrchina 2 ปีที่แล้ว

    thank you brother

  • @renatollagas5711
    @renatollagas5711 2 ปีที่แล้ว

    Thank you sir!

  • @tryinghardfedev6962
    @tryinghardfedev6962 2 ปีที่แล้ว +1

    lol the ads.

  • @eminn_
    @eminn_ ปีที่แล้ว

    thx gj