Redesign the trophy display and add a trophies component.

Review Request #13746 — Created April 18, 2024 and submitted

Information

Review Board
release-7.x

Reviewers

This introduces .rb-c-trophies, a formal component for showing
trophies. This replaces the old .box.trophies, and is quite different.
It's the first big visual update for trophies since 1.0.

The new styling doesn't enclose trophies in a box, and isn't
left-aligned. Instead, these are now shown outside of a box, centered on
the page, with a trophy on either side of the text. The trophies are
slightly slanted away from the text.

The text is now a golden-ish color (which is a bit brighter on dark
mode, and a darker gold on light mode).

Removing the banner and adding the slanted trophies gives this a little
bit more personality. In the future, new trophy images could really help
make this stand out.

Tested on light and dark modes on mobile and desktop, with both sparkly
and fish trophies.

Summary ID
Add a formal component for trophies, and support dark mode.
This introduces `.rb-c-trophies`, a formal component for showing trophies. This replaces the old `.box.trophies`, and is quite different. It's the first big visual update for trophies since 1.0. The new styling doesn't enclose trophies in a box, and isn't left-aligned. Instead, these are now shown outside of a box, centered on the page, with a trophy on either side of the text. The trophies are slightly slanted away from the text. The text is now a golden-ish color (which is a bit brighter on dark mode, and a darker gold on light mode). Removing the banner and adding the slanted trophies gives this a little bit more personality. In the future, new trophy images could really help make this stand out.
2df698929f8ccb1459f97121cacc3be4fd0bf0c1

Description From Last Updated

Leftover code? Seems like this probably should be removed.

daviddavid

Can we not use palette colors for these?

daviddavid
chipx86
maubin
  1. Looks a lot better this way.

  2. 
      
david
  1. 
      
  2. reviewboard/static/rb/css/ui/trophies.less (Diff revision 1)
     
     
     
     
     
     
    Show all issues

    Leftover code? Seems like this probably should be removed.

  3. reviewboard/static/rb/css/ui/trophies.less (Diff revision 1)
     
     
     
    Show all issues

    Can we not use palette colors for these?

    1. We don't have anything good in the palette for these. I'd have to define a new gold palette, and I don't have time for it.

    2. Can we put in a TODO comment?

    3. I have one in my local little Ink/dark mode TODO tracking this. (I have it separate from Asana just because I also have tons of temporary in-development notes around it all.)

      I need this and an orange palette at some point, and some refinement/variations on other colors.

  4. 
      
chipx86
maubin
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (27e6a91)