parent
cd4e41a05b
commit
ae968fcf46
@ -0,0 +1,19 @@ |
||||
html, |
||||
body { |
||||
background: linear-gradient( |
||||
20deg, |
||||
#1b223a 0 20%, |
||||
#e84038 20% 40%, |
||||
#f39200 40% 60%, |
||||
#ffd300 60% 80%, |
||||
#1b223a 80% 100% |
||||
); |
||||
} |
||||
|
||||
.bubble { |
||||
padding: 20px; |
||||
background-color: white; |
||||
border-radius: 24px; |
||||
/* box-shadow: 0 0 0px 1px #fbead6; */ |
||||
box-shadow: 0 0 0px 0px #fbead6; |
||||
} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,61 @@ |
||||
{% load static %} |
||||
|
||||
<div class="cell medium-6 large-3 my-block"> |
||||
<div class="dark_bubble"> |
||||
|
||||
<div class="flex-row"> |
||||
<label class="left-label matchtitle white">{{ group_stage.title }}</label> |
||||
<!-- <label class="right-label info">{{ match.date }}</label> --> |
||||
</div> |
||||
|
||||
<div> |
||||
|
||||
{% for team in group_stage.teams %} |
||||
|
||||
<div class="table-row-2-colums bottom-border"> |
||||
<div class="table-cell table-cell-large"> |
||||
{% for name in team.names %} |
||||
<div class="{% if team.is_winner %}winner{% endif %}"> |
||||
{{ name }} |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
<div class="table-cell center"> |
||||
<div class="score ws">{{ team.wins_losses }}</div> |
||||
<div class="ws">{{ team.formatted_diff }}</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<!-- <div class="table-row-3-colums team-names-box {% cycle 'bottom-border' '' %} padding-bottom-small"> |
||||
|
||||
<div class="table-cell table-cell-large"> |
||||
{% for name in team.names %} |
||||
<div class="semibold {% if team.is_winner %}winner{% endif %}"> |
||||
{{ name }} |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
<div class="table-cell alignright"> |
||||
|
||||
{% if match.started %} |
||||
{% for score in team.scores %} |
||||
<span class="score ws {% if team.is_winner %}winner{% endif %}">{{ score }}</span> |
||||
{% endfor %} |
||||
{% else %} |
||||
<span class="score ws">{{ team.weight }}</span> |
||||
{% endif %} |
||||
|
||||
</div> |
||||
</div> --> |
||||
{% endfor %} |
||||
|
||||
</div> |
||||
|
||||
<div class="flex-row top-margin"> |
||||
<label class="left-label minor-info semibold beige">{{ group_stage.formatted_duration }}</label> |
||||
<!-- <label class="right-label minor-info">{{ match.court }}</label> --> |
||||
<!-- <a href="" class="right-label">{{ match.court }}</a> --> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
@ -0,0 +1,13 @@ |
||||
{% extends 'tournaments/base.html' %} |
||||
|
||||
{% block head_title %}Poules{% endblock %} |
||||
{% block first_title %}{{ tournament.event.display_name }}{% endblock %} |
||||
{% block second_title %}{{ tournament.name }}{% endblock %} |
||||
|
||||
{% block content %} |
||||
<div class="grid-x"> |
||||
{% for group_stage in group_stages %} |
||||
{% include 'tournaments/group_stage_cell.html' %} |
||||
{% endfor %} |
||||
</div> |
||||
{% endblock %} |
||||
@ -1,13 +1,18 @@ |
||||
from django.urls import path |
||||
from django.urls import include, path |
||||
|
||||
from . import views |
||||
|
||||
urlpatterns = [ |
||||
path("", views.index, name="index"), |
||||
path('tournament/<str:tournament_id>/', views.tournament, name='tournament'), |
||||
path('tournament/<str:tournament_id>/summons/', views.tournament_summons, name='tournament-summons'), |
||||
path('tournament/<str:tournament_id>/broadcast/', views.tournament_matches, name='tournament-matches'), |
||||
path('tournament/<str:tournament_id>/matches-json/', views.tournament_matches_json, name='tournament-matches-json'), |
||||
path('tournament/<str:tournament_id>/live-group-stages-json/', views.tournament_live_group_stage_json, name='live-group-stages-json'), |
||||
path("tournament/<str:tournament_id>/", |
||||
include([ |
||||
path('', views.tournament, name='tournament'), |
||||
path('summons/', views.tournament_summons, name='tournament-summons'), |
||||
path('broadcast/matches', views.tournament_matches, name='broadcasted-matches'), |
||||
path('matches-json/', views.tournament_matches_json, name='tournament-matches-json'), |
||||
path('broadcast/group-stages/', views.tournament_broadcasted_group_stages, name='broadcasted-group-stages'), |
||||
path('group-stages/', views.tournament_group_stages, name='group-stages'), |
||||
]) |
||||
), |
||||
path('players/', views.players, name='players'), |
||||
] |
||||
|
||||
@ -0,0 +1,4 @@ |
||||
def format_seconds(seconds): |
||||
hours = int(seconds / 3600) |
||||
minutes = int((seconds % 3600) / 60) |
||||
return f"{hours:02d}h{minutes:02d}min" |
||||
Loading…
Reference in new issue