Skip to content

Commit

Permalink
Merge pull request #549 from thegreenwebfoundation/hs-green-badge-reb…
Browse files Browse the repository at this point in the history
…rand

Tweaks to design
  • Loading branch information
hanopcan authored Jan 29, 2024
2 parents d230929 + 2dca21e commit e258a05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/greencheck/api/legacy_image_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def add_hosted_text(draw, text_color, domain, provider=None, green=False):

if green:
if provider:
draw.text((TEXT_POSITION_LEFT, 43), f"{domain}", TEXT_COLOR, font=font_settings_green)
draw.text((TEXT_POSITION_LEFT, 33), f"{domain}", TEXT_COLOR, font=font_settings_green)
hosted_by_message = f"hosted by {provider}"
draw.text((TEXT_POSITION_LEFT, 55), hosted_by_message, text_color, font=font_settings_green)
draw.text((TEXT_POSITION_LEFT, 48), hosted_by_message, text_color, font=font_settings_green)
else:
draw.text((TEXT_POSITION_LEFT, 54), f"{domain}", TEXT_COLOR, font=font_settings_green)
draw.text((TEXT_POSITION_LEFT, 40), f"{domain}", TEXT_COLOR, font=font_settings_green)
else:
draw.text((TEXT_POSITION_LEFT, 54), f"{domain}", TEXT_COLOR, font=font_settings_grey)
draw.text((TEXT_POSITION_LEFT, 48), f"{domain}", TEXT_COLOR, font=font_settings_grey)



Expand Down
Binary file modified apps/greencheck/badges/blank-badge-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/greencheck/badges/blank-badge-grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e258a05

Please sign in to comment.