Bug 41303: Implement 2022 Year End Campaign look in about:tor
Merge request reports
Activity
requested review from @richard
assigned to @henry
- Resolved by henry
@richard This is in draft right now because it is not near complete. However, I just wanted to check before I do all the styling and localization, if this is close to what you have in mind.
Specifically:
- Hiding the feature behind the "isYEC" class that gets added to the body if
Date.now()
is within the campaign dates. - Should I be using UTC for the start and end times, like in the patch, or a local time using
new Date
? If we're using UTC, what hour should I set? - Do we want to hide the campaign banner if there is an update using
hideIfHasBeenUpdated
? - The original page generally lacks structural semantics, which we probably want to add at some point. But for now, should I hold off on using semantic HTML (
header
andh1
) to keep it in line with the current approach?
- Hiding the feature behind the "isYEC" class that gets added to the body if
added 3 commits
-
99014349...d8db5443 - 2 commits from branch
tpo/applications:maint-11.5
- 417c4f4a - Bug 41303: Implement 2022 Year End Campaign look in about:tor
-
99014349...d8db5443 - 2 commits from branch
added 1 commit
- 695663d3 - Bug 41303: Implement 2022 Year End Campaign look in about:tor
- Resolved by morgan
- Resolved by henry
- Resolved by morgan
@richard This is what I have so far.
I'll come back to this on monday to tweak stuff, to address my TODOs and to add the fonts, but let me know if this is still the correct approach.
I'm attaching an image to show what this currently looks like with different text lengths (for other locales). I think this works quite well, but let me know if there should be some different alignments.
mentioned in issue tor-browser#41302 (closed)
added 1 commit
- 73e0a01a - Bug 41303: Implement 2022 Year End Campaign look in about:tor
- Resolved by henry
- Resolved by henry
- Resolved by henry
Changes
- Updated the structure and CSS to be simpler.
- Added some CSS comments.
- Added fonts. I compressed the files into a woff2 format and then used base64. Using woff2 saved about 250kB. The base64 format vs the files cost ~40kB so it seems fine to use this to get around the security policy that blocks the font "resource:".
Screenshots with the current patch
The screenshot doesn't align up pixel-for-pixel with the mock up. But the mock ups had scaled some of the images. Recommendations for pixel tweaks are welcome :)
NOTE: the non-en-US ones are just mock ups by replacing the text in the DOM inspector.
- Resolved by henry
@henry it looks like the vertical spacing is slightly off (for English at least) in comparison to @nicob's mockups tor-browser#41303 (comment 2836454)
added 1 commit
- 492d1948 - Bug 41303: Implement 2022 Year End Campaign look in about:tor
- Resolved by henry
Added the license for the fonts, changed the focus outline as per tor-browser#41303 (comment 2837695), tweaked the spacing by 5px values and reduced the letter spacing in the headings.
This is a screenshot of what it now produces, overlayed with the screenshot from figma on top. Note that the figma meagphone image is scaled down. To accommodate the larger size I gave the megaphone image more space in the bottom left corner since I figured we want the magaphone part to align with the text. The donate text has to be slightly moved down as well.
Edited by henry
mentioned in issue tpo/web/tpo#324 (closed)
added 1 commit
- 4364a8ae - Bug 41303: Implement 2022 Year End Campaign look in about:tor
- Resolved by henry
added 1 commit
- e7b5fe6f - Bug 41303: Implement 2022 Year End Campaign look in about:tor
- Resolved by henry
Just need the final URL and dates, then I'll mark this as ready.
mentioned in issue tpo/web/lego#52 (closed)
added 1 commit
- d0ad5655 - Bug 41303: Implement 2022 Year End Campaign look in about:tor
added 1 commit
- 2e235c1a - Bug 41303: Implement 2022 Year End Campaign look in about:tor
added 1 commit
- 176a6680 - Bug 41303: Implement 2022 Year End Campaign look in about:tor
added 1 commit
- 316da7e0 - Bug 41303: Implement 2022 Year End Campaign look in about:tor
- Resolved by henry
Lgtm! The only problem, not dependent on this change, but probably an old thing, is that we might reverse the arrow of the search (with a
transform: scale(-1, 1);
on the button).I'm waiting for a feedback.
mentioned in issue tor-browser#41303 (closed)