-
Notifications
You must be signed in to change notification settings - Fork 920
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
base: main
Are you sure you want to change the base?
Conversation
- 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
|
||
<div class="m24-t-light-alt"> | ||
<div class="m24-c-content"> | ||
<ul class="m24-t-columns-four"> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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
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