Responsive Coming Soon page using HTML, CSS and JS

Solution retrospective
Hey, everybody! 👋
My solution is definitely not pixel perfect, but I tried to make it look pretty on both mobile and desktop! (I'll make the pixel perfect version very soon) It seems to work ok, I'm just not sure of the cleanliness of my code... Any feedback would be much appreciated!
Thank you and happy coding🤗
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Rabin92
Hey, Hoophelie! 👋
You have done a great job on this challenge! 🙌
The site is fully responsive and looks great on all screen devices. Nicely formatted code with semantic tags in use.
There's just a minor issue with an overlay as it does not fully expand to viewport size on a small screen landscape mode. To fix this issue, you can follow these steps:
Add this code to the body tag:
body { position: relative; }
Remove width & height property from
.overlay
class and add the following code instead:.overlay { top: 0; right: 0; bottom: 0; left: 0; }
And lastly remove
height
property from a small screen devices with the class name of.landscape-page
and add it to the media queries for amedium-large
screens.To fix the accessibility issues, you can simply add a
label tag
. Learn more about these tag here: https://www.w3schools.com/tags/tag_label.aspHope this helps and Happy Coding! 😊
- @ApplePieGiraffe
Hey there, Hoophelie! 👋
Nice to see you complete another challenge! 😀 Nice job on this one! 👏
One more tiny thing I might suggest in addition to Rabin92's helpful feedback is to perhaps add
overflow-x: hidden
to thebody
to prevent a horizontal scroll bar from appearing along the bottom of the screen in the mobile layout (or set the width of the image in the mobile layout to 100%, since the image is the element that's overflowing thebody
and causing this issue, and adding that seems to solve it). 😉Keep coding (and happy coding, too)! 😁
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