templates/pages/homepage.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}Homepage{% endblock %}
  3. {% block bodyClass %}homepage{% endblock %}
  4. {% import "components/macros.html.twig" as macros %}
  5. {% block body %}
  6.     <main role="main">
  7.         <section class="jumbotron text-center pt-5">
  8.             <div class="jumbotron-filter"></div>
  9.             <div class="container position-relative z-200">
  10.                 <h1 class="jumbotron-heading">Welcome to</h1>
  11.                 <img src="{{ asset('build/images/RappBattleLogoAlpha.png') }}" class="main-logo" alt="" />
  12.                 <p class="lead text-white">Where you can challenge your bros in a real RAP BATTLE! You can go to</p>
  13.                 <p>
  14.                     <a href="{{ path('downloads') }}" class="btn btn-primary my-2" >Downloads</a>
  15.                     <a href="#" class="btn btn-secondary my-2 js-scroll-to" data-target="battles">Or vote in battles bellow</a>
  16.                 </p>
  17.             </div>
  18.         </section>
  19.         <section id="battles" class="battles">
  20.             <div class="container py-5">
  21.                 <div class="row">
  22.                     <div class="col-12 heading">
  23.                         <h2>New battles</h2>
  24.                     </div>
  25.                 </div>
  26.                 <div class="row">
  27.                     {% if homepageBattles|length > 0 %}
  28.                         {% for battle in homepageBattles %}
  29.                             {{ macros.renderCard('battlecard',null,battle) }}
  30.                         {% endfor %}
  31.                         <a href="{{ path('battles') }}" class="btn btn-outline">See all battles</a>
  32.                     {% else %}
  33.                         <div class="no-content-message">
  34.                             <p class="text-center">No battles at this moment :(</p>
  35.                         </div>
  36.                     {% endif %}
  37.                 </div>
  38.             </div>
  39.         </section>
  40.         <section id="beats" class="beats bg-custom">
  41.             <div class="container py-5">
  42.                 <div class="row">
  43.                     <div class="col-12 heading">
  44.                         <h2 class="text-white">New beats</h2>
  45.                     </div>
  46.                 </div>
  47.                     {% if homepageBeats|length > 0 %}
  48.                     <div class="row">
  49.                         {% for beat in homepageBeats %}
  50.                             {{ macros.renderCard('samplecard',beat,null) }}
  51.                         {% endfor %}
  52.                     </div>
  53.                     <div class="row">
  54.                         <a href="{{ path('battles') }}" class="btn btn-outline-primary btn-outline col-3 mt-5 m-auto text-center text-white">See all beats</a>
  55.                     </div>
  56.                     {% else %}
  57.                     <div class="row">
  58.                         <div class="no-content-message">
  59.                             <p class="text-center text-white">No beats at this moment :(</p>
  60.                         </div>
  61.                     </div>
  62.                     {% endif %}
  63.             </div>
  64.         </section>
  65.         {% include 'components/parts/downloads.html.twig' %}
  66.     </main>
  67. {% endblock %}