From 8a262a251b520d81a113cdeb64d96a0cf9789445 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 18 Mar 2021 01:58:45 +0100 Subject: [PATCH] Add three box design --- assets/css/style.css | 2 +- content/contents.lr | 41 ++++++++++++ flow_one_innerbox_section.ini | 9 +++ flowblocks/flow_one_innerbox_section.ini | 30 +++++++++ flowblocks/flow_third_box_section.ini | 13 ++++ models/homepage.ini | 2 +- .../blocks/flow_one_innerbox_section.html | 15 +++++ templates/blocks/flow_third_box_section.html | 46 +++++++++++++ templates/homepage.html | 64 ------------------- 9 files changed, 156 insertions(+), 66 deletions(-) create mode 100644 flow_one_innerbox_section.ini create mode 100644 flowblocks/flow_one_innerbox_section.ini create mode 100644 flowblocks/flow_third_box_section.ini create mode 100644 templates/blocks/flow_one_innerbox_section.html create mode 100644 templates/blocks/flow_third_box_section.html diff --git a/assets/css/style.css b/assets/css/style.css index bda1b3d..e290b14 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -230,7 +230,7 @@ header { .claim__button { height: 3rem; margin: 1.5rem 1rem 0rem 0; - padding: 0.5rem 2.5rem 0.5rem 2.5rem; + padding: 0.5rem 2rem 0.5rem 2rem; background-color: var(--wtf-light-blue); color: var(--wtf-nearly-white); font-size: 1.2rem; diff --git a/content/contents.lr b/content/contents.lr index 7213626..bba358f 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -42,3 +42,44 @@ content_image_alt: Startendes Space Shuttle ---- content_image_src: images.nasa.gov/details-sts057-s-055 #### flow_seperator #### +#### flow_third_box_section #### +title: ouuu +---- +inner_box: + +##### flow_one_innerbox_section ##### +title: Das Wichtigste gibt es jetzt auf die Ohren +----- +box_image: nasa-space-shuttle.jpg +----- +box_content: Unser WTF Podcast fasst für Mitglieder und Interessierte die wichtigsten Nachrichten und Entwicklungen aus dem genossenschaftlichen Leben zusammen. +----- +box_link: Podcast +----- +box_url: https://vebit.xyz/podcast/ +##### flow_one_innerbox_section ##### +title: Zusammen Arbyten, die eigene Idee fliegen sehen +----- +box_image: nasa-space-shuttle.jpg +----- +box_content: + +Wir verstehen uns als Plattform for Hackende, auf der sich mit Gleichgesinnten wirtschaftliche Projekte möglich werden, die es anders nicht gäbe. Wir fördern und bewirtschaften im Kollektiv als Genossenschaft die Leistungen unserer Mitglieder. +----- +box_link: Projekte +----- +box_url: +##### flow_one_innerbox_section ##### +title: + +Genossenschafts­anteile sind eine Anlage, kein Geschenk. +----- +box_image: nasa-space-shuttle.jpg +----- +box_content: + +Wir bieten useren Mitgliedern nicht nur ein gutes Netzwerk, sondern auch eine sichere Anlagemöglichkeit. Hier kannst Du Dich über die Anlagekriterien informieren. +----- +box_link: Mitglied werden +----- +box_url: https://wtf-eg.de/mitglieder/beitreten/ diff --git a/flow_one_innerbox_section.ini b/flow_one_innerbox_section.ini new file mode 100644 index 0000000..34bef00 --- /dev/null +++ b/flow_one_innerbox_section.ini @@ -0,0 +1,9 @@ +[block] +name = Flow One Box Section +button_label = Flow One Box Section +label = {{ this.title }} + +[fields.title] +label = Title +type = string + diff --git a/flowblocks/flow_one_innerbox_section.ini b/flowblocks/flow_one_innerbox_section.ini new file mode 100644 index 0000000..74b1f33 --- /dev/null +++ b/flowblocks/flow_one_innerbox_section.ini @@ -0,0 +1,30 @@ +[block] +name = One Box Section +button_label = One Box Section +label = {{ this.title }} + +[fields.title] +label = Titel +type = string +width = 1/2 + +[fields.box_image] +label = Box Image +description = Upload a Image to select it here +type = select +source = record.attachments.images +width = 1/2 + +[fields.box_content] +label = Box Content +type = markdown + +[fields.box_link] +label = Link Text +type = string +width = 1/2 + +[fields.box_url] +label = Link Adresse +type = url +width = 1/2 diff --git a/flowblocks/flow_third_box_section.ini b/flowblocks/flow_third_box_section.ini new file mode 100644 index 0000000..70e0283 --- /dev/null +++ b/flowblocks/flow_third_box_section.ini @@ -0,0 +1,13 @@ +[block] +name = Flow Three Box Section +button_label = Flow Three Box Section +label = {{ this.title }} + +[fields.title] +label = Title +type = string + +[fields.inner_box] +label = One Box +type = flow +flow_blocks = flow_one_innerbox_section diff --git a/models/homepage.ini b/models/homepage.ini index 3ca8a64..4d992d3 100644 --- a/models/homepage.ini +++ b/models/homepage.ini @@ -16,4 +16,4 @@ type = string [fields.section] label = Sections type = flow -flow_blocks = flow_text_image_section, flow_seperator +flow_blocks = flow_text_image_section, flow_seperator, flow_third_box_section diff --git a/templates/blocks/flow_one_innerbox_section.html b/templates/blocks/flow_one_innerbox_section.html new file mode 100644 index 0000000..595f1fa --- /dev/null +++ b/templates/blocks/flow_one_innerbox_section.html @@ -0,0 +1,15 @@ +
+

{{ this.title }}

+ {% if this.box_image is defined and this.box_image != '' %} + {% set image = record.attachments.images.get(this.box_image) %} + Startendes Space Shuttle + {% endif %} + {{ this.box_content }} + +
+ + diff --git a/templates/blocks/flow_third_box_section.html b/templates/blocks/flow_third_box_section.html new file mode 100644 index 0000000..3097550 --- /dev/null +++ b/templates/blocks/flow_third_box_section.html @@ -0,0 +1,46 @@ + +
+
+ {% for inner in this.inner_box.blocks %} + {{ inner }} + {% endfor %} + {# +
+

+ Zusammen Arbyten, die eigene Idee fliegen sehen. +

+ {% if this.attachments.images %} + {% for image in this.attachments.images %} + Startendes Space Shuttle + {% endfor %} + {% endif %} +

Wir verstehen uns als Plattform for Hackende, auf der sich mit Gleichgesinnten wirtschaftliche Projekte möglich werden, die es anders nicht gäbe. Wir fördern und bewirtschaften im Kollektiv als Genossenschaft die Leistungen unserer Mitglieder. +

+
+ +
+
+ +
+

+ Genossenschafts­anteile sind eine Anlage, kein Geschenk. +

+ {% if this.attachments.images %} + {% for image in this.attachments.images %} + Startendes Space Shuttle + {% endfor %} + {% endif %} +

Wir bieten useren Mitgliedern nicht nur ein gutes Netzwerk, sondern auch eine sichere Anlagemöglichkeit. Hier kannst Du Dich über die Anlagekriterien informieren. +

+
+ +
+
+#} +
+
+ diff --git a/templates/homepage.html b/templates/homepage.html index 4b8311b..12ce3e2 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -10,70 +10,6 @@ {% block body %} - -
-
-
-

- Das Wichtigste gibt es jetzt auf die Ohren – WTF-Podcast -

- {% if this.attachments.images %} - {% for image in this.attachments.images %} - Startendes Space Shuttle - {% endfor %} - {% endif %} -

Unser Podcast "WTF Aktuell" fasst für Mitglieder und Interessierte die wichtigsten Nachrichten und Entwicklungen aus dem genossenschaftlichen Leben zusammen. -

-
    -
  • WTF eG Podcast S02E02
  • -
  • WTF eG Podcast S02E01
  • -
-
- -
-
- -
-

- Zusammen Arbyten, die eigene Idee fliegen sehen. -

- {% if this.attachments.images %} - {% for image in this.attachments.images %} - Startendes Space Shuttle - {% endfor %} - {% endif %} -

Wir verstehen uns als Plattform for Hackende, auf der sich mit Gleichgesinnten wirtschaftliche Projekte möglich werden, die es anders nicht gäbe. Wir fördern und bewirtschaften im Kollektiv als Genossenschaft die Leistungen unserer Mitglieder. -

-
- -
-
- -
-

- Genossenschafts­anteile sind eine Anlage, kein Geschenk. -

- {% if this.attachments.images %} - {% for image in this.attachments.images %} - Startendes Space Shuttle - {% endfor %} - {% endif %} -

Wir bieten useren Mitgliedern nicht nur ein gutes Netzwerk, sondern auch eine sichere Anlagemöglichkeit. Hier kannst Du Dich über die Anlagekriterien informieren. -

-
- -
-
-
-
- -