Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Floating Footer with Sticky Footer & Error Handling Fix #17

Merged
merged 31 commits into from
Apr 10, 2020

Conversation

zshafiqu
Copy link
Owner

Fixed an issue where on tall screens, the footer would float with a bunch of whitespace. Spent some time ironing out CSS and JS issues to develop some code that updates the last section on a page if the viewport exceeds the size of real content. See stickyfooter.js to see the vanilla JS I wrote to solve this issue.

Also, I didn't have proper error handling set up before. If you went to a non-existent route, the default Flask handler would take care of it. This time, I set up a dedicated error handling route to keep things consistent.


The new error page!

Screen Shot 2020-04-09 at 9 17 00 PM

Before and after of footer handling

Screen Shot 2020-04-09 at 9 16 49 PM
Screen Shot 2020-04-09 at 9 16 40 PM

…e footer, or if I want to apply push to the last element on a page
…d to manipulate the last section's style properties to account for any overflow
…eupon leading the JS to miscalc the total body height
@zshafiqu zshafiqu self-assigned this Apr 10, 2020
@zshafiqu zshafiqu added the bug Something isn't working label Apr 10, 2020
@zshafiqu zshafiqu merged commit a1ffd51 into master Apr 10, 2020
@zshafiqu zshafiqu deleted the sticky-footer branch April 11, 2020 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant