{% extends 'base2.html.twig' %}
{% block title %}Hello DefaultController!{% endblock %}
{% block body %}
<style>
.credit-card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
max-width: 300px;
margin: auto;
text-align: center;
background-color: white;
}
.credit-title {
font-size: 24px;
margin-bottom: 10px;
}
.credit-info {
margin-bottom: 20px;
}
.buy-button {
background-color: #ACB9CA;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.buy-button:hover {
background-color: #D82E9F;
}
</style>
<section class="landing-padding">
<div class="container my-5">
<div class="row">
<div class="col-md-12">
<div class="credit-card">
<form action="{{ path('achatRecap')}}" method="post" >
<div class="credit-title">Acheter du crédit</div>
<span class="credit-info">1 crédit = 1€</span><br>
<p class="credit-info">Achat minimum de 10 crédits</p>
<input type="number" class="form-control" min="10" name="quantite" value="10">
<button class="buy-button mt-3" type="submit"><a style="color: white;">Acheter</a></button>
</form>
</div>
</div>
</div>
</div>
</section>
{% endblock %}