{% extends "base.html.twig" %}
{% block title %}Homepage{% endblock %}
{% block bodyClass %}homepage{% endblock %}
{% import "components/macros.html.twig" as macros %}
{% block body %}
<main role="main">
<section class="jumbotron text-center pt-5">
<div class="jumbotron-filter"></div>
<div class="container position-relative z-200">
<h1 class="jumbotron-heading">Welcome to</h1>
<img src="{{ asset('build/images/RappBattleLogoAlpha.png') }}" class="main-logo" alt="" />
<p class="lead text-white">Where you can challenge your bros in a real RAP BATTLE! You can go to</p>
<p>
<a href="{{ path('downloads') }}" class="btn btn-primary my-2" >Downloads</a>
<a href="#" class="btn btn-secondary my-2 js-scroll-to" data-target="battles">Or vote in battles bellow</a>
</p>
</div>
</section>
<section id="battles" class="battles">
<div class="container py-5">
<div class="row">
<div class="col-12 heading">
<h2>New battles</h2>
</div>
</div>
<div class="row">
{% if homepageBattles|length > 0 %}
{% for battle in homepageBattles %}
{{ macros.renderCard('battlecard',null,battle) }}
{% endfor %}
<a href="{{ path('battles') }}" class="btn btn-outline">See all battles</a>
{% else %}
<div class="no-content-message">
<p class="text-center">No battles at this moment :(</p>
</div>
{% endif %}
</div>
</div>
</section>
<section id="beats" class="beats bg-custom">
<div class="container py-5">
<div class="row">
<div class="col-12 heading">
<h2 class="text-white">New beats</h2>
</div>
</div>
{% if homepageBeats|length > 0 %}
<div class="row">
{% for beat in homepageBeats %}
{{ macros.renderCard('samplecard',beat,null) }}
{% endfor %}
</div>
<div class="row">
<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>
</div>
{% else %}
<div class="row">
<div class="no-content-message">
<p class="text-center text-white">No beats at this moment :(</p>
</div>
</div>
{% endif %}
</div>
</section>
{% include 'components/parts/downloads.html.twig' %}
</main>
{% endblock %}