diff --git a/core/static/css/theme.css b/core/static/css/theme.css new file mode 100644 index 0000000..734c714 --- /dev/null +++ b/core/static/css/theme.css @@ -0,0 +1,133 @@ +/* FEO GmbH Custom Bootstrap Theme + * An elegant, lightweight, and modern design + */ + +:root { + --bs-primary: #72c02c; + --bs-primary-rgb: 114, 192, 44; +} + +/* Override Bootstrap primary color */ +.btn-primary { + background-color: var(--bs-primary); + border-color: var(--bs-primary); +} + +.btn-primary:hover, .btn-primary:focus, .btn-primary:active { + background-color: #65ab27; + border-color: #65ab27; +} + +.btn-outline-primary { + color: var(--bs-primary); + border-color: var(--bs-primary); +} + +.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active { + background-color: var(--bs-primary); + border-color: var(--bs-primary); +} + +.text-primary { + color: var(--bs-primary) !important; +} + +.bg-primary { + background-color: var(--bs-primary) !important; +} + +.border-primary { + border-color: var(--bs-primary) !important; +} + +/* Navigation styling */ +.navbar { + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); +} + +.navbar-light .navbar-nav .nav-link { + color: #333; + font-weight: 500; + padding: 0.5rem 1rem; + transition: color 0.3s ease; +} + +.navbar-light .navbar-nav .nav-link:hover, +.navbar-light .navbar-nav .nav-link:focus, +.navbar-light .navbar-nav .active > .nav-link { + color: var(--bs-primary); +} + +/* Card styling */ +.card { + border: none; + border-radius: 8px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +.card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); +} + +/* Button styling */ +.btn { + border-radius: 4px; + padding: 0.5rem 1.5rem; + font-weight: 500; + transition: all 0.3s ease; +} + +/* Footer styling */ +.footer { + background-color: #f8f9fa; + padding: 4rem 0; + border-top: 1px solid #eee; +} + +.copyright { + background-color: #333; + color: white; + padding: 1.5rem 0; +} + +.copyright a { + color: #ccc; + text-decoration: none; + transition: color 0.3s ease; +} + +.copyright a:hover { + color: white; +} + +/* Typography improvements */ +body { + font-family: 'Roboto', 'Segoe UI', sans-serif; + color: #333; + line-height: 1.6; +} + +h1, h2, h3, h4, h5, h6 { + font-weight: 600; + margin-bottom: 1rem; +} + +/* Link styling */ +a { + color: var(--bs-primary); + text-decoration: none; + transition: color 0.3s ease; +} + +a:hover { + color: #65ab27; + text-decoration: underline; +} + +/* Form controls */ +.form-control:focus { + border-color: var(--bs-primary); + box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25); +} diff --git a/core/templates/bootstrap5_base.html b/core/templates/bootstrap5_base.html index 3d54e6f..8c6c300 100644 --- a/core/templates/bootstrap5_base.html +++ b/core/templates/bootstrap5_base.html @@ -11,31 +11,19 @@ + + + + + - - + + {% block extra_css %} {% endblock %} @@ -65,9 +53,9 @@ {% if not self.url == site_root.url %} -
+
-

{{ self.title }}

+

{{ self.title }}

@@ -106,10 +94,10 @@
-

FEO GmbH

+

FEO GmbH

{% footer_about %}

-

Newsletter

+

Newsletter

{% footer_newsletter %}
@@ -118,7 +106,7 @@
-

Kontakt

+

Kontakt

FEO Gesellschaft für Fortbildungs-
@@ -131,12 +119,12 @@

-

Stay Connected

+

Stay Connected

diff --git a/core/templates/core/event_index_page.html b/core/templates/core/event_index_page.html index 609ed38..92bd162 100644 --- a/core/templates/core/event_index_page.html +++ b/core/templates/core/event_index_page.html @@ -1,59 +1,174 @@ {% extends "core/base.html" %} {% load core_tags menu_tags static wagtailuserbar wagtailcore_tags wagtailimages_tags %} +{% block extra_css %} + +{% endblock %} + {% block content %}
-{% for event in self.get_events %} -
-
-
-
- {{ event.start_date|date:"SHORT_DATE_FORMAT" }}{% if event.end_date %} - {{ event.end_date|date:"SHORT_DATE_FORMAT" }}{% endif %} -
-
- {{ event.start_date|date:"F Y" }} -
+
    + {% regroup self.get_events by start_date|date:"F Y" as events_by_month %} + {% for month_group in events_by_month %} +
  • +

    {{ month_group.grouper }}

    +
  • + {% for event in month_group.list %} +
  • +
    + {{ event.start_date|date:"d" }} + {{ event.start_date|date:"b" }}
    -
-
-

{{ event.title }} - {% if event.subtitle %}
{{ event.subtitle }}{% endif %}

-
-
- {% if event.img1_img %} - {% image event.img1_img max-250x250 class="img-fluid rounded" %} - {% endif %} +
+
+
+
+ {{ event.start_date|date:"SHORT_DATE_FORMAT" }}{% if event.end_date %} - {{ event.end_date|date:"SHORT_DATE_FORMAT" }}{% endif %} +
+
+ {{ event.start_date|date:"F Y" }} +
+
-
-
- {{ event.start_date }}{% if event.end_date %} - {{ event.end_date }}{% endif %} -
- {% if event.location_name %} -

- {{ event.location_name }}
- {% if event.location_street %}{{ event.location_street }}
{% endif %} - {% if event.location_city %}{{ event.location_city }}{% endif %} -

- {% endif %} +
+

{{ event.title }} + {% if event.subtitle %}
{{ event.subtitle }}{% endif %}

+
+
+ {% if event.img1_img %} + {% image event.img1_img max-250x250 class="img-fluid rounded" %} + {% endif %} +
+
+
+ {{ event.start_date }}{% if event.end_date %} - {{ event.end_date }}{% endif %} +
+ {% if event.location_name %} +

+ {{ event.location_name }}
+ {% if event.location_street %}{{ event.location_street }}
{% endif %} + {% if event.location_city %}{{ event.location_city }}{% endif %} +

+ {% endif %} +
+
+ {% if event.is_registration_active %} +

+ Zur Anmeldung +

+ {% endif %} + {% if event.flyer.url %} +

+ Programm herunterladen +

+ {% endif %} +

+ Mehr Informationen +

+
+
-
- {% if event.is_registration_active %} -

- Zur Anmeldung -

- {% endif %} - {% if event.flyer.url %} -

- Programm herunterladen -

- {% endif %} -

- Mehr Informationen -

-
-
-
-
- {% endfor %} +
+ + {% endfor %} + {% endfor %} +
{% endblock content %} diff --git a/core/templates/core/includes/revolution_slider_slide.html b/core/templates/core/includes/revolution_slider_slide.html deleted file mode 100644 index 93e4c81..0000000 --- a/core/templates/core/includes/revolution_slider_slide.html +++ /dev/null @@ -1,56 +0,0 @@ -{% load wagtailimages_tags %} - -
  • - -{% image img fill-2000x500 data-bgfit="cover" data-bgposition="left top" data-bgrepeat="no-repeat" %} - -{% if headline %} -
    - {{ headline }} -
    -{% endif %} - -{% if subline %} - -
    - {{ subline }} -
    -{% endif %} - -{% if link_url and link_text %} - - -{% endif %} -
  • - - diff --git a/core/templates/core/tags/bootstrap5_breadcrumbs.html b/core/templates/core/tags/bootstrap5_breadcrumbs.html index c029061..a89da28 100644 --- a/core/templates/core/tags/bootstrap5_breadcrumbs.html +++ b/core/templates/core/tags/bootstrap5_breadcrumbs.html @@ -1,12 +1,12 @@ {% load wagtailcore_tags %} {% if ancestors %} -