Advice generator app with JS concepts like Async Await Fetch & Promise
Design comparison
Solution retrospective
Learnt about what promises are, how async/await works on the surface, how to write simple beginner fetching-functions and all that good stuff!
Community feedback
- @asbhogalPosted over 1 year ago
Hi Pranjali - this is a really good project, well done!
I've noticed however than soon after the page renders, the container shifts to the bottom. This is due to the
grid-template-rows: 1fr auto
on thebody
which is adding another row above the container. If you remove this, it should now be shifted centrally (you also havedisplay: grid
listed twice in your stylesheet, you can omit one of them).The footer will still be above as before, but you can amend this by removing the
grid-row-start
andgrid-row-end
properties on the.footer
. Also, you can remove theflex-shrink
property, as this has no effect ifdisplay: flex
isn't set.Hope this helps!
Marked as helpful1
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