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 %}
.hero.is-container-overlap
.container
.hero-content.text-center
.hero-content
{% 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 %}
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 %}
{% 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 %}
{% if edition.location %}
h3 {{ edition.location }}
.hero-subtitle.mx-auto.text-center {{ edition.location }}
{% endif %}
{% if edition.header %}
.hero-background(style="background-image: url({{ edition.header.url }})")
{% else %}
.hero-background(style="background-image: url({% static 'images/bcon19_cityscape_notext.jpg' %})")
{% endif %}
.hero-bg(style="background-image: url({{ edition.header.url }}); background-position-y: 50%")
.hero-overlay
| {% endblock jumbotron %}
| {% endblock header %}