From 1d8f160610ad25ee225144e71609a1430afcc7cd Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Thu, 16 Apr 2020 15:48:19 +0200
Subject: [PATCH] Align button to center

---
 static/css/style.css                     |  4 ++++
 templates/page_with_carousel_button.html | 10 ++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/static/css/style.css b/static/css/style.css
index a9094b8..756f487 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -170,3 +170,7 @@ time.icon span {
 .carousel .carousel-image {
 	max-height: 500px;
 }
+
+.button-wrapper {
+	text-align: center;
+}
\ No newline at end of file
diff --git a/templates/page_with_carousel_button.html b/templates/page_with_carousel_button.html
index ff89ae3..a420590 100644
--- a/templates/page_with_carousel_button.html
+++ b/templates/page_with_carousel_button.html
@@ -85,8 +85,10 @@
 
 {% block template_content_footer %}
 
-<button type="button" class="btn btn-default btn-lg">
-    {% set button = page.button.split('|') %}
-        <a href="{{ button[0] }}">{{ button[1] }}</a>
-</button>
+<div class="button-wrapper">
+    <button type="button" class="btn btn-default btn-lg">
+        {% set button = page.button.split('|') %}
+            <a href="{{ button[0] }}">{{ button[1] }}</a>
+    </button>
+</div>
 {% endblock %}
-- 
GitLab