The project was good to practice my flexbox skills. The overlay effect over the image was the obstacle. I made a research and I found a solution, but I would like to know if there is a better way to do this effect.
-About your font question, I agree with srayala42! Downloading the fonts would unnecessarily add more size to your folder! If you are new to this approach, this link shall help you with it: https://www.youtube.com/watch?v=qgmLDPLApBY
Can't wait to see more projects from you! Keep it up π
Hello there! π€
Awesome work on the project π
On this project, media queries are not mandatory! Simply setting the width of the QR Code to like 300px should make it look great on all devices! π
I also would like to point out that the styles are not shown when i preview your website! I am not sure what is the cause of that problem, but probably something with the file placement in the github folder or other issue happened while uploading! π€
In addition to what Hatem mentioned, consider decreasing the width & height of the main; also try to slightly decrease your font-sizes. π
Keep up the great work! ππ
Hello there! π€
Your project looks awesome! π
Regarding the font size and colors, make sure you check out the style-guide file within the project's downloaded zip-file! It should contain all the information you need to know about the colors & fonts. It must be one of them π¨
Also for your text element, you set its (margin: 80px auto 80px auto;) If you replace that with just (margin: 80px auto), it will generate the same result! π
Keep up the great work!π I hope you find this to be helpful π
Hello there! π€
Awesome job on your project! ππ
Responding to your question, to center a div vertically you simply set its parent's display to flex, then you set its align-items to center; if you want to center it horizontally, set the justify-content to center.
-You already used this method on your project, which is awesome!; however, there is a shorter way to center a div horizontally and vertically! Simply set its parent's display to grid, then add the (place-items: center) property to the parent! This leads to the same result with one less line of code!
Keep up the great work! Hope you find this helpful! π
When you set the max-width of the main-box to 43%, this compressed the content inside it because the width will decrease the more the screen size decreases! If you set the max-width to like 600px (300px for the media query), now the main-box will hold its ground in smaller screen sizes! π€
When you set the height of the main-box to 25rem, the main-box cannot give more space for its content when the screen size decreases, resulting in content overflowing! If you replace the height with min-height (In desktop & in media query), it will adaptively increase the height of the main-box under pressure! π
Keep up the awesome work! I hope you find this helpful π
For a first project, this is fabulous work! ππ
I do have some suggestions for you: π€
Try setting the border-radius of the QR Box & the image as the same value (for example 20px) would be more consistently looking . Using pixels for border-radius is common practice! π
Setting the image's weight and height with different values will make it look a bit uneven! try just setting the width to 100% and not setting the height to a specific value. If you follow that by removing the margins of the image, it should take the size of the QR Box! π
To set some space between the image and the QR Box, simple add a padding (for example 1rem) to the QR Box. π
I hope you would find these improvements helpful! π
Keep up the awesome work! ππ
I wonder, is it possible to position the main div in the exact center of the viewport, while keeping the row of text at the bottom of the page?
I don't want to center it using position: absolute, as there are side effects on small screens in landscape mode - elements can overlap, and the top of the main div is hidden and it's not possible to scroll up to see the top. (The second issue happens also when centering with flexbox properties justify-content: center and align-items: center, that's why I didn't use them either.)
Awesome work there mate!
I do have one tip for you which was very hard to recognize! In some screen sizes of the desktop version, the home section is not perfectly aligned with your nav bar.
Other than that, I think your solution is one of the best I've seen so far! I also love the way your hamburger menu smoothly slides up and down XD