|
|
|
@ -3,9 +3,38 @@
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>Twig view</title>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
background-color: #f1f1f1;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
section{
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
background-color: white;
|
|
|
|
|
width: 60%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.team {
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-color: darkgrey;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.logo_team {
|
|
|
|
|
width: 15%;
|
|
|
|
|
aspect-ratio: 3/2;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<header>
|
|
|
|
|
<h1><a href="{{ path('/') }}">IQBall</a></h1>
|
|
|
|
|
</header>
|
|
|
|
|
<section>
|
|
|
|
|
{% if teams is empty %}
|
|
|
|
|
<p>Aucune équipe n'a été trouvée</p>
|
|
|
|
|
<div class="container">
|
|
|
|
@ -24,10 +53,10 @@
|
|
|
|
|
{% for t in teams %}
|
|
|
|
|
<div class="team" onclick="window.location.href = '{{ path("/team/#{t.getId()}") }}'">
|
|
|
|
|
<p>Nom de l'équipe : {{ t.getName() }}</p>
|
|
|
|
|
<img src="{{ t.getPicture() }}" alt="logo de l'équipe">
|
|
|
|
|
<img src="{{ t.getPicture() }}" alt="logo de l'équipe" class="logo_team">
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|