{% load wagtailcore_tags core_tags gem_tags %}

{% comment %}
    1. Display default or custom image
    2. Display color theme
    3. On Main.html - Display on separate position
    4. If User is authenticated show GCN Competition
{% endcomment %}
    <div class="gcn-competition gcn-competition--homepage gcn-competition{{form_page.get_effective_extra_style_hints}}">
        {% include "patterns/basics/forms/forms-modules/forms_gcn-heading.html" with pagetype=survey %}
        {%  if form_page.homepage_introduction %}
            {% include "patterns/basics/headings/sp_variations/heading.html" with type="subheading" htmltag="p" title=form_page.homepage_introduction|smarttruncatechars:100|safe %}
        {% endif %}

        {% trans "Take GCN competition" as buttontext %}
        {% with trans_buttontext=form_page.homepage_button_text|default:buttontext %}
        {% pageurl form_page.specific as the_url %}
        {% include "patterns/basics/buttons/sp_variations/button.html" with type="primary" hyperlink=the_url text=trans_buttontext %}
        {% endwith %}
    </div>
