Skip to content

Commit

Permalink
feat: resize hangzhou banner
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <[email protected]>
  • Loading branch information
Dup4 committed Dec 18, 2023
1 parent ae730de commit 2d2bb7f
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed data/icpc/48th/hangzhou-assets/banner_ten_min.png
Binary file not shown.
2 changes: 1 addition & 1 deletion data/icpc/48th/hangzhou-warmup/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contest_name":"第 48 届 ICPC 国际大学生程序设计竞赛区域赛杭州站 - 热身赛","start_time":1702103400,"end_time":1702112400,"frozen_time":1800,"penalty":1200,"problem_quantity":4,"problem_id":["A","B","C","D"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":45,"silver":90,"bronze":135}},"balloon_color":[{"color":"#000","background_color":"#e61c37"},{"color":"#000","background_color":"#4381ba"},{"color":"#000","background_color":"#56b76b"},{"color":"#000","background_color":"#f2d924"}],"logo":{"preset":"ICPC"},"banner":{"url":"../hangzhou-assets/banner_ten_min.png"},"options":{"submission_timestamp_unit":"millisecond"}}
{"contest_name":"第 48 届 ICPC 国际大学生程序设计竞赛区域赛杭州站 - 热身赛","start_time":1702103400,"end_time":1702112400,"frozen_time":1800,"penalty":1200,"problem_quantity":4,"problem_id":["A","B","C","D"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":45,"silver":90,"bronze":135}},"balloon_color":[{"color":"#000","background_color":"#e61c37"},{"color":"#000","background_color":"#4381ba"},{"color":"#000","background_color":"#56b76b"},{"color":"#000","background_color":"#f2d924"}],"logo":{"preset":"ICPC"},"banner":{"url":"../hangzhou-assets/banner_ten_compress_resize.png"},"options":{"submission_timestamp_unit":"millisecond"}}
2 changes: 1 addition & 1 deletion data/icpc/48th/hangzhou/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contest_name":"第 48 届 ICPC 国际大学生程序设计竞赛区域赛杭州站 - 正式赛","start_time":1702170000,"end_time":1702188000,"frozen_time":3600,"penalty":1200,"problem_quantity":13,"problem_id":["A","B","C","D","E","F","G","H","I","J","K","L","M"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":45,"silver":90,"bronze":135}},"balloon_color":[{"color":"#000","background_color":"#d3373f"},{"color":"#000","background_color":"#527fb5"},{"color":"#000","background_color":"#6fb472"},{"color":"#000","background_color":"#edd951"},{"color":"#000","background_color":"#dc7235"},{"color":"#000","background_color":"#d34186"},{"color":"#000","background_color":"#dfa5c3"},{"color":"#000","background_color":"#bfd18f"},{"color":"#000","background_color":"#b1cbe0"},{"color":"#000","background_color":"#8b72ac"},{"color":"#000","background_color":"#80bbbd"},{"color":"#000","background_color":"#d0c3db"},{"color":"#000","background_color":"#f1d6d0"}],"logo":{"preset":"ICPC"},"banner":{"url":"../hangzhou-assets/banner_ten_min.png"},"options":{"submission_timestamp_unit":"millisecond"}}
{"contest_name":"第 48 届 ICPC 国际大学生程序设计竞赛区域赛杭州站 - 正式赛","start_time":1702170000,"end_time":1702188000,"frozen_time":3600,"penalty":1200,"problem_quantity":13,"problem_id":["A","B","C","D","E","F","G","H","I","J","K","L","M"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":45,"silver":90,"bronze":135}},"balloon_color":[{"color":"#000","background_color":"#d3373f"},{"color":"#000","background_color":"#527fb5"},{"color":"#000","background_color":"#6fb472"},{"color":"#000","background_color":"#edd951"},{"color":"#000","background_color":"#dc7235"},{"color":"#000","background_color":"#d34186"},{"color":"#000","background_color":"#dfa5c3"},{"color":"#000","background_color":"#bfd18f"},{"color":"#000","background_color":"#b1cbe0"},{"color":"#000","background_color":"#8b72ac"},{"color":"#000","background_color":"#80bbbd"},{"color":"#000","background_color":"#d0c3db"},{"color":"#000","background_color":"#f1d6d0"}],"logo":{"preset":"ICPC"},"banner":{"url":"../hangzhou-assets/banner_ten_compress_resize.png"},"options":{"submission_timestamp_unit":"millisecond"}}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
3 changes: 2 additions & 1 deletion origin-data/icpc/48th/hangzhou/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
def get_basic_contest():
c = Contest()
c.logo = Image(preset="ICPC")
c.banner = Image(url="{}/banner_ten_min.png".format(ASSETS_PATH))
c.banner = Image(
url="{}/banner_ten_compress_resize.png".format(ASSETS_PATH))

return c

Expand Down

0 comments on commit 2d2bb7f

Please sign in to comment.