From 83b6f7294a2030580f22dfb920b2e766c9980408 Mon Sep 17 00:00:00 2001 From: Darius Auding <Darius.auding@gmx.de> Date: Sun, 11 Jun 2023 16:59:14 +0200 Subject: [PATCH] Add news and projects part of index --- templates/frontpage/blocks/embed_article.html | 23 +++++++++++++++++++ templates/frontpage/blocks/news.html | 23 +++++++++++++++++++ templates/frontpage/blocks/projects.html | 7 ++++++ yarn.lock | 2 +- 4 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 templates/frontpage/blocks/embed_article.html diff --git a/templates/frontpage/blocks/embed_article.html b/templates/frontpage/blocks/embed_article.html new file mode 100644 index 00000000..5c1824f1 --- /dev/null +++ b/templates/frontpage/blocks/embed_article.html @@ -0,0 +1,23 @@ +<div class="card-image"> + <figure class="image is-4by3"> + <img + src="https://bulma.io/images/placeholders/1280x960.png" + alt="Placeholder image" + /> + </figure> +</div> +<div class="card-content"> + <div class="media"> + <div class="media-content"> + <p class="subtitle is-6">person</p> + <p class="title is-4">name</p> + </div> + </div> + + <div class="content"> + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec + iaculis mauris. + <br /> + <time datetime="2016-1-1">11:09 PM - 1 Jan 2016</time> + </div> +</div> diff --git a/templates/frontpage/blocks/news.html b/templates/frontpage/blocks/news.html index e69de29b..06ea7a7a 100644 --- a/templates/frontpage/blocks/news.html +++ b/templates/frontpage/blocks/news.html @@ -0,0 +1,23 @@ +<div class="container"> + <section class="columns is-centered is-half"> + <h1 class="title is-1">Neuigkeiten</h1> + </section> + <section class="columns"> + <div class="column"> + <div class="card"> + {% include "frontpage/blocks/embed_article.html" %} + </div> + </div> + <div class="column"> + <div class="card"> + {% include "frontpage/blocks/embed_article.html" %} + </div> + </div> + <div class="column"> + <div class="card is-shadowless"> + {% include "frontpage/blocks/embed_article.html" %} + </div> + </div> + </section> +</div> +<hr /> diff --git a/templates/frontpage/blocks/projects.html b/templates/frontpage/blocks/projects.html index e69de29b..eb25d359 100644 --- a/templates/frontpage/blocks/projects.html +++ b/templates/frontpage/blocks/projects.html @@ -0,0 +1,7 @@ +<div class="container"> + <section class="columns is-centered is-half"> + <h1 class="title is-1">Unsere Projekte</h1> + </section> + <section></section> +</div> +<hr /> diff --git a/yarn.lock b/yarn.lock index e7a071ee..5d2f031a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4,5 +4,5 @@ bulma@^0.9.4: version "0.9.4" - resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.4.tgz#0ca8aeb1847a34264768dba26a064c8be72674a1" + resolved "https://registry.npmjs.org/bulma/-/bulma-0.9.4.tgz" integrity sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ== -- GitLab