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

footer refresh #14967

Merged
merged 1 commit into from
Sep 11, 2024
Merged

footer refresh #14967

merged 1 commit into from
Sep 11, 2024

Conversation

wen-2018
Copy link
Collaborator

@wen-2018 wen-2018 commented Aug 16, 2024

One-line summary

Significant changes and points to review

Issue / Bugzilla link

#14830

Testing

To enable newsletter sign up form in the footer for a page, add the following:

{% block site_footer %}
  {% with show_newsletter=True %}
    {% include 'includes/protocol/footer/footer.html' %}
  {% endwith %}
{% endblock %}

@wen-2018 wen-2018 added the WIP 🚧 Pull request is still work in progress label Aug 18, 2024
@stephaniehobson stephaniehobson added the Refresh 🦖 Work related to the 2024 site refresh label Aug 19, 2024
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.84%. Comparing base (d39708b) to head (79580fb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14967   +/-   ##
=======================================
  Coverage   77.84%   77.84%           
=======================================
  Files         162      162           
  Lines        8464     8464           
=======================================
  Hits         6589     6589           
  Misses       1875     1875           

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

@wen-2018 wen-2018 force-pushed the refresh-footer branch 10 times, most recently from 5817c47 to 7a4842a Compare August 29, 2024 14:23
@wen-2018 wen-2018 added Frontend HTML, CSS, JS... client side stuff and removed WIP 🚧 Pull request is still work in progress labels Aug 29, 2024
@wen-2018 wen-2018 marked this pull request as ready for review August 29, 2024 14:33
@wen-2018 wen-2018 marked this pull request as draft August 29, 2024 17:07
@wen-2018 wen-2018 force-pushed the refresh-footer branch 3 times, most recently from af952ed to 2e7af1e Compare August 29, 2024 20:29
Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

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

I know this is still a draft, but I left a few suggestions / comments that I hope might be helpful. Happy to chat further if you have any questions :)

media/img/logos/mozilla/footer-refresh/mozilla-2x.png Outdated Show resolved Hide resolved
l10n/en/footer-refresh.ftl Outdated Show resolved Hide resolved
l10n/en/footer-refresh.ftl Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
@wen-2018 wen-2018 force-pushed the refresh-footer branch 6 times, most recently from 704d781 to dd41ded Compare September 3, 2024 20:37
Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

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

Updates are looking good! I took a closer pass at the CSS / styling and noted a few visual issues. Please let me know if anything I've said doesn't make sense!

bedrock/base/templates/base-protocol-mozilla.html Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/base/footer-refresh.scss Outdated Show resolved Hide resolved
@wen-2018 wen-2018 added the WIP 🚧 Pull request is still work in progress label Sep 4, 2024
@wen-2018 wen-2018 force-pushed the refresh-footer branch 2 times, most recently from 4c493cc to f9f97a8 Compare September 5, 2024 14:48
@wen-2018 wen-2018 marked this pull request as ready for review September 5, 2024 14:55
Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

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

Updates are looking good!

In addition to the comments below, there are a few integration tests for the footer that will need updating:

If we're only targeting en- languages to begin with, then I'd suggest updating the tests to target the /de/ locale instead of /en-US/ for the time being. Once the footer is enabled in production we can then update the tests later. Does that make sense? Happy to lend a hand here if helpful - just let me know.

bedrock/base/templates/base-protocol-mozilla.html Outdated Show resolved Hide resolved
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

footer-refresh-find-out-about = Find out about { -brand-name-mozilla } products, initiatives, and more. We’ll never sell your email, even if presented with free pizza for life.
Copy link
Member

Choose a reason for hiding this comment

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

Issue: this line of copy needs to be changed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Waiting on decision with the new copy at the moment

Copy link
Member

Choose a reason for hiding this comment

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

This line of copy also needs updating now that it points to the Firefox newsletter, not the Mozilla newsletter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have flagged this for Emma. Hopefully we will get the new copy that is appropriate for the Firefox newsletter soon

media/css/m24/base.scss Outdated Show resolved Hide resolved
media/css/m24/components/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/m24/components/footer-refresh.scss Outdated Show resolved Hide resolved
media/css/m24/components/footer-refresh.scss Outdated Show resolved Hide resolved
@alexgibson
Copy link
Member

I also noticed that the footer styling on all Firefox pages seems to be broken currently (I think because the CSS is only loaded in the Mozilla base template)

http://localhost:8000/en-US/firefox/

@wen-2018 wen-2018 force-pushed the refresh-footer branch 4 times, most recently from f580b2a to e97c211 Compare September 9, 2024 14:03
Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

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

Other than the outstanding comments I think code-wise, this is in good shape. Nice work! ⭐

@alexgibson
Copy link
Member

Looks like this needs a rebase since the home page PR merged

@wen-2018 wen-2018 force-pushed the refresh-footer branch 6 times, most recently from 807d7d7 to f41b031 Compare September 11, 2024 14:52
@alexgibson
Copy link
Member

alexgibson commented Sep 11, 2024

Since Stephanie's PR merged and the new fonts now load I see some visual regressions:

image
  • All the links are bold (hard to distinguish between headings and links)
  • On hover, active links disappear

@alexgibson
Copy link
Member

At smaller viewports, things also get very tight (have the breakpoints changed?)

image

Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

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

r+

@alexgibson alexgibson merged commit 3e34323 into mozilla:main Sep 11, 2024
6 checks passed
@wen-2018
Copy link
Collaborator Author

The bundle issue will be tackled separately in this issue: #15120

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 Refresh 🦖 Work related to the 2024 site refresh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants