From 36970abd770ca09824f1153b6386b00d78f8120c Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Wed, 30 Apr 2025 15:16:50 +0200 Subject: [PATCH] Enhance contact page design and update development settings. Implemented new responsive and visually appealing styles for the contact page, including animations and improved layout organization. Additionally, updated `ALLOWED_HOSTS` in the development settings to allow all hosts for easier testing in development environments. --- core/templates/core/contact_form_page.html | 241 +++++++++++++++------ feo_homepage/settings/dev.py | 1 + 2 files changed, 180 insertions(+), 62 deletions(-) diff --git a/core/templates/core/contact_form_page.html b/core/templates/core/contact_form_page.html index 2868da1..a2e0743 100644 --- a/core/templates/core/contact_form_page.html +++ b/core/templates/core/contact_form_page.html @@ -1,77 +1,194 @@ {% extends "core/base.html" %} {% load core_tags menu_tags static wagtailcore_tags wagtailimages_tags crispy_forms_tags %} -{% block content %} -
- -
-
-

{{ self.form_title }}

-
-
- {% csrf_token %} - {{ form|crispy }} -
- -
-
-
+{% block extra_css %} + +{% endblock %} + +{% block content %} +
+
+ +
+

{{ self.form_title }}

+
+
+ {% csrf_token %} + {{ form|crispy }} +
+
-
+
- -
-
- {% image self.person_img fill-240x320 class="img-fluid card-img-top" %} -
-

{{ self.person_name }}

-

{{ self.person_position }}

+
+ + +
+

Ihr Ansprechpartner

+
+
+
+ {% if self.person_img %} + +
+
+ {% image self.person_img fill-300x400 class="img-fluid rounded" %} +
+
+

{{ self.person_name }}

+

{{ self.person_position }}

+
+
+ {% endif %} + + + {% if self.address or self.mail_address or self.phone or self.web_address %} +
+
Kontaktdaten
+ +
+ {% endif %}
- {% endif %} - - - {% if self.address or self.mail_address or self.phone or self.web_address %} -
- -
- {% endif %}
-
- -
-
-

{{ self.form_title }}

-
-
- {% csrf_token %} - {{ form|crispy }} -
- + +
+

{{ self.form_title }}

+
+ + {% csrf_token %} + {{ form|crispy }} +
+ +
+
- +
{% endblock content %} diff --git a/feo_homepage/settings/dev.py b/feo_homepage/settings/dev.py index 0430df7..a887fb5 100644 --- a/feo_homepage/settings/dev.py +++ b/feo_homepage/settings/dev.py @@ -5,6 +5,7 @@ DEBUG = True TEMPLATE_DEBUG = True EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +ALLOWED_HOSTS = ['*'] try: