Skip to content
Snippets Groups Projects
Commit 3c2a2d5d authored by Tomi Valentová's avatar Tomi Valentová
Browse files

add subheading

parent 88d645e5
Branches
No related tags found
1 merge request!29Feat/redesign
Pipeline #19603 passed
<ui-candidate-primary-box <ui-candidate-primary-box
name="{{ name }}" name="{{ name }}"
subheading="{{ subheading }}"
position="{{ position }}" position="{{ position }}"
description="{{ description }}" description="{{ description }}"
url="{{ url }}" url="{{ url }}"
......
context: context:
name: 'Ing. Mgr. et Mgr. Mikuláš Peksa' name: 'Ing. Mgr. et Mgr. Mikuláš Peksa'
subheading: 'Podnadpis'
image_source: '../../../../../static/images/mikulas-arrow.png' image_source: '../../../../../static/images/mikulas-arrow.png'
position: 'Europoslanec' position: 'Europoslanec'
description: 'Mikuláš Peksa (18. 6. 1986) vystudoval fyziku na Matematicko-fyzikální fakultě Univerzity Karlovy. V Německu pracoval jako správce Linuxových serverů a programátor v C++. Po návratu do Čech byl v roce 2017 zvolen poslancem PSP ČR, následně v roce 2019 poslancem Evropského parlamentu. Věnuje se zejména tématům spojeným s fungováním společnosti v digitálním věku.' description: 'Mikuláš Peksa (18. 6. 1986) vystudoval fyziku na Matematicko-fyzikální fakultě Univerzity Karlovy. V Německu pracoval jako správce Linuxových serverů a programátor v C++. Po návratu do Čech byl v roce 2017 zvolen poslancem PSP ČR, následně v roce 2019 poslancem Evropského parlamentu. Věnuje se zejména tématům spojeným s fungováním společnosti v digitálním věku.'
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
{% if description %} {% if description %}
<p <p
class=" class="
text-lg leading-7 pr-4 text-lg leading-7 pr-4 whitespace-pre-line
xl:pr-0 xl:pr-0
...@@ -60,9 +60,7 @@ ...@@ -60,9 +60,7 @@
{% block description_classes %}{% endblock %} {% block description_classes %}{% endblock %}
" "
> >{{ description }}</p>
{{ description }}
</p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:sync-location="true" :sync-location="true"
v-slot="{ isCurrentView, toggleView }" v-slot="{ isCurrentView, toggleView }"
> >
{% include 'patterns/organisms/header/simple_header_with_ui_switch.html' with title='Program' ui_switch_iterable=programs %} {% include 'patterns/organisms/header/simple_header_with_ui_switch.html' with title='Program' description='Description' ui_switch_iterable=programs %}
<main role="main"> <main role="main">
{% for program in programs %} {% for program in programs %}
......
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
{{ name }} {{ name }}
</h2> </h2>
<h3 class="head-6xl mb-5" v-if="subheading">
{{ subheading }}
</h3>
<p v-if="position" class="font-bold text-lg mt-[-0.5rem] mb-3"> <p v-if="position" class="font-bold text-lg mt-[-0.5rem] mb-3">
{{ position }} {{ position }}
</p> </p>
...@@ -45,9 +49,9 @@ ...@@ -45,9 +49,9 @@
</li> </li>
</ul> </ul>
<p class="text-lg mb-8 lg:mb-16"> <div class="text-lg mb-8 lg:mb-16">
{{ description }} <div v-html="description"></div>
</p> </div>
</div> </div>
<div class="flex justify-start"> <div class="flex justify-start">
...@@ -99,7 +103,7 @@ ...@@ -99,7 +103,7 @@
<script> <script>
export default { export default {
name: "CandidatePrimaryBox", name: "CandidatePrimaryBox",
props: ["name", "position", "description", "url", "imageSource", "socialLinks"], props: ["name", "subheading", "position", "description", "url", "imageSource", "socialLinks"],
mounted () { mounted () {
var intersectionOptions = { var intersectionOptions = {
rootMargin: '0px', rootMargin: '0px',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment