templates/index.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block stylesheets %}
  3. <style>
  4. .counter-sec{
  5.   padding: 80px 0;
  6.   width: 100%;
  7.   background: #131416;
  8.   position: absolute;
  9.   top: 50%;
  10.   width: 100%;
  11.   transform: translateY(-50%);
  12. }
  13. .num{
  14.   font-size: 40px;
  15.   margin: 20px 0;
  16. }
  17. .box{
  18.   flex: 1;
  19.   text-align: center;
  20.   padding: 20px;
  21.   color: #000;
  22.   text-transform: uppercase;
  23. }
  24. .box i{
  25.   font-size: 40px;
  26.   color: #333;
  27. }
  28. </style>
  29. {% endblock %}
  30. {% block body %}
  31. {% for message in app.flashes('success') %}
  32.     <div class="alert alert-success">
  33.         {{ message }}
  34.     </div>
  35. {% endfor %}
  36.     <div class="row" style="background-color:white">
  37.         <div class="col-lg-4"><img src="{{ asset('assets/images/logo-eurcaw.jpg') }}" style="width:100%"></div>
  38.         <div class="col-lg-8" style="padding-right:50px;">
  39.         <center><h2>EURCAW -<i> Ruminants & Equines</i></h2></center>
  40.             <p style="text-align:justify">Welcome to the database of experts listed for the European Reference Centre for Animal Welfare - Ruminants and Equines !<br /><br />
  41. The centre is mandated by the European Commission and is co-led by SLU (coordinator), UCD, BOKU, ELGO-VRI, INRAE and IZSAM.<br /><br />
  42. You can only register if the administrators have previously added your email to the database. Once your account is created (“Login” > “Create an account”), please log in and then modify your personal information and your skills/expertise in your profile (“<i class="fa fa-user"></i> My account” in the  menu). Don’t forget to save your changes.<br /><br />
  43. We encourage you to be as precise as possible when describing your skills/expertise per species. Please use the “All species” category as a last resort. “General skills” independent of the species are listed separately.<br /><br />
  44. You can update your information at any time by logging into your account. Reminders to update it will be sent from time to time (maximum once a year).<br /><br />
  45. The data are stored by INRAE (French National Institute for Research on Food, Agriculture and the Environment). The information will only be used for the purposes of EURCAW-<i> Ruminants & Equines</i> activities.To know how your data is processed, to exercise your right of withdrawal or for any suggestions or technical problems, please <a href="{{ path ('contact') }}">contact us</a>.</p>
  46.         </div>
  47.         {# <div class="col-lg-3">
  48.             <center><strong>Experts by countries</strong>
  49.             {{ dataCountries|raw }}
  50.         </div> #}
  51.     </div>
  52.     <div class="row">
  53.     <div class="col-md-12">
  54.         <section class="panel panel-primary">
  55.             <header class="panel-heading">
  56.                 <div class="panel-actions">
  57.                     <a href="#" class="fa fa-caret-down"></a>
  58.                     <a href="#" class="fa fa-times"></a>
  59.                 </div>
  60.                 <h2 class="panel-title">Experts</h2>
  61.             </header>
  62.             <div class="panel-body">
  63.                 <div class="row">
  64.                     <div class="col-md-4">
  65.                         <div class="counter">
  66.                             <div class="box">
  67.                                 <i class="fas fa-users"></i>
  68.                                 <div class="num">{{ entitiesExperts|length }}</div>
  69.                                 Experts
  70.                             </div>
  71.                         </div>
  72.                     </div>
  73.                     <div class="col-md-4">
  74.                         <div class="counter">
  75.                             <div class="box">
  76.                                 <i class="fas fa-earth-americas"></i>
  77.                                 <div class="num">{{ nbCountries }}</div>
  78.                                 Countries
  79.                             </div>
  80.                         </div>
  81.                     </div>
  82.                     <div class="col-md-4">
  83.                         <div class="counter">
  84.                             <div class="box">
  85.                                 <i class="fas fa-cow"></i>
  86.                                 <div class="num">{{ entitiesSpecies|length }}</div>
  87.                                 Species
  88.                             </div>
  89.                         </div>
  90.                     </div>
  91.                 </div>
  92.             </div>
  93.         </section>
  94.     </div>
  95.     <div class="row">
  96.         <div class="col-md-12">
  97.             <section class="panel">
  98.                 <header class="panel-heading">
  99.                     <div class="panel-actions">
  100.                         <a href="#" class="fa fa-caret-down"></a>
  101.                         <a href="#" class="fa fa-times"></a>
  102.                     </div>
  103.                     <h2 class="panel-title">Informations</h2>
  104.                 </header>
  105.                 <div class="panel-body">
  106.                     <div class="row">
  107.                         <div class="col-lg-6">
  108.                             <center><strong>Experts by countries</strong>
  109.                             <div style="width:60%">{{ dataCountries|raw }}</div>
  110.                         </div>
  111.                         <div class="col-lg-6">
  112.                             <center><strong>Experts by Species</strong>
  113.                             <div style="width:60%">{{ dataGS|raw }}</div>
  114.                         </div>
  115.                     </div>
  116.                 </div>
  117.                 
  118.             </section>
  119.         </div>
  120.     </div>
  121. {% endblock %}
  122. {% block javascripts %}
  123.   <script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
  124.   <script src="https://cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0.0/jquery.counterup.min.js"></script>
  125.   <script>
  126.   $(document).ready(function(){
  127.     $('.num').counterUp({
  128.       time: 1200
  129.     });
  130.   });
  131.   </script>
  132. {% endblock %}