diff --git a/competition_page.py b/competition_page.py index c768c7f276ab573eafcf0105314ed79e77dae095..e6d18dbb900f61965e63bb825133f4faaea8475b 100644 --- a/competition_page.py +++ b/competition_page.py @@ -98,6 +98,51 @@ def get_competition_page_html(self, competition_id): height: auto; }} + .sponsor{{ + flex: 1; + display: flex; + align-items: center; + justify-content: center; + opacity: 75%; + transition: all 0.3s cubic-bezier(.08,.82,.17,1); + filter: brightness(calc(1%)) grayscale(100%) contrast(1000%); + min-width: 113px; + }} + + .sponsor:hover {{ + opacity: 100%; + filter: none; + }} + + .sponsor img{{ + width: 100%; + height: auto; + min-width: 120px; + }} + + .sponsoring-container {{ + margin: 30px 0; + justify-content: center; + width: 100%; + animation: fadeInUp 0.5s ease-out forwards; + opacity: 0; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + border-radius: 5px; + overflow: hidden; + background-color: white; + box-sizing: border-box; + padding-bottom: 30px; + padding-left: 45px; + padding-right: 45px; + }} + + .sponsoring-flex {{ + display: flex; + row-gap: 20px; + column-gap: 80px; + flex-wrap: wrap; + }} + a {{ color: black; transition: color 0.3s ease; @@ -161,13 +206,21 @@ def get_competition_page_html(self, competition_id): <body> <h1>{full_competition_name} - Results</h1> <p><a href="../index.html">← Back to World Ranking</a></p> - """ - - html_content += f""" </div> - - <div class="chart-container"> - <img src="../images/{competition_id}_results.{self.IMAGE_FORMAT}" alt="{self.get_full_competition_name(competition_id)} Results"> + + <div class="sponsoring-container"> + <div style="margin-bottom: 12px; margin-top: 16px; text-align: center">sponsored by:</div> + <div class="sponsoring-flex"> + <div class="sponsor"> + <a href="https://murtfeldt.de" target="_blank"><img src="../../murtfeldt.svg"></a> + </div> + <div class="sponsor"> + <a href="https://www.kordel.de" target="_blank"><img src="../../kordel.png"></a> + </div> + <div class="sponsor"> + <a href="https://www.vulcanus-stahl.de/" target="_blank"><img src="../../vulcanus.svg"></a> + </div> + </div> </div> <h2>Results</h2> @@ -193,12 +246,16 @@ def get_competition_page_html(self, competition_id): <td class="{change_class}">{'+' if elo_change > 0 else ''}{elo_change:.1f}</td> </tr>""" - html_content += """ + html_content += f""" </table> + + <div class="chart-container"> + <img src="../images/{competition_id}_results.{self.IMAGE_FORMAT}" alt="{self.get_full_competition_name(competition_id)} Results"> + </div> - <p><small>Generated on {}</small></p> + <p><small>Generated on {datetime.now().strftime("%Y-%m-%d %H:%M:%S")}</small></p> </body> </html> - """.format(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) + """ return html_content \ No newline at end of file diff --git a/main.py b/main.py index fb739fda7fe360f17b45dc3bef2a1c1ae7f5919b..1665aa4303da0389f82dbfb685c08ab7a710a0ee 100644 --- a/main.py +++ b/main.py @@ -275,8 +275,8 @@ class EloSystem: team_data = self.teams[team_name] # Generate Elo history chart for this team - if team_data['history']: - self.create_team_elo_history_chart(team_name) + # if team_data['history']: + # self.create_team_elo_history_chart(team_name) # Filter history for this team's competitions team_competitions = sorted(team_data['history'], key=lambda x: x['date'], reverse=True) @@ -293,7 +293,7 @@ class EloSystem: print(f"Generating Competition site for {competition_id}") # Competition results as bar chart - self.create_competition_result_chart(competition_id) + # self.create_competition_result_chart(competition_id) html_content = get_competition_page_html(self, competition_id) diff --git a/public/kordel.png b/public/kordel.png new file mode 100644 index 0000000000000000000000000000000000000000..52aa67aded1cb3c252ed09d75f5531082f6048ad Binary files /dev/null and b/public/kordel.png differ diff --git a/public/murtfeldt.svg b/public/murtfeldt.svg new file mode 100644 index 0000000000000000000000000000000000000000..f5a49440c397e81e63f4106f9312488f04e0ebec --- /dev/null +++ b/public/murtfeldt.svg @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="276.487mm" + height="59.736mm" + viewBox="0 0 276.487 59.736" + version="1.1" + id="svg1" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs1" /> + <g + id="layer1" + transform="translate(-282.592,-268.213)"> + <path + style="fill:#000000;stroke-width:40" + d="m 419.315,327.714 h -1.854 v -12.275 h 1.854 v 5.634 h 0.036 l 5.562,-5.634 h 2.538 l -5.615,5.544 5.813,6.731 h -2.483 l -4.626,-5.58 -1.225,1.062 z m 21.613,-4.554 c 0,0.78 -0.12,1.467 -0.36,2.061 a 4.04,4.04 0 0 1 -1.017,1.494 4.437,4.437 0 0 1 -1.558,0.918 c -0.6,0.21 -1.26,0.315 -1.979,0.315 -0.719,0 -1.38,-0.105 -1.98,-0.315 a 4.358,4.358 0 0 1 -1.548,-0.918 4.093,4.093 0 0 1 -1.008,-1.494 c -0.24,-0.594 -0.36,-1.28 -0.36,-2.061 v -7.722 h 1.854 v 7.649 c 0,0.528 0.078,0.984 0.233,1.368 0.156,0.384 0.369,0.705 0.64,0.963 0.27,0.259 0.591,0.45 0.963,0.576 0.372,0.126 0.773,0.189 1.206,0.189 0.432,0 0.837,-0.063 1.215,-0.189 0.378,-0.126 0.702,-0.317 0.972,-0.576 0.271,-0.258 0.483,-0.579 0.64,-0.963 0.155,-0.384 0.233,-0.84 0.233,-1.368 v -7.649 h 1.854 z m 14.9,-7.722 v 12.275 h -1.639 l -6.605,-9 h -0.036 c 0.023,0.456 0.039,0.945 0.045,1.467 0.006,0.522 0.009,1.012 0.009,1.468 v 6.065 h -1.854 v -12.275 h 1.638 l 6.588,9 h 0.036 a 127.94,127.94 0 0 1 -0.036,-2.935 v -6.065 z m 13.345,8.964 c 0,0.456 -0.081,0.896 -0.243,1.323 a 2.95,2.95 0 0 1 -0.783,1.134 c -0.359,0.33 -0.825,0.594 -1.395,0.792 -0.57,0.197 -1.257,0.297 -2.061,0.297 -0.421,0 -0.841,-0.036 -1.261,-0.108 a 9.253,9.253 0 0 1 -1.232,-0.297 c -0.402,-0.126 -0.786,-0.279 -1.152,-0.459 -0.366,-0.18 -0.693,-0.384 -0.98,-0.612 l 1.079,-1.493 a 6.183,6.183 0 0 0 1.63,0.882 5.563,5.563 0 0 0 1.917,0.324 c 0.443,0 0.83,-0.048 1.16,-0.145 0.33,-0.096 0.604,-0.222 0.819,-0.378 0.215,-0.156 0.378,-0.339 0.486,-0.549 a 1.43,1.43 0 0 0 0.162,-0.657 c 0,-0.468 -0.223,-0.873 -0.666,-1.215 -0.444,-0.342 -1.242,-0.639 -2.395,-0.891 -1.439,-0.324 -2.472,-0.808 -3.096,-1.449 -0.624,-0.641 -0.937,-1.401 -0.937,-2.277 0,-0.468 0.094,-0.906 0.279,-1.313 0.187,-0.408 0.465,-0.769 0.837,-1.08 0.372,-0.312 0.834,-0.559 1.386,-0.738 0.553,-0.18 1.194,-0.271 1.927,-0.271 0.828,0 1.649,0.124 2.466,0.369 0.815,0.246 1.512,0.579 2.088,0.999 l -1.08,1.513 a 6.133,6.133 0 0 0 -1.602,-0.828 5.78,5.78 0 0 0 -1.872,-0.288 c -0.9,0 -1.555,0.156 -1.962,0.468 -0.408,0.312 -0.612,0.69 -0.612,1.134 0,0.216 0.045,0.417 0.135,0.604 0.09,0.186 0.249,0.366 0.478,0.54 0.228,0.174 0.527,0.336 0.899,0.485 a 9.8,9.8 0 0 0 1.404,0.423 c 0.768,0.181 1.416,0.394 1.944,0.64 0.527,0.246 0.956,0.525 1.286,0.837 0.33,0.312 0.57,0.657 0.721,1.035 0.151,0.376 0.226,0.793 0.226,1.249 z m 12.903,-7.2 h -3.815 v 10.512 h -1.854 v -10.512 h -3.815 v -1.764 h 9.485 v 1.764 z m 12.309,7.2 c 0,0.456 -0.081,0.896 -0.243,1.323 a 2.95,2.95 0 0 1 -0.783,1.134 c -0.359,0.33 -0.825,0.594 -1.395,0.792 -0.57,0.197 -1.257,0.297 -2.061,0.297 -0.421,0 -0.841,-0.036 -1.261,-0.108 a 9.253,9.253 0 0 1 -1.232,-0.297 c -0.402,-0.126 -0.786,-0.279 -1.152,-0.459 -0.366,-0.18 -0.693,-0.384 -0.98,-0.612 l 1.079,-1.493 a 6.183,6.183 0 0 0 1.63,0.882 5.563,5.563 0 0 0 1.917,0.324 c 0.443,0 0.83,-0.048 1.16,-0.145 0.33,-0.096 0.604,-0.222 0.819,-0.378 0.215,-0.156 0.378,-0.339 0.486,-0.549 a 1.43,1.43 0 0 0 0.162,-0.657 c 0,-0.468 -0.223,-0.873 -0.666,-1.215 -0.444,-0.342 -1.242,-0.639 -2.395,-0.891 -1.439,-0.324 -2.472,-0.808 -3.096,-1.449 -0.624,-0.641 -0.937,-1.401 -0.937,-2.277 0,-0.468 0.094,-0.906 0.279,-1.313 0.187,-0.408 0.465,-0.769 0.837,-1.08 0.372,-0.312 0.834,-0.559 1.386,-0.738 0.553,-0.18 1.194,-0.271 1.927,-0.271 0.828,0 1.649,0.124 2.466,0.369 0.815,0.246 1.512,0.579 2.088,0.999 l -1.08,1.513 a 6.133,6.133 0 0 0 -1.602,-0.828 5.78,5.78 0 0 0 -1.872,-0.288 c -0.9,0 -1.555,0.156 -1.962,0.468 -0.408,0.312 -0.612,0.69 -0.612,1.134 0,0.216 0.045,0.417 0.135,0.604 0.09,0.186 0.249,0.366 0.478,0.54 0.228,0.174 0.527,0.336 0.899,0.485 a 9.8,9.8 0 0 0 1.404,0.423 c 0.768,0.181 1.416,0.394 1.944,0.64 0.527,0.246 0.956,0.525 1.286,0.837 0.33,0.312 0.57,0.657 0.721,1.035 0.151,0.376 0.226,0.793 0.226,1.249 z m 12.903,-7.2 h -3.815 v 10.512 h -1.854 v -10.512 h -3.815 v -1.764 h 9.485 v 1.764 z m 15.292,4.374 c 0,0.924 -0.162,1.776 -0.486,2.556 a 6.168,6.168 0 0 1 -1.332,2.017 6.104,6.104 0 0 1 -1.989,1.322 c -0.762,0.318 -1.587,0.478 -2.475,0.478 -0.888,0 -1.716,-0.159 -2.484,-0.478 a 6.08,6.08 0 0 1 -1.998,-1.322 6.145,6.145 0 0 1 -1.331,-2.017 c -0.324,-0.779 -0.486,-1.632 -0.486,-2.556 0,-0.924 0.162,-1.775 0.486,-2.556 a 6.166,6.166 0 0 1 1.331,-2.017 5.966,5.966 0 0 1 1.998,-1.313 c 0.769,-0.312 1.597,-0.469 2.484,-0.469 0.887,0 1.713,0.156 2.475,0.469 0.763,0.312 1.425,0.75 1.989,1.313 0.564,0.564 1.008,1.236 1.332,2.017 0.324,0.781 0.486,1.632 0.486,2.556 z m -1.854,0 c 0,-0.684 -0.114,-1.308 -0.342,-1.872 a 4.502,4.502 0 0 0 -0.936,-1.458 4.112,4.112 0 0 0 -1.404,-0.945 4.547,4.547 0 0 0 -1.746,-0.333 c -0.636,0 -1.224,0.111 -1.764,0.333 a 4.126,4.126 0 0 0 -1.404,0.945 4.486,4.486 0 0 0 -0.936,1.458 c -0.229,0.564 -0.343,1.188 -0.343,1.872 0,0.684 0.114,1.312 0.343,1.881 0.228,0.57 0.54,1.057 0.936,1.458 a 4.29,4.29 0 0 0 1.404,0.945 c 0.54,0.228 1.128,0.342 1.764,0.342 0.624,0 1.206,-0.114 1.746,-0.342 a 4.305,4.305 0 0 0 1.404,-0.945 c 0.396,-0.401 0.707,-0.888 0.936,-1.458 a 5.037,5.037 0 0 0 0.342,-1.881 z m 14.147,-4.374 h -6.138 v 3.636 h 5.634 v 1.765 h -5.634 v 5.111 h -1.854 v -12.275 h 7.991 v 1.763 z m 11.968,0 h -6.138 v 3.636 h 5.634 v 1.765 h -5.634 v 5.111 h -1.854 v -12.275 h 7.991 v 1.763 z m 12.238,10.512 h -8.262 v -12.275 h 8.1 v 1.764 h -6.246 v 3.42 h 5.742 v 1.764 h -5.742 v 3.564 h 6.408 z m -184.193,-59.49 h 7.186 l 0.002,25.845 h 0.092 l 18.139,-25.845 h 7.081 v 34.152 h -5.847 v -25.614 h -0.1 l -17.841,25.614 h -7.395 L 376.2,276.762 h -0.059 l -17.915,25.614 h -7.275 z m 59.099,9.562 v 24.59 h -5.405 v -2.482 h -0.09 c -0.975,1.33 -2.569,3.279 -6.336,3.279 -4.475,0 -6.999,-2.215 -8.24,-3.899 -1.816,-2.614 -1.816,-6.602 -1.816,-8.64 v -12.849 h 5.893 v 12.539 c 0,1.993 0,7.444 5.14,7.444 3.72,0 4.962,-3.5 4.962,-7.4 v -12.583 h 5.892 z m 4.713,0 h 5.406 v 2.171 h 0.088 c 1.108,-1.595 2.216,-3.013 5.273,-3.013 h 0.486 v 5.716 c -5.361,0.221 -5.361,4.43 -5.361,5.892 v 13.824 h -5.893 z m 15.203,-8.197 h 5.893 v 8.197 h 3.545 v 5.228 h -3.545 v 19.362 h -5.893 z m 14.838,13.425 h -2.083 v -5.228 h 2.083 c 0.133,-1.639 0.398,-4.652 2.879,-6.868 1.375,-1.285 3.324,-1.994 5.14,-1.994 h 1.639 v 5.805 c -2.259,0.044 -3.589,0.088 -3.765,3.057 h 3.455 v 5.228 h -3.455 v 19.362 h -5.893 z m 17.594,9.703 c 0.265,1.595 2.569,5.052 6.777,5.052 2.614,0 4.565,-1.108 5.671,-3.146 h 6.204 c -1.42,4.431 -6.115,8.551 -11.876,8.551 -7.311,0 -12.982,-5.848 -12.982,-13.026 0,-6.956 5.362,-13.336 12.939,-13.336 7.797,0 12.715,6.734 12.715,12.938 0,1.151 -0.177,2.171 -0.355,2.968 h -19.093 z m 13.423,-4.741 c -0.663,-3.944 -3.72,-5.76 -6.646,-5.76 -2.171,0 -5.848,1.196 -6.956,5.76 z m 9.61,-18.387 h 5.893 v 32.787 h -5.893 z m 35.421,32.787 h -5.406 v -3.013 h -0.088 c -1.108,1.773 -3.677,3.81 -7.842,3.81 -6.248,0 -12.539,-5.139 -12.539,-13.07 0,-8.285 6.646,-13.159 12.539,-13.159 3.589,0 5.716,1.196 7.444,3.013 v -10.368 h 5.893 z m -12.715,-4.607 c 4.43,0 7.266,-3.988 7.266,-7.71 0,-4.032 -3.102,-7.71 -7.266,-7.71 -4.387,0 -7.267,4.077 -7.268,7.532 10e-4,4.564 3.413,7.888 7.268,7.888 z m 17.447,-28.18 h 5.893 v 8.197 h 3.545 v 5.228 h -3.545 v 19.362 h -5.893 z" + id="path1" /> + <path + style="fill:#65b08b;fill-opacity:1;stroke-width:40" + d="m 306.536,268.213 -23.944,34.183 h 31.472 l 23.944,-34.183 z" + id="path2" /> + <path + style="fill:#c1c2c2;fill-opacity:1;stroke-width:40" + d="m 348.59,268.213 -23.943,34.183 h 10.56 l 23.943,-34.183 z" + id="path3" /> + </g> +</svg> diff --git a/public/vulcanus.svg b/public/vulcanus.svg new file mode 100644 index 0000000000000000000000000000000000000000..c4f94c4787b5bbc426db6fe22e7fbf1173b3162f --- /dev/null +++ b/public/vulcanus.svg @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + width="952" + height="127" + viewBox="0 0 952 127" + fill="none" + version="1.1" + id="svg8" + sodipodi:docname="vulcanus.svg" + inkscape:version="1.4 (unknown)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs8" /> + <sodipodi:namedview + id="namedview8" + pagecolor="#ffffff" + bordercolor="#000000" + borderopacity="0.25" + inkscape:showpageshadow="2" + inkscape:pageopacity="0.0" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1" + inkscape:zoom="1.2673319" + inkscape:cx="429.24824" + inkscape:cy="-28.406133" + inkscape:window-width="2560" + inkscape:window-height="1371" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg8" /> + <path + d="M951.457 55.0438H925.284V65.799H951.457V55.0438ZM927.779 16.276H915.265V65.799H927.779V16.276ZM894.736 35.2101H867.092V45.7608H894.736V35.2101ZM902.752 16.276H890.238V65.799H902.752V16.276ZM872.449 16.276H859.935V65.799H872.449V16.276ZM840.388 47.233H812.989V57.1703H840.388V47.233ZM814.175 65.799L828.692 24.1686H824.235L838.548 65.799H851.675L832.618 16.276H820.513L801.252 65.799H814.175ZM801.334 16.276H758.518V27.0312H801.334V16.276ZM786.121 16.6441H773.608V65.8399H786.121V16.6441ZM748.049 62.5274C751.525 59.7875 753.283 55.9435 753.283 51.077C753.283 48.5825 752.874 46.4151 752.015 44.6566C751.157 42.8982 750.052 41.426 748.703 40.2401C747.313 39.095 745.84 38.1136 744.205 37.3775C742.569 36.6414 740.933 35.9871 739.297 35.4145C737.661 34.842 736.148 34.3104 734.758 33.7379C733.368 33.1654 732.263 32.5519 731.446 31.8976C730.587 31.2433 730.178 30.3436 730.178 29.1986C730.178 28.0536 730.669 27.2357 731.65 26.6223C732.631 26.0089 733.981 25.7226 735.699 25.7226C737.58 25.7226 739.256 26.0906 740.769 26.8267C742.283 27.5628 743.796 28.7079 745.268 30.2619L753.242 22.2875C751.32 20.161 748.866 18.4843 745.799 17.2575C742.732 16.0307 739.42 15.4581 735.862 15.4581C732.304 15.4581 729.115 16.0715 726.415 17.2575C723.716 18.4434 721.59 20.161 720.077 22.4511C718.564 24.7411 717.787 27.4402 717.787 30.5481C717.787 33.0836 718.196 35.1283 719.055 36.8049C719.913 38.4407 721.017 39.872 722.367 40.9762C723.757 42.1212 725.23 43.0618 726.865 43.7979C728.501 44.534 730.137 45.1883 731.814 45.7608C733.49 46.3333 735.003 46.8649 736.353 47.4375C737.702 48.01 738.806 48.6643 739.665 49.4004C740.524 50.1365 740.974 51.1179 740.974 52.3448C740.974 53.5716 740.401 54.594 739.256 55.3301C738.111 56.0662 736.516 56.3933 734.39 56.3933C731.936 56.3933 729.728 55.9026 727.765 54.9211C725.802 53.9397 724.003 52.5901 722.326 50.7908L714.352 58.7652C716.887 61.4642 719.627 63.468 722.653 64.7357C725.679 66.0035 729.278 66.6578 733.408 66.6578C739.665 66.6578 744.532 65.2674 748.008 62.5274M705.805 39.9947H675.707V46.5787H705.805V39.9947ZM660.576 62.5274C664.052 59.7875 665.81 55.9435 665.81 51.077C665.81 48.5825 665.401 46.4151 664.542 44.6566C663.725 42.8982 662.58 41.426 661.23 40.2401C659.84 39.095 658.367 38.1136 656.732 37.3775C655.096 36.6414 653.46 35.9871 651.824 35.4145C650.189 34.842 648.676 34.3104 647.285 33.7379C645.895 33.1654 644.791 32.5519 643.973 31.8976C643.155 31.2433 642.705 30.3436 642.705 29.1986C642.705 28.0536 643.196 27.2357 644.177 26.6223C645.159 26.0089 646.508 25.7226 648.226 25.7226C650.107 25.7226 651.783 26.0906 653.297 26.8267C654.81 27.5628 656.323 28.7079 657.795 30.2619L665.769 22.2875C663.847 20.161 661.394 18.4843 658.327 17.2575C655.259 16.0307 651.947 15.4581 648.389 15.4581C644.831 15.4581 641.642 16.0715 638.943 17.2575C636.244 18.4434 634.117 20.161 632.604 22.4511C631.091 24.7411 630.314 27.4402 630.314 30.5481C630.314 33.0836 630.723 35.1283 631.582 36.8049C632.4 38.4407 633.545 39.872 634.894 40.9762C636.285 42.1212 637.757 43.0618 639.392 43.7979C641.028 44.534 642.664 45.1883 644.341 45.7608C646.017 46.3333 647.53 46.8649 648.88 47.4375C650.229 48.01 651.334 48.6643 652.192 49.4004C653.051 50.1365 653.501 51.1179 653.501 52.3448C653.501 53.5716 652.928 54.594 651.783 55.3301C650.638 56.0662 649.044 56.3933 646.917 56.3933C644.463 56.3933 642.255 55.9026 640.292 54.9211C638.329 53.9397 636.53 52.5901 634.853 50.7908L626.879 58.7652C629.414 61.4642 632.154 63.468 635.18 64.7357C638.207 66.0035 641.805 66.6578 645.936 66.6578C652.192 66.6578 657.059 65.2674 660.535 62.5274M609.417 63.9587C612.566 62.1594 615.06 59.7466 616.778 56.6387C618.536 53.5716 619.395 50.0138 619.395 46.0062V16.276H606.841V47.0285C606.841 48.787 606.473 50.3001 605.737 51.5678C605 52.8355 603.978 53.7761 602.751 54.4713C601.484 55.1665 600.011 55.4936 598.335 55.4936C596.658 55.4936 595.227 55.1665 593.918 54.4713C592.609 53.817 591.546 52.8355 590.769 51.5269C589.992 50.2592 589.624 48.7052 589.624 46.9467V16.276H577.111V45.9653C577.111 49.9729 578.01 53.5307 579.81 56.6387C581.609 59.7466 584.103 62.2003 587.293 63.9587C590.483 65.7581 594.163 66.6578 598.376 66.6578C602.588 66.6578 606.309 65.7581 609.499 63.9587M565.497 65.799V16.276H552.983V55.4118L556.214 65.8399H565.497V65.799ZM559.771 52.9582L530.777 16.276L527.301 29.1168L556.214 65.799L559.771 52.9582ZM534.54 65.799V26.4996L530.777 16.3169H522.026V65.8399H534.54V65.799ZM502.478 47.233H475.079V57.1703H502.478V47.233ZM476.265 65.799L490.783 24.1686H486.325L500.638 65.799H513.765L494.709 16.276H482.645L463.384 65.799H476.306H476.265ZM451.033 64.7766C454.101 63.5498 456.8 61.8731 459.253 59.7057L450.87 51.3224C449.561 52.631 448.048 53.6534 446.29 54.3486C444.531 55.0847 442.487 55.4118 440.196 55.4118C438.193 55.4118 436.352 55.0438 434.676 54.3486C432.999 53.6534 431.568 52.6719 430.382 51.4042C429.196 50.1365 428.255 48.6234 427.601 46.8649C426.906 45.1065 426.579 43.1027 426.579 40.8535C426.579 38.6043 426.906 36.7641 427.601 35.0056C428.255 33.2471 429.196 31.7341 430.382 30.4663C431.568 29.1986 432.999 28.258 434.717 27.5628C436.434 26.8676 438.234 26.5405 440.196 26.5405C442.487 26.5405 444.49 26.9085 446.208 27.6446C447.925 28.3807 449.398 29.4031 450.624 30.7117L459.008 22.2466C456.636 20.1201 453.896 18.4025 450.747 17.1757C447.639 15.9489 444.122 15.3354 440.196 15.3354C436.271 15.3354 432.958 15.9898 429.768 17.2984C426.579 18.607 423.798 20.4063 421.385 22.6964C418.972 24.9865 417.132 27.6855 415.823 30.7526C414.515 33.8606 413.861 37.2139 413.861 40.8535C413.861 44.4931 414.515 47.9282 415.864 51.0362C417.173 54.1441 419.054 56.884 421.467 59.1741C423.88 61.4642 426.66 63.3044 429.891 64.5722C433.122 65.8808 436.598 66.5351 440.36 66.5351C444.449 66.5351 448.048 65.9217 451.074 64.6948M408.994 54.962H385.194V65.7172H408.994V54.962ZM387.688 16.1942H375.175V65.7172H387.688V16.276V16.1942ZM353.541 63.877C356.69 62.0776 359.185 59.6648 360.902 56.5569C362.661 53.4898 363.52 49.932 363.52 45.9244V16.276H350.965V47.0285C350.965 48.787 350.597 50.3001 349.861 51.5678C349.125 52.8355 348.103 53.7761 346.876 54.4713C345.608 55.1665 344.136 55.4936 342.459 55.4936C340.782 55.4936 339.351 55.1665 338.043 54.4713C336.734 53.817 335.671 52.8355 334.894 51.5269C334.117 50.2592 333.749 48.7052 333.749 46.9467V16.276H321.235V45.9653C321.235 49.9729 322.135 53.5307 323.934 56.6387C325.733 59.7466 328.228 62.2003 331.418 63.9587C334.607 65.7581 338.288 66.6578 342.5 66.6578C346.712 66.6578 350.434 65.7581 353.623 63.9587M294.408 65.799L313.179 16.276H300.134L285.943 56.3115H291.668L277.683 16.276H264.351L282.999 65.799H294.367H294.408Z" + fill="white" + id="path1" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M942.665 101.172H920.704V109.556H942.665V101.172ZM949.044 86.1642H939.107V125.464H949.044V86.1642ZM924.998 86.1642H915.061V125.464H924.998V86.1642ZM885.126 86.1642H875.353V125.464H885.126V86.1642ZM892.896 125.464C895.636 125.464 898.008 124.973 900.012 123.991C902.016 123.01 903.57 121.66 904.715 119.902C905.819 118.144 906.391 116.181 906.391 114.013C906.391 111.028 905.369 108.533 903.324 106.57C901.28 104.608 898.417 103.381 894.655 102.931V106.325C898.049 105.875 900.666 104.812 902.425 103.054C904.224 101.336 905.124 99.1686 905.124 96.5514C905.124 94.5884 904.633 92.83 903.692 91.276C902.711 89.722 901.361 88.4952 899.603 87.5546C897.844 86.614 895.718 86.1642 893.223 86.1642H883.245V93.5252H890.852C892.16 93.5252 893.223 93.8523 894.041 94.5066C894.859 95.1609 895.309 96.1833 895.309 97.5737C895.309 98.9641 894.9 99.9047 894.041 100.559C893.223 101.213 892.119 101.54 890.811 101.54H883.286V108.656H891.424C892.487 108.656 893.387 108.861 894.123 109.269C894.859 109.678 895.432 110.21 895.881 110.905C896.29 111.6 896.536 112.418 896.536 113.359C896.536 114.708 896.086 115.853 895.145 116.753C894.205 117.653 893.019 118.103 891.547 118.103H883.286V125.464H892.937H892.896ZM833.559 125.464V102.604L832.046 102.972L840.92 116.549H847.463L856.378 102.972L854.824 102.604V125.464H864.679V86.1642H857.523L842.555 108.942H845.827L830.819 86.1642H823.662V125.464H833.518H833.559ZM805.751 123.542C808.777 121.865 811.149 119.411 812.866 116.14C814.584 112.868 815.402 108.901 815.402 104.239V102.726H794.096V110.864L812.007 111.314L805.301 106.938C805.301 109.065 804.933 110.946 804.156 112.5C803.379 114.054 802.234 115.24 800.761 116.017C799.248 116.794 797.449 117.203 795.282 117.203C793.114 117.203 791.233 116.712 789.597 115.772C787.962 114.831 786.653 113.482 785.753 111.764C784.813 110.046 784.363 108.002 784.363 105.712C784.363 103.422 784.854 101.459 785.835 99.7411C786.816 98.0235 788.166 96.674 789.843 95.7335C791.56 94.7929 793.441 94.3022 795.568 94.3022C797.694 94.3022 799.535 94.7111 801.129 95.4881C802.724 96.2651 804.197 97.4919 805.505 99.0459L812.171 92.3801C810.412 90.2127 808.082 88.4952 805.26 87.2683C802.397 86.0415 799.248 85.4281 795.731 85.4281C792.787 85.4281 790.006 85.9188 787.389 86.9412C784.772 87.9636 782.482 89.3948 780.56 91.1942C778.638 92.9935 777.084 95.1609 775.98 97.6555C774.875 100.15 774.344 102.808 774.344 105.712C774.344 108.615 774.875 111.273 775.939 113.768C777.002 116.262 778.474 118.389 780.355 120.229C782.236 122.069 784.445 123.501 787.021 124.482C789.556 125.505 792.337 125.995 795.282 125.995C799.33 125.995 802.847 125.136 805.873 123.46M744.491 123.91C746.985 122.478 748.948 120.556 750.339 118.103C751.729 115.649 752.424 112.868 752.424 109.678V86.0415H742.446V110.455C742.446 111.846 742.16 113.073 741.547 114.054C740.974 115.036 740.156 115.813 739.175 116.344C738.193 116.876 737.007 117.162 735.699 117.162C734.39 117.162 733.245 116.876 732.182 116.344C731.118 115.813 730.301 115.036 729.687 114.013C729.074 112.991 728.787 111.805 728.787 110.374V86.0415H718.85V109.597C718.85 112.786 719.545 115.608 720.977 118.062C722.408 120.515 724.371 122.478 726.906 123.869C729.442 125.3 732.386 125.995 735.699 125.995C739.011 125.995 741.996 125.3 744.532 123.869M703.719 110.578H682.004V118.471H703.719V110.578ZM682.945 125.341L694.477 92.2983H690.919L702.288 125.341H712.716L697.585 86.0415H687.975L672.681 125.341H682.945ZM645.649 86.0415H635.876V125.341H645.649V86.0415ZM653.419 125.341C656.159 125.341 658.531 124.85 660.535 123.869C662.539 122.887 664.093 121.538 665.238 119.779C666.342 118.021 666.914 116.058 666.914 113.891C666.914 110.905 665.892 108.411 663.847 106.448C661.803 104.485 658.94 103.258 655.178 102.808V106.202C658.572 105.753 661.189 104.689 662.948 102.931C664.747 101.213 665.647 99.0459 665.647 96.4287C665.647 94.4657 665.156 92.7073 664.215 91.1533C663.234 89.5993 661.884 88.3725 660.126 87.4319C658.368 86.4914 656.241 86.0415 653.747 86.0415H643.768V93.4025H651.375C652.683 93.4025 653.746 93.7296 654.564 94.384C655.382 95.0383 655.832 96.0606 655.832 97.451C655.832 98.8414 655.423 99.782 654.564 100.436C653.746 101.091 652.642 101.418 651.334 101.418H643.809V108.533H651.947C653.01 108.533 653.91 108.738 654.646 109.147C655.382 109.556 655.955 110.087 656.405 110.783C656.814 111.478 657.059 112.296 657.059 113.236C657.059 114.586 656.609 115.731 655.669 116.63C654.728 117.53 653.542 117.98 652.07 117.98H643.809V125.341H653.46H653.419ZM625.243 125.341V86.0415H615.306V117.08L617.841 125.341H625.202H625.243ZM620.704 115.158L597.68 86.0415L594.9 96.2242L617.841 125.341L620.663 115.158H620.704ZM600.707 125.341V94.1386L597.721 86.0415H590.81V125.341H600.747H600.707ZM581.2 86.0415H560.18V94.4248H581.2V86.0415ZM579.482 101.213H560.18V109.351H579.482V101.213ZM581.486 116.958H560.18V125.341H581.486V116.958ZM562.266 86.0415H552.329V125.341H562.266V86.0415ZM541.655 125.341V86.0415H531.718V117.08L534.253 125.341H541.614H541.655ZM537.116 115.158L514.092 86.0415L511.312 96.2242L534.253 125.341L537.075 115.158H537.116ZM517.119 125.341V94.1386L514.133 86.0415H507.222V125.341H517.16H517.119ZM496.508 86.0415H486.571V125.341H496.508V86.0415ZM469.518 101.05H447.558V109.433H469.518V101.05ZM475.897 86.0415H465.96V125.341H475.897V86.0415ZM451.851 86.0415H441.914V125.341H451.851V86.0415ZM427.478 124.564C429.891 123.582 432.059 122.233 433.981 120.556L427.315 113.891C426.293 114.913 425.066 115.731 423.675 116.303C422.285 116.876 420.69 117.162 418.809 117.162C417.214 117.162 415.742 116.876 414.433 116.344C413.084 115.772 411.979 114.995 411.039 114.013C410.098 113.032 409.362 111.805 408.831 110.415C408.299 109.024 408.013 107.429 408.013 105.63C408.013 103.831 408.299 102.358 408.831 100.968C409.362 99.5775 410.098 98.3507 411.039 97.3692C411.979 96.3878 413.125 95.6108 414.474 95.0792C415.824 94.5475 417.255 94.2613 418.809 94.2613C420.608 94.2613 422.203 94.5475 423.593 95.1609C424.943 95.7335 426.129 96.5514 427.069 97.6146L433.735 90.9079C431.854 89.1904 429.687 87.8818 427.192 86.9003C424.698 85.9188 421.917 85.4281 418.809 85.4281C415.701 85.4281 413.043 85.9597 410.507 86.9821C407.972 88.0044 405.764 89.4357 403.842 91.2351C401.92 93.0344 400.488 95.1609 399.425 97.6555C398.403 100.109 397.871 102.767 397.871 105.671C397.871 108.574 398.403 111.273 399.466 113.768C400.529 116.262 402.001 118.389 403.882 120.229C405.804 122.069 408.013 123.501 410.548 124.523C413.084 125.545 415.864 126.077 418.85 126.077C422.121 126.077 424.943 125.586 427.356 124.605M386.543 122.805C389.324 120.638 390.714 117.612 390.714 113.727C390.714 111.723 390.387 110.046 389.733 108.615C389.079 107.225 388.179 106.039 387.116 105.139C386.012 104.199 384.826 103.462 383.558 102.849C382.249 102.277 380.982 101.745 379.632 101.295C378.324 100.845 377.138 100.395 376.033 99.9456C374.929 99.4957 374.071 99.005 373.416 98.4734C372.762 97.9418 372.435 97.2465 372.435 96.3469C372.435 95.4472 372.803 94.7929 373.58 94.3022C374.357 93.8114 375.42 93.5661 376.81 93.5661C378.283 93.5661 379.632 93.8523 380.818 94.4657C382.004 95.0383 383.231 95.9788 384.376 97.1648L390.714 90.8261C389.201 89.1086 387.238 87.8 384.826 86.8185C382.413 85.837 379.755 85.3872 376.933 85.3872C374.111 85.3872 371.576 85.8779 369.449 86.8185C367.323 87.7591 365.646 89.1495 364.419 90.9488C363.234 92.7482 362.62 94.9156 362.62 97.3692C362.62 99.3731 362.947 101.009 363.602 102.317C364.256 103.626 365.156 104.73 366.219 105.63C367.323 106.53 368.509 107.266 369.777 107.879C371.085 108.452 372.394 108.983 373.702 109.433C375.052 109.883 376.238 110.333 377.301 110.783C378.364 111.232 379.264 111.764 379.918 112.337C380.614 112.909 380.941 113.686 380.941 114.668C380.941 115.649 380.491 116.467 379.591 117.039C378.692 117.612 377.383 117.898 375.747 117.898C373.784 117.898 372.026 117.53 370.472 116.753C368.918 115.976 367.487 114.872 366.137 113.482L359.798 119.82C361.802 121.947 364.011 123.542 366.382 124.564C368.795 125.586 371.617 126.077 374.929 126.077C379.877 126.077 383.762 124.973 386.502 122.805M346.999 110.66H325.284V118.552H346.999V110.66ZM326.224 125.423L337.756 92.3801H334.199L345.567 125.423H355.995L340.864 86.1233H331.254L315.96 125.423H326.224ZM277.069 125.423V102.563L275.556 102.931L284.43 116.508H290.973L299.888 102.931L298.334 102.563V125.423H308.19V86.1233H301.033L286.066 108.901H289.338L274.329 86.1233H267.173V125.423H277.028H277.069Z" + fill="white" + id="path2" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M683.477 15.1309L679.142 9.85552L677.751 10.2236L681.718 15.1309H683.477ZM676.893 4.58016H675.461V15.1718H676.893V4.58016ZM679.265 10.3871C680.287 10.3871 681.105 10.1418 681.677 9.61016C682.25 9.07853 682.577 8.38333 682.577 7.48365C682.577 6.66577 682.291 5.97057 681.677 5.39805C681.105 4.86642 680.287 4.58016 679.265 4.58016H676.197V5.88878H679.265C679.878 5.88878 680.328 6.05235 680.655 6.37951C680.941 6.70666 681.105 7.07471 681.105 7.52455C681.105 7.97438 680.941 8.38333 680.655 8.66959C680.328 8.95585 679.878 9.11942 679.305 9.11942H676.238V10.428H679.305L679.265 10.3871ZM674.275 17.6254C672.967 16.8484 671.944 15.7852 671.208 14.4357C670.472 13.0862 670.104 11.614 670.104 9.9782C670.104 8.34243 670.472 6.87024 671.208 5.52073C671.944 4.21211 672.926 3.14886 674.235 2.37187C675.543 1.59488 677.015 1.22683 678.733 1.22683C680.451 1.22683 681.964 1.59488 683.231 2.37187C684.54 3.14886 685.562 4.21211 686.298 5.52073C687.034 6.82934 687.403 8.34243 687.403 9.9782C687.403 11.614 687.034 13.1271 686.298 14.4357C685.562 15.7852 684.54 16.8484 683.231 17.6254C681.923 18.4024 680.41 18.8114 678.651 18.8114C677.015 18.8114 675.543 18.4024 674.235 17.6254M683.886 18.6887C685.358 17.789 686.544 16.6031 687.362 15.09C688.22 13.5769 688.629 11.8593 688.629 9.9782C688.629 8.09707 688.22 6.4204 687.362 4.90731C686.544 3.39423 685.358 2.20829 683.845 1.30862C682.332 0.408943 680.737 0 678.774 0C676.811 0 675.093 0.449837 673.621 1.30862C672.149 2.1674 671.004 3.39423 670.145 4.86642C669.286 6.33861 668.877 8.01528 668.877 9.89642C668.877 11.7776 669.286 13.4951 670.145 15.0082C670.963 16.5213 672.149 17.7481 673.662 18.6478C675.175 19.5475 676.893 19.9973 678.815 19.9973C680.737 19.9973 682.495 19.5475 683.967 18.6887" + fill="white" + id="path3" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M936.367 34.3102C934.527 35.4144 933.3 36.355 932.646 37.0911C931.541 38.3179 931.01 39.831 931.01 41.6303C931.01 43.307 931.582 44.8201 932.686 46.1696C933.791 47.5191 935.59 48.1734 938.084 48.1734C939.761 48.1734 941.233 47.7645 942.501 46.9875C943.237 46.5376 944.055 45.8424 944.914 44.861L947.163 47.6009H950.925L946.713 42.4482C946.713 42.7345 946.999 42.1619 947.531 40.7715C948.063 39.3811 948.431 37.9089 948.635 36.3959H945.854C945.732 37.1728 945.609 37.7454 945.527 38.1952C945.405 38.6041 945.2 39.2585 944.914 40.1172L940.579 34.9237C941.888 34.0649 942.828 33.2879 943.401 32.5927C944.341 31.4476 944.832 30.0981 944.832 28.585C944.832 27.2764 944.382 26.1314 943.442 25.1908C942.501 24.2503 941.233 23.7595 939.557 23.7595C937.839 23.7595 936.449 24.2503 935.385 25.2726C934.363 26.295 933.831 27.5627 933.831 29.1167C933.831 29.8528 933.995 30.6298 934.363 31.4068C934.69 32.1837 935.385 33.1652 936.367 34.3102ZM938.289 45.5562C937.226 45.5562 936.244 45.229 935.345 44.5338C934.404 43.8386 933.954 42.8572 933.954 41.6303C933.954 40.4444 934.322 39.4629 935.017 38.645C935.467 38.1134 936.49 37.3364 938.003 36.3141L943.36 42.898C942.91 43.5932 942.215 44.2067 941.356 44.7383C940.497 45.2699 939.475 45.5562 938.248 45.5562M939.025 32.9607C938.166 31.9793 937.553 31.2023 937.226 30.6298C936.858 30.0163 936.694 29.4029 936.694 28.7486C936.694 28.2579 936.817 27.8081 937.062 27.3991C937.512 26.5812 938.371 26.2132 939.557 26.2132C940.334 26.2132 940.947 26.4585 941.438 26.9902C941.888 27.4809 942.133 28.0943 942.133 28.7895C942.133 29.6892 941.806 30.5071 941.192 31.2432C940.824 31.693 940.088 32.3064 939.107 33.0016" + fill="white" + id="path4" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M0 14.3679L46.0879 125.968H167.299V109.652H55.4118L15.2536 14.3679H0Z" + fill="white" + id="path5" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M181.448 62.9504H211.178C222.669 62.9504 231.993 72.2334 231.993 83.7247V88.9182C231.993 100.369 222.669 109.693 211.178 109.693H165.09V126.009H211.178C231.707 126.009 248.351 109.406 248.351 88.9182V83.7247C248.351 63.2366 231.707 46.6335 211.178 46.6335H165.09V62.9504H181.448Z" + fill="white" + id="path6" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M78.4354 14H92.5848V95.1751H79.5804L44.9839 14H59.8694L78.4354 57.3888V14Z" + fill="white" + id="path7" + style="fill:#009ee0;fill-opacity:1" /> + <path + d="M227.535 15.472H119.697V93.3348H211.178V79.2262H160.592C148.61 78.8173 139.04 69.0027 139.04 56.9797V51.7862C139.04 39.7632 148.61 29.9486 160.592 29.5397H211.178H227.535V15.4312V15.472Z" + fill="white" + id="path8" + style="fill:#009ee0;fill-opacity:1" /> +</svg> diff --git a/world_ranking_list.py b/world_ranking_list.py index e42c0deed157187b7caa356ad5642864961fa253..bf1c503937d621b29d7cbf8c570e0f286ac0400e 100644 --- a/world_ranking_list.py +++ b/world_ranking_list.py @@ -37,6 +37,52 @@ def get_world_ranking_html(self, sorted_teams): max-width: 1200px; width: 100%; animation: fadeInUp 0.5s ease-out forwards; + justify-content: center; + }} + + .sponsor{{ + flex: 1; + display: flex; + align-items: center; + justify-content: center; + opacity: 75%; + transition: all 0.3s cubic-bezier(.08,.82,.17,1); + filter: brightness(calc(1%)) grayscale(100%) contrast(1000%); + min-width: 113px; + }} + + .sponsor:hover {{ + opacity: 100%; + filter: none; + }} + + .sponsor img{{ + width: 100%; + height: auto; + min-width: 120px; + }} + + .sponsoring-container {{ + margin: 30px 0; + justify-content: center; + width: 100%; + animation: fadeInUp 0.5s ease-out forwards; + opacity: 0; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + border-radius: 5px; + overflow: hidden; + background-color: white; + box-sizing: border-box; + padding-bottom: 30px; + padding-left: 45px; + padding-right: 45px; + }} + + .sponsoring-flex {{ + display: flex; + row-gap: 20px; + column-gap: 80px; + flex-wrap: wrap; }} h1 {{ @@ -209,8 +255,19 @@ def get_world_ranking_html(self, sorted_teams): <h1>Formula Student {self.competition_type} Elo Rankings</h1> <p>Rankings based on {len(self.competition_history)} competitions.</p> - <div class="chart-container"> - <img src="images/top_teams_elo.{self.IMAGE_FORMAT}" alt="Top Teams Elo Chart"> + <div class="sponsoring-container"> + <div style="margin-bottom: 12px; margin-top: 16px; text-align: center">sponsored by:</div> + <div class="sponsoring-flex"> + <div class="sponsor"> + <a href="https://murtfeldt.de" target="_blank"><img src="../murtfeldt.svg"></a> + </div> + <div class="sponsor"> + <a href="https://www.kordel.de" target="_blank"><img src="../kordel.png"></a> + </div> + <div class="sponsor"> + <a href="https://www.vulcanus-stahl.de/" target="_blank"><img src="../vulcanus.svg"></a> + </div> + </div> </div> <h2>Current Rankings</h2> @@ -238,6 +295,10 @@ def get_world_ranking_html(self, sorted_teams): </table> <div> + <div class="chart-container"> + <img src="images/top_teams_elo.{self.IMAGE_FORMAT}" alt="Top Teams Elo Chart"> + </div> + <div class="chart-container"> <img src="images/elo_distribution.{self.IMAGE_FORMAT}" alt="Elo Distribution"> </div>