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

Responsive landing #31

Merged
merged 14 commits into from Oct 12, 2022
Merged

Responsive landing #31

merged 14 commits into from Oct 12, 2022

Conversation

daniellemaxwell
Copy link
Contributor

@daniellemaxwell daniellemaxwell commented Oct 10, 2022

Scope of changes

Changes to form, header, and navbar to make landing page responsive. Added logo to navbar.

Additional changes to make: Prevent H2 text in header from going below the element. Improve footer's responsiveness.

Fixes SC-9809

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Acceptance criteria

Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

@codecov
Copy link

codecov bot commented Oct 10, 2022

Codecov Report

Merging #31 (c5ceb11) into main (d8085b2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #31   +/-   ##
=======================================
  Coverage   52.19%   52.19%           
=======================================
  Files          43       43           
  Lines        3257     3257           
=======================================
  Hits         1700     1700           
  Misses       1367     1367           
  Partials      190      190           
Flag Coverage Δ
unittests 52.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@daniellemaxwell daniellemaxwell marked this pull request as ready for review October 10, 2022 21:47
Copy link
Contributor

@bbengfort bbengfort left a comment

Choose a reason for hiding this comment

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

The responsive behavior of the site is much improved, very nice work!

I did notice a couple of things during my review that I thought I'd point out to see if we could fix or create stories for if necessary.

I am glad we're going to a single column when we move down to xs or sm screens. However, we probably should make the font smaller and still give a bit of margin on the side. Does tailwind have the feature functionality to do this?

Screen Shot 2022-10-11 at 15 55 49

Also when you collapse the screen then go back to a larger screen it looks like the navbar isn't repaired; possible the function that adds the class isn't being called again?

Screen Shot 2022-10-11 at 15 55 13

Finally, we probably do want the hero to be in a centered container so it doesn't leave the positioning from the rest of the application (e.g. it stays on the left while the rest of the content is centered):

Screen Shot 2022-10-11 at 15 56 13

It seems like tailwind should handle most of this stuff; doesn't their grid system handle a lot of this behavior automatically?

@@ -0,0 +1,9 @@
/* Toggles between adding and removing the "responsive" class to topnav when the user clicks on the hamburger icon */
export default function myFunction() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend that we use a more descriptive function name; perhaps toggleResponsiveClass?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That sounds good!

web/ensign-landing-page/src/components/layout/Footer.js Outdated Show resolved Hide resolved
Comment on lines +13 to +17
<img
className="w-full absolute inset-y-0 left-0 lg:h-full lg:w-full lg:max-w-none"
src={footer}
alt="Illustration of a blue lighthouse on the left hand side."
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to make this a background image and then use the same wrapper effect with tileable blue waves as we did in the header. Can we create a story to do that here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was planning on creating a story for this. Edwin said that he'll create a tileable blue wave for the footer. Once that's ready, I'll update the footer.

@daniellemaxwell
Copy link
Contributor Author

I can make the text smaller and add some margin to the side. When I write the style in the className, that’ll be for the xs screens and then I can adjust for screens that are bigger.

Edwin provided a tileable wave to use for the for header. I'll create a story to add it along with placing the hero within a container. Tailwind's grid system should handle a lot of the positioning. I'll take a look through the docs again.

@daniellemaxwell
Copy link
Contributor Author

The header text has been amended for smaller screens so that it's now a little smaller and some spacing was added. I'll have to update the state for the mobile nav's state and create stories regarding the hero image and making the footer a background image.

Copy link
Contributor

@bbengfort bbengfort left a comment

Choose a reason for hiding this comment

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

Thank you for making these changes! Let me know when you're ready to merge and I can deploy the app.

@daniellemaxwell daniellemaxwell merged commit 919004f into main Oct 12, 2022
@daniellemaxwell daniellemaxwell deleted the responsive-landing branch October 12, 2022 17:01
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.

None yet

2 participants