<!doctype html>

<html lang="{{ config('app.locale') }}">

<head>
    {% include "qcr.theme.qcr::partials/metadata" %}
</head>

<body id="skrollr-body">

{% include template.theme.header %}

<div class="container">
    {% include "qcr.theme.qcr::partials/messages" %}
</div>

{% if page.id and not page.blocks.has('*_banner_block') %}
    {% include "qcr.theme.qcr::grids/default_banner" %}
{% endif %}

{% if page.id and page.blocks.has('*_banner_block') %}
    {% for block in page.blocks %}
        {% if str_is('*_banner_block', block.extension.value.slug) %}
            {{ block.render()|raw }}
        {% endif %}
    {% endfor %}
{% endif %}

<main id="main">
    <div id="content">
        {% block content %}{% endblock %}
    </div>
</main>

{% include "qcr.theme.qcr::partials/footer" %}
{% include "qcr.theme.qcr::partials/modals" %}
{% include "qcr.theme.qcr::partials/assets" %}

</body>
</html>
