From ad2bed17475417429083d021da758ff2c3108baf Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sun, 8 Aug 2021 13:51:33 +0200 Subject: [PATCH] Improve accessability (learned from lighthouse) --- src/sass/app.scss | 3 +++ templates/home.html.twig | 1 + templates/partials/base.html.twig | 4 ++-- templates/partials/osm.html.twig | 9 ++++----- templates/partials/socialmedia.html.twig | 3 ++- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/sass/app.scss b/src/sass/app.scss index 34e1554..610dc4a 100644 --- a/src/sass/app.scss +++ b/src/sass/app.scss @@ -1,4 +1,7 @@ // Bootstrap +$theme-colors: ( + "primary": #2b3bb4, +); @import '~bootstrap/scss/bootstrap'; // FontAwesome diff --git a/templates/home.html.twig b/templates/home.html.twig index 704aa1d..a02cea8 100644 --- a/templates/home.html.twig +++ b/templates/home.html.twig @@ -36,6 +36,7 @@


{% set news_page = pages.find('/news') %} {% if news_page and news_page.collection() and news_page.collection()|first %} +

Letzte Neuigkeit

{% set text_class = 'col-12' %} {% set news_latest = news_page.collection()|first %}
diff --git a/templates/partials/base.html.twig b/templates/partials/base.html.twig index 655330e..a78b9fb 100644 --- a/templates/partials/base.html.twig +++ b/templates/partials/base.html.twig @@ -47,7 +47,7 @@ {% include 'partials/logo.html.twig' with {style: 'filter: invert(100%); margin-right: 0.5rem;'} %} {% for media_item in header_page.media.images %} {% set aspect = media_item.width / media_item.height %} - {% set new_height = 100 %} + {% set new_height = 160 %} {% set new_width = new_height * aspect %} {% endfor %} @@ -80,7 +80,7 @@

© Heike Tischler

-

Diese Webseite nutzt Grav von RocketTheme.

+

Diese Webseite nutzt Grav von RocketTheme.

{% endblock %} diff --git a/templates/partials/osm.html.twig b/templates/partials/osm.html.twig index 2358108..74cd118 100644 --- a/templates/partials/osm.html.twig +++ b/templates/partials/osm.html.twig @@ -1,11 +1,10 @@
- - - + + + Auf OpenStreetMaps öffnen - | - + Auf Google Maps öffnen diff --git a/templates/partials/socialmedia.html.twig b/templates/partials/socialmedia.html.twig index fc06064..4a6aa9f 100644 --- a/templates/partials/socialmedia.html.twig +++ b/templates/partials/socialmedia.html.twig @@ -1,3 +1,4 @@ - + + zu unserer Facebook-Seite