-
Notifications
You must be signed in to change notification settings - Fork 25
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
#2086 Add Lucha Libre Mask #2121
Conversation
Is it not possible to get the city string directly from the template Scala? :( This is fine if we have to do it, it just seems like overkill. And ideally we'd be able to get that info directly in the navbar instead of having to pass it twice for every webpage. |
I based my changes off of what was done in the |
Thanks for pointing out line 91 of navbar.scala.html! So it looks like you should definitely be able to do this just in there. Could you try troubleshooting that approach a bit more? |
And if you aren't able to figure it out for awhile, can you show me the code you're trying and the issue you're having? |
I was able to access the city string in the navbar Scala template file, a much cleaner solution. I also changed the mobile validation logo to depend on the user's city, but I was not able to test this because my mobile dev environment is broken. |
I just updated the details and size of the logo, does it look good? |
It looks like it still doesn't have a transparent background and looks like it could be cropped a bit more? |
I made the background transparent and cropped it a little bit more. |
Okay, so on mobile the mask doesn't look any good unless we improve the resolution. I played around with it and got a resolution I'm happy with. It's like 45 kb instead of 15 kb, but I think that's fine. Worth it to have a crisp logo. I'm attaching it here. Could you add it for the two Mexican cities, and then also create an edited version for the other cities that is at that resolution? |
Ok, I added the 45kb of both the logos to their respective city folders, took out the sidewalk-logo-new and added the high res version of the logo to the public/assets folder. |
Great! Looks good. Last thing: we already have the high res version of the logo without the mask in the assets folder, called "logo-high-res.png". Could you just rename the lucha libre one to have the same convention (and also specify that it is not our normal logo) by renaming it "logo-lucha-libre-high-res.png"? I think that's the last thing I have :) |
Sounds good, I just changed it. |
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.
Looks good, thanks!
Resolves #2086
This PR allows the site to switch to the Lucho Libre Mask Logo for the correct cities or keep the regular site logo. I changed the logo on the mobile validation interface in the same way, but I was not able to test this on a physical device. I was able to see through the Chrome developer console using their simulated mobile devices that the Lucha Libre logo is formatted correctly on mobile.
Regular Logo:
Lucho Libre Logo: