diff --git a/home/models.py b/home/models.py index 18ce9c4..189c320 100644 --- a/home/models.py +++ b/home/models.py @@ -367,3 +367,7 @@ class SegmentPage(Page): FieldPanel("color_text_section"), FieldPanel("segments"), ] + def get_context(self, request): + context = super().get_context(request) + context['parent'] = self.get_parent().specific + return context diff --git a/home/templates/home/home_page.html b/home/templates/home/home_page.html index f4e938d..d7574f1 100644 --- a/home/templates/home/home_page.html +++ b/home/templates/home/home_page.html @@ -224,23 +224,6 @@

{{page.footer_tit -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% endblock content %} diff --git a/home/templates/home/segment_page.html b/home/templates/home/segment_page.html index e69de29..6aaff47 100644 --- a/home/templates/home/segment_page.html +++ b/home/templates/home/segment_page.html @@ -0,0 +1,183 @@ +{% extends "base.html" %} +{% load wagtailcore_tags %} +{% load wagtailimages_tags %} +{% load static %} + + +{% block body_class %}template-homepage{% endblock %} + +{% block extra_css %} +{% image parent.hero_image fill-1900x740-c20 format-webp preserve-svg as tmp_hero %} +{% image parent.favicon max-256x256 as tmp_favicon %} + + + + + + + + + + + + + + + + +{% endblock extra_css %} + +{% block content %} +
+ + + +
+
+
+
+
+
+ {% if parent.logo_image_big is not None %} + {% image parent.logo_image_big max-300x150 format-webp preserve-svg as tmp_logo_big %} + {{ tmp_logo_big.alt }} +
+
+ + {% endif %} + + +
{{ parent.event|richtext }}
+ +
+ {% if parent.url_get_tickets is not None and parent.url_get_tickets != "" %} + + {% endif %} +
+
+
+
+
+ + + +
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+{% for segment in page.segments %} +{% if segment.block_type == 'detail_segment' %} +
+ {% include 'segments/segment.html' %} +
+{% endif %} +{% if segment.block_type == 'video_segment' %} +
+ {% include 'segments/video.html' %} +
+{% endif %} +{% if segment.block_type == 'information_segment' %} +
+ {% include 'segments/information_bar.html' %} +
+{% endif %} +{% if segment.block_type == 'sponsor_segment' %} +
+ {% include 'segments/sponsor.html' %} +
+{% endif %} +{% if segment.block_type == 'maps_segment' %} +
+ {% include 'segments/maps.html' %} +
+{% endif %} +{% if segment.block_type == 'pricing_segment' %} +
+ {% include 'segments/pricing.html' %} +
+{% endif %} +{% if segment.block_type == 'schedule_segment' %} +
+ {% include 'segments/schedule.html' %} +
+{% endif %} +{% endfor %} +{% endblock %} +{% block extra_js %} + + + + + + + + + + + + + +{% endblock %} \ No newline at end of file diff --git a/website/static/2023/css/main.css b/website/static/2023/css/main.css index f15b1d3..57d9f0f 100644 --- a/website/static/2023/css/main.css +++ b/website/static/2023/css/main.css @@ -324,15 +324,6 @@ a.back-to-top:focus { text-decoration: none; } -#preloader { - position: fixed; - background: var(--cg1); - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 9999999999; -} .sk-circle { margin: 0px auto; diff --git a/website/static/2023/js/main.js b/website/static/2023/js/main.js index d961e45..bd011ab 100644 --- a/website/static/2023/js/main.js +++ b/website/static/2023/js/main.js @@ -6,8 +6,6 @@ /*Page Loader active ========================================================*/ - $('#preloader').fadeOut(); - // Sticky Nav $(window).on('scroll', function () { if ($(window).scrollTop() > 200) { @@ -97,6 +95,5 @@ }); }); - $('#preloader').fadeOut(); }(jQuery)); \ No newline at end of file