Skip to content
Snippets Groups Projects
Verified Commit f025bcb8 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

add calendar to elections page

parent 17f80a08
No related branches found
No related tags found
1 merge request!28Add calendar to elections page
Pipeline #18151 passed
<div class="py-24" id="kalendar">
<div class="container--medium mx-auto px-4">
<h2 class="head-14xl xl:leading-[10.5rem] mb-4 xl:mb-8">
{{ title }}
</h2>
<div class="flex flex-wrap">
<div class="__js-root flex items-center justify-center h-full mb-4 w-full">
<ui-full-calendar events='{{ calendar_data }}'></ui-full-calendar>
</div>
</div>
<div></div>
</div>
</div>
context:
title: 'Kalendář akcí'
calendar_data: '[
{"title": "event 1", "start": "2023-11-21T09:30:00.000Z", "url": "https://example.com"},
{"title": "event 2", "start": "2023-11-21", "url": "https://example.com"},
{"title": "event 3", "start": "2023-11-22T09:00:00.000Z", "description": "Lorem ipsum...", "location": "https://jitsi.pirati.cz"}
]'
......@@ -6,10 +6,17 @@
<main role="main">
{% include 'patterns/molecules/menus/elections/carousel.html' %}
{% include 'patterns/organisms/candidates/elections/candidate_primary_list.html' with id='kandidati' %}
{% include "patterns/organisms/candidates/elections/candidate_secondary_list.html" %}
{% include 'patterns/molecules/program/card_program.html' with id='program' %}
{% include 'patterns/organisms/articles/elections/articles_section.html' %}
{% include 'patterns/organisms/main_section/elections/calendar.html' %}
{% include 'patterns/organisms/main_section/newsletter_section.html' %}
</main>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment