From 84224053f8a96dbe18f1cf5ab5fdf8b3465c0460 Mon Sep 17 00:00:00 2001 From: Rachell Calhoun Date: Tue, 2 Apr 2024 13:58:52 -0400 Subject: [PATCH] center session template center event detail page add container to base standardize container sizes --- home/templates/home/general_page.html | 60 +++++++++---------- .../templates/home/includes/session_card.html | 2 +- .../home/prerelease/event_detail.html | 26 ++++---- .../templates/home/prerelease/event_list.html | 3 +- .../home/prerelease/session_detail.html | 50 ++++++++-------- indymeet/templates/base.html | 10 +++- indymeet/templates/includes/nav.html | 2 +- indymeet/templates/puput/entry_page.html | 4 +- 8 files changed, 77 insertions(+), 80 deletions(-) diff --git a/home/templates/home/general_page.html b/home/templates/home/general_page.html index 65c39377..cf3025c3 100644 --- a/home/templates/home/general_page.html +++ b/home/templates/home/general_page.html @@ -4,36 +4,32 @@ {% block body_class %}template-generalpage{% endblock %} {% block content %} -
-
-
-
-

- {{ page.title }} -

- -
- {{ page.intro|richtext }} -
-
-
- {{ page.content }} -
-
- {{ page.body|richtext }} -
-
-
-
+
+
+

+ {{ page.title }} +

+ +
+ {{ page.intro|richtext }} +
+
+
+ {{ page.body|richtext }} +
+
+ {{ page.content }} +
+
{% endblock %} diff --git a/home/templates/home/includes/session_card.html b/home/templates/home/includes/session_card.html index 84c81728..05c340af 100644 --- a/home/templates/home/includes/session_card.html +++ b/home/templates/home/includes/session_card.html @@ -18,7 +18,7 @@
Starts
diff --git a/home/templates/home/prerelease/event_detail.html b/home/templates/home/prerelease/event_detail.html index 3ce2c62d..9ba3fb93 100644 --- a/home/templates/home/prerelease/event_detail.html +++ b/home/templates/home/prerelease/event_detail.html @@ -11,22 +11,20 @@ {% endblock social_share %} {% block content %} -
-
+
+
+

{{ event.title }}

+
-

{{ event.title }}

+ {% localtime on %} +

Start: {{ event.start_time|date:"M d, Y H:i e" }}

+

End: {{ event.end_time|date:"M d, Y H:i e" }}

+ {% endlocaltime %} +

Location: {{ event.location|urlizetrunc:25 }}

+
+

{{ event.description|linebreaksbr|urlizetrunc:25 }}

-
-
-
- {% localtime on %} -

Start: {{ event.start_time|date:"M d, Y H:i e" }}

-

End: {{ event.end_time|date:"M d, Y H:i e" }}

- {% endlocaltime %} -

Location: {{ event.location|urlizetrunc:25 }}

-
-

{{ event.description|linebreaksbr|urlizetrunc:25 }}

-
+
{% endblock content %} diff --git a/home/templates/home/prerelease/event_list.html b/home/templates/home/prerelease/event_list.html index e7a9b0af..dfba16dd 100644 --- a/home/templates/home/prerelease/event_list.html +++ b/home/templates/home/prerelease/event_list.html @@ -33,7 +33,8 @@

Upcoming Events

{% endfor %}
-

Past Events

+
+

Past Events

{% for event in past_events %} diff --git a/home/templates/home/prerelease/session_detail.html b/home/templates/home/prerelease/session_detail.html index fd2268e9..df66692a 100644 --- a/home/templates/home/prerelease/session_detail.html +++ b/home/templates/home/prerelease/session_detail.html @@ -15,34 +15,32 @@ {% block content %} {% include 'home/includes/email_confirmed_warning.html' %} -
-
+
+
+

{{ session.title }}

+
-

{{ session.title }}

+
+
Applications Open:
+
{{ session.application_start_date|date:"M d, Y" }} AOE
+
Applications Close:
+
{{ session.application_end_date|date:"M d, Y" }} AOE
+
Invitations Sent:
+
{{ session.invitation_date|date:"M d, Y" }}
+
Start:
+
{{ session.start_date|date:"M d, Y" }}
+
End:
+
{{ session.end_date|date:"M d, Y" }}
+
+

{{ session.description|linebreaksbr|urlizetrunc:25 }}

+ {% if session.is_accepting_applications and not session.completed_application %} +
+

You have {{ session.application_end_anywhere_on_earth|timeuntil}} to submit your application

+
+ {% endif %} + {% include 'home/includes/session_apply_btn.html' %}
-
-
-
-
-
Applications Open:
-
{{ session.application_start_date|date:"M d, Y" }} AOE
-
Applications Close:
-
{{ session.application_end_date|date:"M d, Y" }} AOE
-
Invitations Sent:
-
{{ session.invitation_date|date:"M d, Y" }}
-
Start:
-
{{ session.start_date|date:"M d, Y" }}
-
End:
-
{{ session.end_date|date:"M d, Y" }}
-
-

{{ session.description|linebreaksbr|urlizetrunc:25 }}

- {% if session.is_accepting_applications and not session.completed_application %} -
-

You have {{ session.application_end_anywhere_on_earth|timeuntil}} to submit your application

-
- {% endif %} - {% include 'home/includes/session_apply_btn.html' %}
-
+
{% endblock content %} diff --git a/indymeet/templates/base.html b/indymeet/templates/base.html index 9cefc2f2..a59c98aa 100644 --- a/indymeet/templates/base.html +++ b/indymeet/templates/base.html @@ -91,9 +91,13 @@ {% wagtailuserbar %} {% include 'includes/messages.html' %} - {% block content %} - {# other page stuff goes here #} - {% endblock %} +
+
+ {% block content %} + {# other page stuff goes here #} + {% endblock %} +
+
{# Global javascript #} {% include 'includes/footer.html' %} diff --git a/indymeet/templates/includes/nav.html b/indymeet/templates/includes/nav.html index a37b45a2..9d415db6 100644 --- a/indymeet/templates/includes/nav.html +++ b/indymeet/templates/includes/nav.html @@ -1,6 +1,6 @@ {% load i18n static wagtailcore_tags %}