src/views/index.twig line 1

Open in your IDE?
  1. {% import 'utility/_macros.twig' as macros %}
  2. {% extends 'layout/_base.twig' %}
  3. {% block head %}
  4. {% include 'layout/_head.twig' %}
  5. <script src="{{ asset('bundles/bazingajstranslation/js/translator.min.js') }}"></script>
  6. <script src="{{ url('bazinga_jstranslation_js') }}"></script>
  7. {{ macros.styleNscript('index') }}
  8. {% endblock %}
  9. {% block navbar include('layout/_navbar.twig') %}
  10. {% block main %}
  11. {{ include('headers/_index.twig') }}
  12. <style>
  13. .wrapper--small {
  14. max-width:94% !important;
  15. }
  16. </style>
  17. {# SECTION #}
  18. <section class="section section--issuesthemes" id="issuesandthemes">
  19.     <div class="wrapper--small text-center">
  20.         <h2 class="heading--display semibold issuesthemes--title mb-3">{{ 'issues_and_themes'|trans }}</h2>
  21.     </div>
  22.     <div class="wrapper--small ">
  23.         <div>
  24.             <div class="issues__theme">
  25.                 {% for bucket in data.buckets %}
  26.                 {% set bg = asset("uploads/#{bucket.cover}") %}
  27.                 <div class="card">
  28.                     <div class="card-body">
  29.                         <div style="background-image: url({{ bg }});height: 250px; width: 100%; background-position: center;background-size: cover;">
  30.                         </div>
  31.                         <div class="card-heading">{{ bucket.title|striptags|raw }}</div>
  32.                         <p style="font-size: 14px;height: 70px;">{{ bucket.description|u.truncate(120, '...') }}</p>
  33.                         <a class="btn btn-warning rounded-5" style="font-size: 14px;"
  34.                             href="{{ path('web_bucket', { id: bucket.id }) }}">{{ 'know_more'|trans }}
  35.                             <i class="fa-solid fa-arrow-right-long"></i>
  36.                         </a>
  37.                     </div>
  38.                 </div>
  39.                 {% else %}
  40.                 <div class="alert alert--warning alert--100">{{ 'no_issues_and_themes_found'|trans }}</div>
  41.                 {% endfor %}
  42.             </div>
  43.         </div>
  44.     </div>
  45. </section>
  46. <section class="section section--issuesthemes" style="background-color: #fff !important;">
  47.     <div class="wrapper--small text-center">
  48.         <h1 class="heading--display semibold header__news--head">{{ 'home.updates'|trans }}</h1>
  49.     </div>
  50.     <div class="wrapper--small ">
  51.         <div class="updates__theme">
  52.             {% for update in data.updates %}
  53.            <div>
  54.                 <div class="card">
  55.                     <div class="card-body"> 
  56.                         <div style="background-image: url('./assets/images/update-img.png');height: 250px; width: 100%; background-position: center;background-size: cover;">
  57.                         </div>
  58.                    <p class="article--title" style="font-size: 14px;height: 100px;padding: 12px 0px;">{{ update.title|raw }}</p>
  59.                 <a  class="btn btn-warning rounded-5" style="font-size: 14px;" href="{{ update.link }}" target="_blank">{{ 'home.read'|trans }} 
  60.                     <i class="fa-solid fa-arrow-right-long"></i></a>           
  61.                      </div>
  62.                 </div>
  63.             </div>            
  64.             {% endfor %}
  65.         </div>
  66. </section>
  67. {{ include('/join_our_mailing.twig') }}
  68. {% endblock %}
  69. {% block footer include('layout/_footer.twig') %}