Skip to content
Snippets Groups Projects
Commit 43588f50 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

finish everything in new elections web except for program

parent 6254561a
Branches
No related tags found
2 merge requests!876Fix shared articles & release elections web,!863Add elections web
Pipeline #16119 passed
Showing
with 141 additions and 102 deletions
{% extends 'patterns/organisms/articles/articles_section.html' %} {% extends 'styleguide2/includes/organisms/articles/articles_section.html' %}
{% block heading_classes %} head-10xl {% endblock %} {% block heading_classes %} head-10xl {% endblock %}
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<h2 <h2
class="head-10xl" class="head-10xl"
> >
{{ title }} Další kandidáti
</h2> </h2>
<div class="w-full"> <div class="w-full">
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
" "
scroller-classes="!text-black" scroller-classes="!text-black"
> >
{% include 'patterns/molecules/candidates/europarl/candidate_footer_box.html' %} {% for candidate in candidates %}
{% include 'patterns/molecules/candidates/europarl/candidate_footer_box.html' %} {% include 'styleguide2/includes/molecules/candidates/elections/candidate_footer_box.html' with candidate_page=candidate.value %}
{% include 'patterns/molecules/candidates/europarl/candidate_footer_box.html' %} {% endfor %}
</ui-horizontal-scrollable> </ui-horizontal-scrollable>
</div> </div>
</div> </div>
......
{% load wagtailimages_tags %}
<ul
class="candidate-primary-list __js-root"
id="{{ id }}"
>
{% for candidate in self.candidates %}
{% firstof candidate.description candidate.page.description as description %}
{% if candidate.image %}
{% image candidate.image original as resized_candidate_image %}
{% else %}
{% image candidate.page.image original as resized_candidate_image %}
{% endif %}
{% include "styleguide2/includes/molecules/candidates/elections/candidate_primary_box.html" with name=candidate.page.title position=candidate.page.position description=description url=candidate.page.url candidate_image=resized_candidate_image %}
{% endfor %}
</ul>
<ul class="candidate-secondary-list pt-14 pb-16">
<div class="container--wide">
<h2 class="head-7xl mb-3">Další kandidáti</h2>
</div>
{% include "styleguide2/includes/molecules/candidates/elections/candidate_secondary_box.html" %}
{% include "styleguide2/includes/molecules/candidates/elections/candidate_secondary_box.html" %}
{% include "styleguide2/includes/molecules/candidates/elections/candidate_secondary_box.html" %}
{% include "styleguide2/includes/molecules/candidates/elections/candidate_secondary_box.html" %}
{% include "styleguide2/includes/molecules/candidates/elections/candidate_secondary_box.html" %}
{% include "styleguide2/includes/molecules/candidates/elections/candidate_secondary_box.html" %}
</ul>
<ul
class="candidate-primary-list __js-root"
id="{{ id }}"
>
{% include "patterns/molecules/candidates/europarl/candidate_primary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_primary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_primary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_primary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_primary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_primary_box.html" %}
</ul>
<ul class="candidate-secondary-list pt-14 pb-16">
<div class="container--wide">
<h2 class="head-7xl mb-3">Další kandidáti</h2>
</div>
{% include "patterns/molecules/candidates/europarl/candidate_secondary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_secondary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_secondary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_secondary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_secondary_box.html" %}
{% include "patterns/molecules/candidates/europarl/candidate_secondary_box.html" %}
</ul>
{% extends 'patterns/organisms/header/europarl/simple_header_with_tags_and_navigation.html' %} {% extends 'styleguide2/includes/organisms/header/elections/simple_header_with_tags_and_navigation.html' %}
{% block before_heading %} {% block before_heading %}
{% include 'patterns/atoms/header/europarl/navigation.html' with classes='mb-6' first_text=first_nav_text second_text=second_nav_text second_link=second_link %} {% include 'styleguide2/includes/atoms/header/elections/navigation.html' with classes='mb-6' first_text=first_nav_text second_text=second_nav_text second_link=second_link %}
{% endblock %} {% endblock %}
{% block heading_classes %}!text-black head-8xl{% endblock %} {% block heading_classes %}!text-black head-8xl{% endblock %}
......
{% extends 'patterns/organisms/header/europarl/simple_header_with_tags.html' %} {% extends 'styleguide2/includes/organisms/header/elections/simple_header_with_tags.html' %}
{% block classes %} {% block classes %}
bg-pirati-yellow flex items-center w-full mb-10 pt-28 pb-8 bg-pirati-yellow flex items-center w-full mb-10 pt-28 pb-8
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
{% endblock %} {% endblock %}
{% block after_heading %} {% block after_heading %}
{% include 'patterns/molecules/tags/tags.html' with classes='mb-4' tag_color_classes='bg-black text-white' %} {% include 'styleguide2/includes/molecules/tags/tags.html' with classes='mb-4' tag_color_classes='bg-black text-white' %}
<div class="flex justify-start"> <div class="flex justify-start">
<input <input
......
{% extends 'patterns/organisms/header/europarl/simple_header.html' %} {% extends 'styleguide2/includes/organisms/header/elections/simple_header.html' %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block classes %} {% block classes %}
bg-pirati-yellow flex items-center w-full pt-28 pb-8 bg-pirati-yellow flex items-center w-full pt-28 pb-8
...@@ -25,7 +27,7 @@ ...@@ -25,7 +27,7 @@
{% endblock %} {% endblock %}
" "
> >
{{ name }} {{ title }}
</h1> </h1>
{% endblock %} {% endblock %}
...@@ -52,25 +54,13 @@ ...@@ -52,25 +54,13 @@
[&_.content-block]:gap-4 [&_.content-block]:gap-4
" "
> >
<div class="content-block"> {{ perex|richtext }}
<p>
{{ description_1 }}
</p>
<p>
{{ description_2 }}
</p>
<p>
{{ description_3 }}
</p>
</div>
</div> </div>
{% endblock %} {% endblock %}
{% block contact %} {% block contact %}
<div> <div>
{% include 'patterns/molecules/blocks/inline_contact.html' %} {% include 'styleguide2/includes/molecules/blocks/inline_contact.html' with phone=phone email=email social_links=social_links %}
</div> </div>
{% endblock %} {% endblock %}
</div> </div>
...@@ -80,9 +70,11 @@ ...@@ -80,9 +70,11 @@
flex justify-center items-start grow w-full flex justify-center items-start grow w-full
" "
> >
{% image image original as person_image %}
<img <img
class="lg:w-3/5" class="lg:w-3/5"
src="../../../../../static/images/mikulas-arrow.png" src="{{ person_image.url }}"
> >
</div> </div>
</div> </div>
......
{% extends 'patterns/organisms/header/europarl/simple_header.html' %} {% extends 'styleguide2/includes/organisms/header/elections/simple_header.html' %}
{% block classes %} {% block classes %}
bg-pirati-yellow flex items-center w-full pt-28 pb-8 bg-pirati-yellow flex items-center w-full pt-28 pb-8
......
{% extends 'patterns/organisms/header/europarl/simple_header_with_ui_switch.html' %} {% extends 'styleguide2/includes/organisms/header/elections/simple_header_with_ui_switch.html' %}
{% block extra_classes %}!mb-0{% endblock %} {% block extra_classes %}!mb-0{% endblock %}
{% extends 'patterns/organisms/header/simple_header.html' %} {% extends 'styleguide2/includes/organisms/header/simple_header.html' %}
{% block classes %} {% block classes %}
bg-pirati-yellow flex items-center w-full mb-20 pt-28 pb-8 bg-pirati-yellow flex items-center w-full mb-20 pt-28 pb-8
......
{% extends 'styleguide2/includes/organisms/header/elections/simple_header.html' %}
{% block after_heading %}
{% include 'styleguide2/includes/molecules/tags/tags.html' with classes='mb-4' tag_color_classes='bg-black text-white' %}
{% endblock %}
{% extends 'styleguide2/includes/organisms/header/elections/simple_header.html' %}
{% block before_heading %}
{% include 'styleguide2/includes/atoms/header/elections/navigation.html' with classes='mb-6' %}
{% endblock %}
{% block after_heading %}
{% include 'styleguide2/includes/molecules/tags/tags.html' with classes='mb-4 mt-4' tag_color_classes='bg-black text-white' %}
{% endblock %}
{% extends 'patterns/organisms/header/europarl/simple_header.html' %} {% extends 'styleguide2/includes/organisms/header/elections/simple_header.html' %}
{% block after_description %} {% block after_description %}
<div <div
......
{% extends 'patterns/organisms/header/europarl/simple_header.html' %}
{% block after_heading %}
{% include 'patterns/molecules/tags/tags.html' with classes='mb-4' tag_color_classes='bg-black text-white' %}
{% endblock %}
{% extends 'patterns/organisms/header/europarl/simple_header.html' %}
{% block before_heading %}
{% include 'patterns/atoms/header/europarl/navigation.html' with classes='mb-6' %}
{% endblock %}
{% block after_heading %}
{% include 'patterns/molecules/tags/tags.html' with classes='mb-4 mt-4' tag_color_classes='bg-black text-white' %}
{% endblock %}
...@@ -4,11 +4,14 @@ ...@@ -4,11 +4,14 @@
bg-black flex items-center w-full mb-20 pt-28 pb-8 bg-black flex items-center w-full mb-20 pt-28 pb-8
xl:pt-48 xl:pb-24 xl:pt-48 xl:pb-24
{% block extra_classes %}{% endblock %}
{% endblock %} {% endblock %}
" "
> >
<div class="flex justify-start w-full"> <div class="flex justify-start w-full">
<div class="container--wide w-full"> <div class="container--wide w-full">
{% block content %}
<div class="text-white flex flex-col"> <div class="text-white flex flex-col">
{% block before_heading %}{% endblock %} {% block before_heading %}{% endblock %}
...@@ -52,6 +55,7 @@ ...@@ -52,6 +55,7 @@
{% block after_description %}{% endblock %} {% block after_description %}{% endblock %}
</div> </div>
{% endblock %}
</div> </div>
</div> </div>
</header> </header>
{% extends 'patterns/organisms/layout/navbar.html' %} {% extends 'styleguide2/includes/organisms/layout/navbar.html' %}
{% load static %}
{% block navbar_logo_images %} {% block navbar_logo_images %}
<img class="navbar__logo--white w-[220px] lg:w-[280px]" src="../../../../../static/images/europarl/logo-full-white.svg" alt=""> <img class="navbar__logo--white w-[220px] lg:w-[280px]" src="{% static 'elections/logo-full-white.svg' %}" alt="">
<img class="navbar__logo--black w-[220px] lg:w-[280px]" src="../../../../../static/images/europarl/logo-full-black.svg" alt=""> <img class="navbar__logo--black w-[220px] lg:w-[280px]" src="{% static 'elections/logo-full-black.svg' %}" alt="">
{% endblock %} {% endblock %}
{% block popout_logo_image %} {% block popout_logo_image %}
<img <img
class="w-[220px] mt-3" class="w-[220px] mt-3"
src="../../../../../static/images/europarl/logo-full-black.svg" src="{% static 'elections/logo-full-black.svg' %}"
alt="" alt=""
> >
{% endblock %} {% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment