From 64b5ab3b0b886972fe091a1fbb39117412edf69e Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 13 Jun 2023 20:07:10 +0200 Subject: [PATCH] Use one container and semantic sections for index page --- templates/frontpage/blocks/claim.html | 12 ++++++------ templates/frontpage/blocks/news.html | 13 ++++++------- templates/frontpage/blocks/projects.html | 13 ++++++------- templates/index.html | 10 ++++++---- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/templates/frontpage/blocks/claim.html b/templates/frontpage/blocks/claim.html index d0d30e2e..d6da65a4 100644 --- a/templates/frontpage/blocks/claim.html +++ b/templates/frontpage/blocks/claim.html @@ -1,10 +1,10 @@ -<div class="container"> - <section class="columns is-centered is-half"> +<section class="section"> + <div class="columns is-centered is-half"> <h1 class="title is-1">Eine verstehbare, digitale Welt</h1> - </section> - <section class="columns"> + </div> + <div class="columns"> <div class="column"><div class="box is-shadowless"><h1 class="title is-3">Technik hinterfragen</h1><p>TBA</p></div></div> <div class="column"><div class="box is-shadowless"><h1 class="title is-3">Digitale Mündigkeit</h1><p>TBA</p></div></div> <div class="column"><div class="box is-shadowless"><h1 class="title is-3">Mitgestalten statt konsumieren</h1><p>TBA</p></div></div> - </section> -</div> + </div> +</section> \ No newline at end of file diff --git a/templates/frontpage/blocks/news.html b/templates/frontpage/blocks/news.html index 95060a8d..25704168 100644 --- a/templates/frontpage/blocks/news.html +++ b/templates/frontpage/blocks/news.html @@ -1,8 +1,8 @@ -<div class="container"> - <section class="columns is-centered is-half"> +<section class="section"> + <div class="columns is-centered is-half"> <h1 class="title is-1">Neuigkeiten</h1> - </section> - <section class="columns is-same-height"> + </div> + <div class="columns is-same-height"> <div class="column"> <div class="card is-shadowless"> <div class="card-image"> @@ -85,6 +85,5 @@ </div> </div> </div> - </section> - <br /> -</div> \ No newline at end of file + </div> +</section> diff --git a/templates/frontpage/blocks/projects.html b/templates/frontpage/blocks/projects.html index 42fe6eb1..b54a4413 100644 --- a/templates/frontpage/blocks/projects.html +++ b/templates/frontpage/blocks/projects.html @@ -1,8 +1,8 @@ -<div class="container"> - <section class="columns is-centered is-half"> +<section class="section"> + <div class="columns is-centered is-half"> <h1 class="title is-1">Unsere Projekte</h1> - </section> - <section class="columns"> + </div> + <div class="columns"> <div class="column"> <div class="card"> <figure class="image is-4by3"> @@ -74,6 +74,5 @@ </div> </div> </div> - </section> - <br /> -</div> + </div> +</section> diff --git a/templates/index.html b/templates/index.html index 946f249f..9fef20e7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,8 +1,10 @@ {% extends "base.html" %} {% block main %} - {% include "frontpage/blocks/claim.html" %} - {% include "frontpage/blocks/news.html" %} - {% include "frontpage/blocks/projects.html" %} - {% include "frontpage/blocks/events.html" %} + <div class="container"> + {% include "frontpage/blocks/claim.html" %} + {% include "frontpage/blocks/news.html" %} + {% include "frontpage/blocks/projects.html" %} + {% include "frontpage/blocks/events.html" %} + </div> {% endblock %} -- GitLab