Design comparison
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
- @heisemmaco-devPosted over 1 year ago
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 - @MizunenPosted over 1 year ago
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-hanungPosted over 1 year ago
Hello ๐, Well done on completing the challenge! ๐
I have some interest and feedback with your code
That i like:
- HTML is pretty good, not too nested ๐
- CSS Naming is also good, represent what is it for, likeย
<div class="container">
ย for wrap another element / html tag - 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 thisbody { 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 GitHubJoin 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