added some css
continuous-integration/drone/push Build is passing Details

pull/84/head
Maël DAIM 1 year ago
parent 1914671699
commit fbe31a4de9

@ -66,6 +66,11 @@
</header> </header>
<section class="container"> <section class="container">
{% if notDeleted %}
<popup>
<p>Cette équipe ne peut être supprimée.</p>
</popup>
{% endif %}
{% if team is defined %} {% if team is defined %}
<div class="team container"> <div class="team container">
<div> <div>

@ -3,9 +3,38 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Twig view</title> <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> </head>
<body> <body>
<header>
<h1><a href="{{ path('/') }}">IQBall</a></h1>
</header>
<section>
{% if teams is empty %} {% if teams is empty %}
<p>Aucune équipe n'a été trouvée</p> <p>Aucune équipe n'a été trouvée</p>
<div class="container"> <div class="container">
@ -24,10 +53,10 @@
{% for t in teams %} {% for t in teams %}
<div class="team" onclick="window.location.href = '{{ path("/team/#{t.getId()}") }}'"> <div class="team" onclick="window.location.href = '{{ path("/team/#{t.getId()}") }}'">
<p>Nom de l'équipe : {{ t.getName() }}</p> <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> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</section>
</body> </body>
</html> </html>

@ -56,7 +56,9 @@
</style> </style>
</head> </head>
<body> <body>
<header>
<h1><a href="{{ path('/') }}">IQBall</a></h1>
</header>
<div class="container"> <div class="container">
<h2>Chercher une équipe</h2> <h2>Chercher une équipe</h2>
<form action="{{ path('/team/search') }}" method="post"> <form action="{{ path('/team/search') }}" method="post">

@ -63,7 +63,6 @@ class TeamGateway {
if ($row == null) { if ($row == null) {
return null; return null;
} }
return new TeamInfo($row['id'], $row['name'], $row['picture'], Color::from($row['main_color']), Color::from($row['second_color'])); return new TeamInfo($row['id'], $row['name'], $row['picture'], Color::from($row['main_color']), Color::from($row['second_color']));
} }

Loading…
Cancel
Save