templates/home.html.twig line 1

  1. {% extends './base.html.twig' %}
  2. {% block title %}{{ 'title_home'|trans({}, 'messages') }}{% endblock %}
  3. {% block body %}
  4.     <div class="border-bottom">
  5.         <div class="bg-light py-1">
  6.             <div class="container-fluid">
  7.                 <div class="row align-items-center gx-lg-2 gx-0">
  8.                     <div class="col-6"><span>A simple way to send SMS messages to your customers.</span></div>
  9.                     <div class="col-6 text-end">
  10.                         {{ flags|raw }}
  11.                     </div>
  12.                 </div>
  13.             </div>
  14.         </div>
  15.         <div class="py-3">
  16.             <div class="container-fluid">
  17.                 <div class="row w-100 align-items-center gx-lg-2 gx-0">
  18.                     <div class="col-xxl-2 col-lg-3 col-md-6 col-5">
  19.                         <a class="navbar-brand d-none d-lg-block" href="./index.html">
  20.                             <img src="../../../internalImages/logo.png" alt="eCommerce HTML Template" style="width: 200px;">
  21.                         </a>
  22.                         <div class="d-flex justify-content-between w-100 d-lg-none">
  23.                             <a class="navbar-brand" href="./index.html">
  24.                                 <img src="../../../internalImages/logo.png" alt="eCommerce HTML Template" style="width: 200px;">
  25.                             </a>
  26.                         </div>
  27.                     </div>
  28.                     <div class="col-lg-10 col-xxl-10 text-end col-md-6 col-7">
  29.                         <div class="list-inline">
  30.                             <div class="list-inline-item">
  31.                                 {% if is_granted('ROLE_USER') %}
  32.                                     <a href="{{ path('logout') }}" class="text-decoration-none" title="{{ 'logout_button_alt'|trans({}, 'messages') }}">
  33.                                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" width="40"><path d="M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"/></svg>
  34.                                     </a>
  35.                                 {% else %}
  36.                                     <a href="{{ path('login') }}" class="text-decoration-none" title="{{ 'login_button_alt'|trans({}, 'messages') }}">
  37.                                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" width="40"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8 .4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"/></svg>
  38.                                     </a>                        
  39.                                 {% endif %}        
  40.                             </div>
  41.                         </div>
  42.                     </div>
  43.                 </div>
  44.             </div>
  45.         </div>
  46.         <nav class="navbar navbar-expand-lg navbar-dark bg-dark" aria-label="Eighth navbar example">
  47.             <div class="container-fluid">
  48.               
  49.               <button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample07" aria-controls="navbarsExample07" aria-expanded="false" aria-label="Toggle navigation">
  50.                 <span class="navbar-toggler-icon"></span>
  51.               </button>
  52.         
  53.               <div class="navbar-collapse collapse" id="navbarsExample07">
  54.                 <ul class="navbar-nav me-auto mb-2 mb-lg-0">
  55.                   <li class="nav-item">
  56.                     {% if is_granted('ROLE_USER') %}
  57.                         <a href="{{ path('home') }}" class="nav-link" title="{{ 'home_button_alt'|trans({}, 'messages') }}"><i class="fas fa-user-edit"></i> {{ 'home_button'|trans({}, 'messages') }}</a>
  58.                     {% endif %}
  59.                   </li>
  60.                   <li class="nav-item dropdown">
  61.                     <a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown" aria-expanded="false">Categorias</a>
  62.                     <ul class="dropdown-menu">
  63.                       <li><a class="dropdown-item" href="#">Action</a></li>
  64.                       <li><a class="dropdown-item" href="#">Another action</a></li>
  65.                       <li><a class="dropdown-item" href="#">Something else here</a></li>
  66.                     </ul>
  67.                   </li>
  68.                 </ul>
  69.                 <form role="search">
  70.                   <input class="form-control" type="search" placeholder="Search" aria-label="Search">
  71.                 </form>
  72.               </div>
  73.             </div>
  74.           </nav>
  75.         
  76.     </div>
  77.     <div class="container-fluid mb-5">
  78.         <div class="row">
  79.             {% set message = '' %} {% set color = '' %} {% set filename = '' %}
  80.             {% for key, value in app.flashes %}
  81.                 {% if key == 'message' %}
  82.                     {% set message = value[0] %}
  83.                 {% elseif key == 'color' %}
  84.                     {% set color = value[0] %}
  85.                 {% elseif key == 'filename' %}
  86.                     {% set filename = value[0] %}
  87.                 {% else %}                
  88.                 {% endif %}
  89.             {% endfor %}
  90.             {% if message %}
  91.             <div class="container">
  92.                 <div class="row d-flex justify-content-between align-items-center my-3 pb-3">
  93.                     <div class="alert alert-{{ color }} mt-3" role="alert">
  94.                         {{ message }}
  95.                     </div>
  96.                 </div>
  97.             </div>
  98.             {% endif %} 
  99.             <div class="container pt-3">
  100.                 <div class="row">
  101.                     <section class="py-5">
  102.                         <div class="container">
  103.                             <div class="row justify-content-center text-center mb-4">
  104.                                 <div class="col-lg-8 col-xxl-7">
  105.                                     <h2 class="display-5 fw-bold">How it Works</h2>
  106.                                     <p class="lead">Follow these steps to create an account and start using our SMS service.</p>
  107.                                 </div>
  108.                             </div>
  109.                             <div class="row">
  110.                                 <div class="col-md-3">
  111.                                     <div class="text-center position-relative">
  112.                                         <div class="step-icon mx-auto bg-primary border rounded-circle d-flex align-items-center justify-content-center " style="width:120px;height:120px;">
  113.                                             <i class="fas fa-user-plus text-white" style="font-size: 30px;"></i>
  114.                                         </div>
  115.                                         <h4 class="mt-3 fs-5">Create Account</h4>
  116.                                         <p class="lead text-muted mt-4 fs-5 px-lg-3 mb-5 mb-lg-0">Fill out the registration form to create an account.</p>
  117.                                         <div class="arrow-icon position-absolute d-none d-lg-block" style="top:50px; right:-25px">
  118.                                             <svg class="bi bi-arrow-right" fill="currentColor" height="30" viewBox="0 0 16 16" width="30" xmlns="http://www.w3.org/2000/svg">
  119.                                             <path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z" fill-rule="evenodd"></path></svg>
  120.                                         </div>
  121.                                     </div>
  122.                                 </div>
  123.                                 <div class="col-md-3">
  124.                                     <div class="text-center position-relative">
  125.                                         <div class="step-icon mx-auto bg-primary border rounded-circle d-flex align-items-center justify-content-center" style="width: 120px;height: 120px;">
  126.                                             <svg class="bi bi-envelope-exclamation text-white" fill="currentColor" height="30" viewBox="0 0 16 16" width="30" xmlns="http://www.w3.org/2000/svg">
  127.                                             <path d="M2 2a2 2 0 0 0-2 2v8.01A2 2 0 0 0 2 14h5.5a.5.5 0 0 0 0-1H2a1 1 0 0 1-.966-.741l5.64-3.471L8 9.583l7-4.2V8.5a.5.5 0 0 0 1 0V4a2 2 0 0 0-2-2H2Zm3.708 6.208L1 11.105V5.383l4.708 2.825ZM1 4.217V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v.217l-7 4.2-7-4.2Z"></path>
  128.                                             <path d="M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm.5-5v1.5a.5.5 0 0 1-1 0V11a.5.5 0 0 1 1 0Zm0 3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"></path></svg>
  129.                                         </div>
  130.                                         <h4 class="mt-3 fs-5">Activate Your Accoount</h4>
  131.                                         <p class="lead text-muted mt-4 fs-5 px-lg-3 mb-5 mb-lg-0">Check your email for the activation link.</p>
  132.                                         <div class="arrow-icon d-none d-lg-block position-absolute" style="top:50px; right:-25px">
  133.                                             <svg class="bi bi-arrow-right" fill="currentColor" height="30" viewBox="0 0 16 16" width="30" xmlns="http://www.w3.org/2000/svg">
  134.                                             <path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z" fill-rule="evenodd"></path></svg>
  135.                                         </div>
  136.                                     </div>
  137.                                 </div>
  138.                                 <div class="col-md-3">
  139.                                     <div class="text-center position-relative">
  140.                                         <div class="step-icon mx-auto bg-primary border rounded-circle d-flex align-items-center justify-content-center" style="width: 120px;height: 120px;">
  141.                                             <i class="fas fa-money-check-alt text-white" style="font-size: 30px;"></i>
  142.                                         </div>
  143.                                         <h4 class="mt-3 fs-5">Purchase Credits</h4>
  144.                                         <p class="lead text-muted mt-4 fs-5 px-lg-3 mb-5 mb-lg-0">Purchase credits to send SMS messages.</p>
  145.                                         <div class="arrow-icon d-none d-lg-block position-absolute" style="top:50px; right:-25px">
  146.                                             <svg class="bi bi-arrow-right" fill="currentColor" height="30" viewBox="0 0 16 16" width="30" xmlns="http://www.w3.org/2000/svg">
  147.                                             <path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z" fill-rule="evenodd"></path></svg>
  148.                                         </div>
  149.                                     </div>
  150.                                 </div>
  151.                                 <div class="col-md-3">
  152.                                     <div class="text-center position-relative">
  153.                                         <div class="step-icon mx-auto bg-primary border rounded-circle d-flex align-items-center justify-content-center" style="width: 120px;height: 120px;">
  154.                                             <i class="fas fa-key text-white" style="font-size: 30px;"></i>
  155.                                         </div>
  156.                                         <h4 class="mt-3 fs-5">Send SMS</h4>
  157.                                         <p class="lead text-muted mt-4 fs-5 px-lg-3 mb-5 mb-lg-0">You will receive an API key to send SMS messages.</p>
  158.                                     </div>
  159.                                 </div>
  160.                             </div>
  161.                         </div>
  162.                     </section>
  163.                 </div>
  164.             </div>
  165.         </div>
  166.     </div> 
  167.     
  168. {% endblock %}