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

TwoParagraphBlock: Update styling for Volunteer page variant. #302

Merged
merged 1 commit into from Jan 10, 2022

Conversation

richardxia
Copy link
Member

@richardxia richardxia commented Jan 4, 2022

Fixes #271.

The changes include:

  • Allow for a white background (via theme prop)
  • Making the image span both rows for the Volunteer page variant
  • Eliminating the "first paragraph" <div> if no paragraph1 is passed in
  • Removing unnecessary differences between the Volunteer page and About
    Us page variants of the components

There's still a bit of oddness due to differences in the design between
the About Us and the Volunteer pages, but this isn't adding any further
discrepancies.

Since the CSS for this component is pretty tricky and there are significant differences in styling between the About Us page and Volunteer page versions, I manually checked both pages on both laptop and mobile sized screens, just to make sure there weren't any issues. Here are a few screenshots of what this now looks like:

About Us

Screen Shot 2022-01-03 at 9 15 19 PM

Volunteer

Screen Shot 2022-01-03 at 9 21 25 PM

The changes include:

- Allow for a white background (via theme prop)
- Making the image span both rows for the Volunteer page variant
- Eliminating the "first paragraph" <div> if no paragraph1 is passed in
- Removing unnecessary differences between the Volunteer page and About
  Us page variants of the components

There's still a bit of oddness due to differences in the design between
the About Us and the Volunteer pages, but this isn't adding any further
discrepancies.

.image1Wrapper {
margin-bottom: -142px;
@media (--laptop-and-up) {
Copy link
Member

Choose a reason for hiding this comment

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

Ahh I see, very clever here actually.

@richardxia
Copy link
Member Author

Thanks!

@richardxia richardxia merged commit 9d9b95e into main Jan 10, 2022
@richardxia richardxia deleted the 271-update-two-paragraph-block branch January 10, 2022 06:52
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.

Update TwoParagraphBlock
2 participants