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

Refresh: About - seperate components of "hero" #15510

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephaniehobson
Copy link
Contributor

@stephaniehobson stephaniehobson commented Nov 15, 2024

One-line summary

Early drafts of the manifesto page show the 3 pieces of the "hero" being re-used in different combinations. This PR pre-emptivly separates them into more independent components.

Significant changes and points to review

  • separate about "hero" into 3 components (intro, feature, picto)
  • add alternate white and black backgrounds
  • move image from m24/about folder to mozorg/about/m24
  • optimize community and manifesto images

Issue / Bugzilla link

#14893

Testing

http://localhost:8000/en-US/about/ with refresh switch on

Note: this will thoroughly break the homepage if #15508 has not merged. That's okay. It's expected. #15508 will fix it

- seperate about "hero" into 3 components (intro, feature, pictos)
- add alt white and black backgrounds
- move images from m24/about folder to mozorg/about/m24
- optimize community and manifesto images
@stephaniehobson stephaniehobson added Needs Review Awaiting code review Frontend HTML, CSS, JS... client side stuff Refresh 🦖 Work related to the 2024 site refresh labels Nov 15, 2024
@stephaniehobson stephaniehobson requested a review from a team as a code owner November 15, 2024 23:52

<div class="m24-t-light-alt">
<div class="m24-c-content">
<ul class="m24-t-columns-four">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

From here down the contents of this file is pretty much the same as the old hero.html include.

}
}

// columns
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This column code is the same as before I separated the files.


// picto

.mzp-c-picto {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The picto code is mostly the same as before I separated the files. I switched to using the grid() function to calculate max-width.

max-width: grid(9);
}
}

Copy link
Contributor Author

@stephaniehobson stephaniehobson Nov 15, 2024

Choose a reason for hiding this comment

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

I wasn't sure if I should move the column and picto code to their own .scss file or not. It's not being used anywhere else YET. And it's code that hangs off Protocol classes. Maybe it can stay here until the manifesto page is created and we know what is and is not reused.

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.71%. Comparing base (e4df84e) to head (4037a08).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15510   +/-   ##
=======================================
  Coverage   78.71%   78.71%           
=======================================
  Files         156      156           
  Lines        8197     8197           
=======================================
  Hits         6452     6452           
  Misses       1745     1745           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend HTML, CSS, JS... client side stuff Needs Review Awaiting code review Refresh 🦖 Work related to the 2024 site refresh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant