templates/default/achatCredit.html.twig line 1

Open in your IDE?
  1. {% extends 'base2.html.twig' %}
  2. {% block title %}Hello DefaultController!{% endblock %}
  3. {% block body %}
  4. <style>
  5. .credit-card {
  6.             border: 1px solid #ddd;
  7.             border-radius: 8px;
  8.             padding: 20px;
  9.             max-width: 300px;
  10.             margin: auto;
  11.             text-align: center;
  12.             background-color: white;
  13.         }
  14.         .credit-title {
  15.             font-size: 24px;
  16.             margin-bottom: 10px;
  17.         }
  18.         .credit-info {
  19.             margin-bottom: 20px;
  20.         }
  21.         .buy-button {
  22.             background-color: #ACB9CA;
  23.             color: white;
  24.             border: none;
  25.             padding: 10px 20px;
  26.             border-radius: 5px;
  27.             cursor: pointer;
  28.             transition: background-color 0.3s;
  29.         }
  30.         .buy-button:hover {
  31.             background-color: #D82E9F;
  32.         }
  33. </style>
  34. <section class="landing-padding">
  35.    <div class="container my-5">
  36.     <div class="row">
  37.         <div class="col-md-12">
  38.             <div class="credit-card">
  39.             <form action="{{ path('achatRecap')}}" method="post" >
  40.                 <div class="credit-title">Acheter du crédit</div>
  41.                 <span class="credit-info">1 crédit = 1€</span><br>
  42.                 <p class="credit-info">Achat minimum de 10 crédits</p>
  43.                 <input type="number" class="form-control" min="10" name="quantite" value="10">
  44.                 <button class="buy-button mt-3" type="submit"><a style="color: white;">Acheter</a></button>
  45.                 </form>
  46.             </div>
  47.         </div>
  48.     </div>
  49. </div>
  50. </section>
  51. {% endblock %}