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: use Firefox brand fonts on some Firefox pages [fix #15542] #15569

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

craigcook
Copy link
Member

One-line summary

Keeps Firefox branding on whatsnew, welcome, and campaign pages (mainly for the fonts).

This is admittedly a bit hacky and loads extra fonts so it's a performance hit, but doing it "properly" would probably entail a more significant refactoring of the nav and footer as well as some global styles. We should tackle that at another time.

Issue / Bugzilla link

#15542

Testing

Test a handful of whatsnew and welcome pages with the M24_WEBSITE_REFRESH switch on; make sure the text is rendered in Metropolis and Inter. The footer should use the new Mozilla fonts (only English gets the new footer; other languages get the old footer for now).

http://localhost:8000/firefox/125.0/whatsnew/
http://localhost:8000/firefox/132.0/whatsnew/
http://localhost:8000/firefox/133.0/whatsnew/
http://localhost:8000/firefox/welcome/1/
http://localhost:8000/firefox/welcome/10/

Firefox for Families page; make sure the page body has Metropolis and Inter, and the nav and footer render in Mozilla fonts (and don't otherwise break).

http://localhost:8000/firefox/family/

Nothing Personal page should use Firefox fonts and Mozilla fonts in the footer (this page has no nav):

http://localhost:8000/firefox/nothing-personal/

Challenge the Default page should use Firefox fonts, but this is an odd one because currently it's not available in English but the new Mozilla fonts are English-only. That logic will change soon so this is a pre-emptive strike.

http://localhost:8000/firefox/challenge-the-default/

@craigcook craigcook added Needs Review Awaiting code review Review: XS Code review time: up to 30min Refresh 🦖 Work related to the 2024 site refresh labels Nov 26, 2024
@craigcook craigcook requested a review from a team as a code owner November 26, 2024 17:35
@janbrasna
Copy link
Contributor

@stephaniehobson stephaniehobson self-assigned this Nov 26, 2024
Copy link
Contributor

@stephaniehobson stephaniehobson left a comment

Choose a reason for hiding this comment

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

A deceptively easy solution!

I think we should merge #15571 and then rebase this to use the same switches that look for locale activation.

@craigcook
Copy link
Member Author

There are also firstrun pages for some channels:

Oh good catch, I'll update these as well.

- Use Fluent activation
- Add Nightly and Dev whatsnew and firstrun pages
- Add Built For You campaign pages
@craigcook
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting code review Refresh 🦖 Work related to the 2024 site refresh Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants