Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR CODE COMPONENT

rathmanjonathanโ€ข 30

@rathmanjonathan

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What I found difficult was the responsive aspect of it. Such as what do I add to what. I do have questions about best practices such as what I should generally do when approaching something in css like if I should apply a certain property a certain way every time.

Community feedback

Emmanuel Akpanโ€ข 790

@heisemmaco-dev

Posted

Hello ๐Ÿ‘‹, Well done on completing the challenge! ๐ŸŽ‰

I can see that the image you uploaded did show because you did upload the image file to your github respository and you didn't center conter in the middle because you did add min-height: 100vh to your body tag.

I hope this was helpful

0
Brandon Rordriguezโ€ข 300

@Mizunen

Posted

You can get your image to show up by putting ./images/image-qr-code.png .you could center your container by giving the body a height and width of 100vh. You make sites responsive by using media queries and putting your desired styles for whatever size inside it. Ex of media query. @media screen and (min-width:1440px){ .container{ Whatever styles you want } } }

I donโ€™t think this project really needs a media query though.

0
dimar hanungโ€ข 560

@dimar-hanung

Posted

Hello ๐Ÿ‘‹, Well done on completing the challenge! ๐ŸŽ‰

I have some interest and feedback with your code

That i like:

  1. HTML is pretty good, not too nested ๐Ÿ‘
  2. CSS Naming is also good, represent what is it for, likeย <div class="container">ย for wrap another element / html tag
  3. Responsive until galaxy fold screen size ๐Ÿ‘Œ

My Feedback and about your question:

  • I suggest you use html semantic convention, for exampleย <div class="container">ย toย <main class="container">, it will make it clearer, and will improve seo if you want to submit your website to google, i recomended this article:ย here

  • Youโ€™re forgot to push images maybe? or have problem to push the image to github? it causing image is not appear

  • You can make it center by adding min-height:100vh, make body styles into this

    body {
        background-color: hsl(212, 45%, 89%);
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
  • You can seperate file by folder to be more structured ( just developer preference, not a rule ), for example:

    public/
    โ”œโ”€ images/
    โ”‚  โ”œโ”€ qr-code-image.png
    โ”œโ”€ styles/
    โ”‚  โ”œโ”€ main.css
    โ”œโ”€ favicon.png
    index.html
    
    

anyways overall is good, nice solution for first chellange, hope it useful ๐Ÿ™Œ

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord