Skip to content
Snippets Groups Projects
Commit fc79424a authored by Štěpán Farka's avatar Štěpán Farka
Browse files

[ADD] linebreaksbr to header carousel & HomePageCarouseSlideBlock Charblock -> Textblock

parent aea69d74
No related branches found
No related tags found
2 merge requests!646Release,!645Feature/main november updates
Pipeline #10421 passed
......@@ -44,8 +44,8 @@ class BoxesBlock(StructBlock):
class HomePageCarouseSlideBlock(CTAMixin, StructBlock):
image = ImageChooserBlock(label="Hlavní obrázek jednoho slidu carouselu")
line_1 = CharBlock(label="První řádek")
line_2 = CharBlock(label="Druhý řádek")
line_1 = TextBlock(label="První řádek")
line_2 = TextBlock(label="Druhý řádek")
class Meta:
icon = "form"
......
......@@ -8,8 +8,8 @@
<img src="{{ slide_img.url }}" draggable="false">
<div class="header-carousel--text grid-container">
<div class="h-fit">
<h1 class="text-white">{{ slide.line_1 }}</h1>{# TODO SEO <h1><span><span> #}
<h1 class="text-yellow-500 mb-2">{{ slide.line_2 }}</h1>
<h1 class="text-white">{{ slide.line_1|linebreaksbr }}</h1>{# TODO SEO <h1><span><span> #}
<h1 class="text-yellow-500 mb-2">{{ slide.line_2|linebreaksbr }}</h1>
{% include 'main/includes/href_button.html' with btn_link=slide.button_link btn_text=slide.button_text extra_classes="btn-carousel" %}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment