UI: 2024 Hero component options #103971

Merged
Márton Lente merged 66 commits from ui/2024-hero-options into main 2024-09-24 13:00:31 +02:00
Showing only changes of commit ca3109bd3c - Show all commits

View File

@ -6,26 +6,22 @@
| {% block jumbotron %} | {% block jumbotron %}
.hero.is-container-overlap .hero.is-container-overlap
.container .container
.hero-content.text-center .hero-content
{% if edition.logo %} {% if edition.logo %}
img.d-block.mx-auto.img-fluid(src="{{ edition.logo.url }}", alt="{{ edition.title }}") img.d-block.mb-3.mx-auto.img-fluid(src="{{ edition.logo.url }}", alt="{{ edition.title }}")
{% else %} {% else %}
img.d-block.mx-auto.img-fluid(src="{% static 'images/BCON_logo.svg' %}", alt="{{ edition.title }}") img.d-block.mb-3.mx-auto.img-fluid(src="{% static 'images/BCON_logo.svg' %}", alt="{{ edition.title }}")
{% endif %} {% endif %}
{% if edition.date_start %} {% if edition.date_start %}
h2.mt-3 {{ edition.date_start | date:'d' }}-{{ edition.date_end | date:'d M, Y' }} h2.mx-auto.text-center {{ edition.date_start | date:'d' }}-{{ edition.date_end | date:'d M, Y' }}
{% endif %} {% endif %}
{% if edition.location %} {% if edition.location %}
h3 {{ edition.location }} .hero-subtitle.mx-auto.text-center {{ edition.location }}
{% endif %} {% endif %}
{% if edition.header %} .hero-bg(style="background-image: url({{ edition.header.url }}); background-position-y: 50%")
.hero-background(style="background-image: url({{ edition.header.url }})")
{% else %}
.hero-background(style="background-image: url({% static 'images/bcon19_cityscape_notext.jpg' %})")
{% endif %}
.hero-overlay .hero-overlay
| {% endblock jumbotron %} | {% endblock jumbotron %}
| {% endblock header %} | {% endblock header %}