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

Refactor: update existing sections #489

Merged
merged 12 commits into from
Nov 20, 2023
Merged

Refactor: update existing sections #489

merged 12 commits into from
Nov 20, 2023

Conversation

angela-tran
Copy link
Member

@angela-tran angela-tran commented Nov 14, 2023

Closes #467

Top section

  • Update "Explore this site to find support..." copy
  • Remove copy "Contracts update!"
  • Remove copy "U.S. public transit providers, we have news for you..."
  • Add View Contracts button in new style

Lower sections

  • Remove map section
  • Remove "Modernize your fare collection system" section
  • Implement design for "What is Cal-ITP" section
  • Implement design for "Get in touch" section

@angela-tran angela-tran self-assigned this Nov 14, 2023
Copy link

netlify bot commented Nov 14, 2023

Deploy Preview for cal-itp-mobility-marketplace ready!

Name Link
🔨 Latest commit aca607c
🔍 Latest deploy log https://app.netlify.com/sites/cal-itp-mobility-marketplace/deploys/655b9c43e2575e0008435212
😎 Deploy Preview https://deploy-preview-489--cal-itp-mobility-marketplace.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.

@angela-tran
Copy link
Member Author

I finished implementing the items that are in scope for #467.

Something that needs clarification @segacy1 @thekaveman: the spacing on the current site and the spacing shown in Figma do not match. Is this an intentional design update that we should be implementing as a part of this homepage effort?

The current spacing is using some odd values, and I don't know where these came from; they must've been based on something though, right? They were added just a few months ago.

image

image

image

image

The spacing in Figma looks to me like it's based off the 8-pt system, so it seems more aligned with how we've said we want to do spacing.

image

image

This change should be its own ticket if it's confirmed that we're supposed to be implementing this.

@segacy1
Copy link

segacy1 commented Nov 14, 2023

Hi @angela-tran! Yes, this does follow the 8-pt grid. Whenever I create new designs for mobimart or calitp.org, I automatically update with that design framework. I know we never discussed that explicitly for the homepage dev work though—I'll do a better job noting that when we're scoping in the future. If we can create a new ticket for updating the spacing in backlog that would be great

Also, I think you might be looking at my design sandbox. The design for implementation is here.

@angela-tran
Copy link
Member Author

Thank you @segacy1 — that is all very very helpful context

Re:

If we can create a new ticket for updating the spacing in backlog that would be great

This sounds good to me

Also, I think you might be looking at my design sandbox. The design for implementation is here.

Oh yes, you're right that I was looking at a page under "DESIGN_____". I was looking there because it's linked from the description for #463 (comment). Thanks for pointing this out. I can reference the one you linked

@angela-tran angela-tran marked this pull request as ready for review November 14, 2023 20:40
@angela-tran angela-tran requested a review from a team as a code owner November 14, 2023 20:40
@angela-tran angela-tran marked this pull request as draft November 14, 2023 23:30
@angela-tran angela-tran changed the title Refactor: hero section updates Refactor: update existing sections Nov 14, 2023
@angela-tran angela-tran marked this pull request as ready for review November 15, 2023 19:18
@angela-tran
Copy link
Member Author

angela-tran commented Nov 15, 2023

In Figma, I see that the content for the lower sections ("What is Cal-ITP?" and "Get in touch") are more or less vertically
centered.

image

The current CSS that we use to lay out these sections are imaged-sections and don't result in vertical centered-ness.

image

I have ideas on how to do it with Bootstrap's grid, which is really using CSS Flexbox, but the imaged-section--X classes are using CSS grid, so I'm not sure how to tweak this. @machikoyasuda or @vlad do you have ideas?

@angela-tran
Copy link
Member Author

Or another thought: is the current spacing good enough for now until we take #490?

@thekaveman
Copy link
Member

thekaveman commented Nov 16, 2023

Or another thought: is the current spacing good enough for now until we take #490?

Yeah I'm OK to wait to handle spacing all at once.

Though I wonder how hard it would be in this PR to align the hero image with the two section images (or make the hero image slightly smaller to match)? They are just a bit off:

image

@angela-tran
Copy link
Member Author

Though I wonder how hard it would be in this PR to align the hero image with the two section images (or make the hero image slightly smaller to match)? They are just a bit off:

This was a good catch, and the change for it was pretty straightforward: b6f1677

That style rule was from a much older version of the design (#275), so I think it's fine to just remove it

@thekaveman
Copy link
Member

Hmm @angela-tran I think we may have gone slightly the other way now? The two section images are larger (square) than the hero one now (same width, smaller height):

image

image

@machikoyasuda
Copy link
Member

@angela-tran Haven't had a chance to really dig into this but:

  • On Figma, all 3 images are the same height/width of 424 x 366
image
  • BUT(!) the images are cropped WITH white-space, so that the image width matches the grid columns of 4 columns.

So one way to approach the image width/column horizontal spacing issue is to re-export the images with the white space, make sure the images are the same dimensions and stick it in the somewhat overeengineered CSS Grid situation that Mobi Mart already has.

@angela-tran
Copy link
Member Author

@machikoyasuda I came to the same conclusion and re-exported the images from Figma. Glad we were thinking the same

@machikoyasuda
Copy link
Member

Small thing, could be done in a future ticket - but it is just a one-line deletion:

image

These as now have an underline created by a border-bottom, making them extra thick and also further down lower.

But Figma has nice normal regular underlines now.

Which can be done by removing that border-bottom declaration:
image

It's extra-jarring because the super-thick border is touching the text from the line below, and getting really tight/messy to read.

@thekaveman
Copy link
Member

thekaveman commented Nov 16, 2023

@mrose914 can you please verify copy changes on the homepage (does not include the new sections, just edits to existing copy): https://deploy-preview-489--cal-itp-mobility-marketplace.netlify.app/

Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

Code and visuals LGTM

@angela-tran
Copy link
Member Author

angela-tran commented Nov 16, 2023

Sorry, I just noticed there are some things in the mobile view that need to be fixed. - Fixed in 1645fc0

  • Sizing of hero title
  • Centering titles for lower sections
Current preview site Figma
image

@angela-tran
Copy link
Member Author

Small thing, could be done in a future ticket - but it is just a one-line deletion:
...
These as now have an underline created by a border-bottom, making them extra thick and also further down lower.

But Figma has nice normal regular underlines now.

Which can be done by removing that border-bottom declaration:
...
It's extra-jarring because the super-thick border is touching the text from the line below, and getting really tight/messy to read.

@machikoyasuda I went ahead and made this change in a1441ca

Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

Nice catch on the mobile titles. Looks like we need one more small change on mobile for centering the images:

image

image

In the browser devtools I changed the following and it worked:

.imaged-section__image {
  justify-content: space-around;
}

This also looks OK on the normal view so maybe we just add this style in?

@angela-tran
Copy link
Member Author

This also looks OK on the normal view so maybe we just add this style in?

@thekaveman Sounds good to me, thanks!

Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

Nice work!

@angela-tran angela-tran merged commit 76f073c into main Nov 20, 2023
5 checks passed
@angela-tran angela-tran deleted the refactor/hero-updates branch November 20, 2023 18:05
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.

Homepage: Update existing copy / delete sections
4 participants