Huddle Landing Page With Single Introductory Section
Design comparison
Solution retrospective
All Feedback are Welcome!!
Community feedback
- @MelvinAguilarPosted over 1 year ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- For the alt attribute of the logo, use the company name as the alt description. The words "images" or "logo" are not necessary.
- The social media icons should be links (<a>) and contain the <i> element inside.
- Use rem or em instead of pixels for font-size, this way the font size will adapt based on the user's browser settings.
- Add two dots instead of one to display the image correctly, as the CSS file is inside a folder. For example:
background-image: url(../images/bg-desktop.svg);
I hope you find it useful! π
Happy coding!
4 - @0xabdulkhaliqPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
BODY MEASUREMENTS π:
- Use
min-height: 100vh
forbody
instead ofheight: 100vh
. Setting theheight: 100vh
may result in the component being cut off on smaller screens.
- For example; if we set
height: 100vh
then thebody
will have100vh
height no matter what. Even if the content spans more than100vh
of viewport.
- But if we set
min-height: 100vh
then thebody
will start at100vh
, if the content pushes thebody
beyond100vh
it will continue growing. However if you have content that takes less than100vh
it will still take100vh
in space.
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
0 - @HassiaiPosted over 1 year ago
To make the background-image of the body visible, add
./
to the beginning of the url valueurl(./images/bg-mobile.svg)
instead of url(images/bg-mobile.svg).To center .card on the page using flexbox, replace the height in the body with
min-height: 100vh
.Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here and here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
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