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

Refines the navbar and adds a footer #1686

Merged
merged 25 commits into from
Feb 8, 2025
Merged

Refines the navbar and adds a footer #1686

merged 25 commits into from
Feb 8, 2025

Conversation

johnclary
Copy link
Member

@johnclary johnclary commented Jan 31, 2025

Associated issues

screencapture-deploy-preview-1686-vision-zero-nextjs-netlify-app-crashes-2025-02-04-14_10_33

Testing

URL to test: Netlify

How does it look?


Ship list

  • Check migrations for any conflicts with latest migrations in main branch
  • Confirm Hasura role permissions for necessary access
  • Code reviewed
  • Product manager approved

@johnclary johnclary added the WIP Work in progress label Jan 31, 2025
@johnclary johnclary changed the base branch from main to john/20013-app-theme January 31, 2025 18:04
@johnclary johnclary changed the title Adds sticky navabar and footer Refines the navbar and adds a footer Jan 31, 2025
@johnclary johnclary changed the base branch from john/20013-app-theme to nextjs February 4, 2025 18:19
Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for vision-zero-nextjs failed.

Name Link
🔨 Latest commit 055d673
🔍 Latest deploy log https://app.netlify.com/sites/vision-zero-nextjs/deploys/67a50d69066d6a0008003504

))}
</ListGroup>
</div>
<div style={{ height: "100vh", overflow: "hidden" }} className="d-flex">
Copy link
Member Author

@johnclary johnclary Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i reworked the layout to lean fully into flexboxes. each colored box in this image is using flex-column and flex-grow to ensures that the main content is always fully expanded and the footer is pushed to the bottom.

Screenshot 2025-02-04 at 1 46 35 PM

this works around issues with relying purely on 100% height, and is my preferred approach versus another common way of dealign with sticky headers and footers, which is to use absolute positioning plus some hidden elements or hardcoded margins to keep the main content from being obscured.

it does preclude us from being able to do this blur effect without some CSS trickery that i couldn't quite get right. if you notice in that screenshot, the right vertical scrollbar is actually obscured/underneath the sticky nav. this is why i backed away from that version of the navbar, despite it looking quite nice and fancy. i'm sure we could make it work, but it was proving to be enough of a challenge for me to revert to the boring gray navbar 😖

you can rollback to this commit to see the transparent nav.

// https://isotropic.co/tool/hex-color-to-css-filter/
.app-brand-img {
filter: sepia(10%) contrast(130%);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, this is a hack to recolor the VZ logo. would be good to repaint it to match our dark color

@johnclary johnclary removed the WIP Work in progress label Feb 4, 2025
@@ -8,7 +8,6 @@ import { GET_CRASH, UPDATE_CRASH } from "@/queries/crash";
import { UPDATE_UNIT } from "@/queries/unit";
import { UPDATE_PERSON } from "@/queries/person";
import { useQuery } from "@/utils/graphql";
import AppBreadCrumb from "@/components/AppBreadCrumb";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the breadcrumb is now part of the outer layout and is going to be "on" by default everywhere. it has logic inside so that it doesn't render on top-level pages.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

app/package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "0.1.0",
"version": "2.5.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎊

Copy link
Contributor

@roseeichelmann roseeichelmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love these changes! i really like the light grey color for the footer/nav bar. its nice to give the app some depth. i also rly like this new logo compared to the one we had before.

i tested switching out the navbar icon with the yellow logo like i mentioned in this PR but now im not sure if its too distracting? idk i like what you have now a lot curious what others think i just thought it could bring some color into the app. i dont think i like the 3D-ness of this yellow one its hard to see when its so little

Screenshot from 2025-02-05 14-59-53

i also tested pulling that light grey color in the navbar into the headers but now i wonder if it looks too matchy matchy and idk if i like it. maybe if the injury indicators box wasnt also the same color. but i am not attached to the headers needing a background color

Screenshot from 2025-02-05 14-53-49

yellow icon w header background

Screenshot from 2025-02-05 14-58-31

@johnclary
Copy link
Member Author

Rose—thanks for all your feedback here and in the app theme PR.

i think i'd prefer to get these current changes into main and start a new branch/issue where we revisit all this, with a focus on bringing some life to the app and nixing the powder background that everyone hates.

@johnclary johnclary changed the base branch from nextjs to main February 6, 2025 19:30
@johnclary
Copy link
Member Author

johnclary commented Feb 7, 2025

oops—i did not mean to push my dark mode commits here 😭 i will clean it up :/

Copy link

netlify bot commented Feb 7, 2025

Deploy Preview for atd-vze-staging ready!

Name Link
🔨 Latest commit 55e384c
🔍 Latest deploy log https://app.netlify.com/sites/atd-vze-staging/deploys/67a6a0271868b70008c5d842
😎 Deploy Preview https://deploy-preview-1686--atd-vze-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johnclary johnclary merged commit 2ab265b into main Feb 8, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants