From 0eeeac9ce015d3ce9250290029b95ceb71318d06 Mon Sep 17 00:00:00 2001 From: muli Date: Sun, 2 Jul 2023 10:09:33 +0200 Subject: [PATCH] feat: Kontaktformular von Homepage auf "Was wir tun" verlegt. WIP: FAQ auf homepage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enthält Fix dafür, dass ohne JS nur ein Teil des Kontaktformulars ausgeblendet wird, was das Layout zerschießt. --- assets/js/contact_form_toggle.js | 4 +-- content/about/contents+en.lr | 18 +++++++++- content/about/contents.lr | 19 +++++++++++ content/contents+en.lr | 18 ---------- content/contents.lr | 26 +++++--------- models/about_page.ini | 34 +++++++++++++++++++ models/homepage.ini | 38 +++------------------ templates/about_page.html | 58 +++++++++++++++++++++++++++++++- templates/homepage.html | 56 ++---------------------------- 9 files changed, 145 insertions(+), 126 deletions(-) diff --git a/assets/js/contact_form_toggle.js b/assets/js/contact_form_toggle.js index 00ca58c5..a73b63b5 100644 --- a/assets/js/contact_form_toggle.js +++ b/assets/js/contact_form_toggle.js @@ -1,7 +1,7 @@ /* Unhide contact form if JS is enabled */ window.addEventListener('DOMContentLoaded', (event) => { - const contact_form_wrapper = document.getElementsByClassName('content__contact_form_wrapper')[0]; + const contact_form_wrapper = document.getElementsByClassName('contact__box')[0]; if (contact_form_wrapper) { - contact_form_wrapper.style.setProperty('display', 'block'); + contact_form_wrapper.style.setProperty('display', 'grid'); } }); diff --git a/content/about/contents+en.lr b/content/about/contents+en.lr index d19314e5..82e44dfb 100644 --- a/content/about/contents+en.lr +++ b/content/about/contents+en.lr @@ -36,7 +36,6 @@ card_image: icon_connected_servers.svg card_text: After the project, we do not leave you out in the cold with the result, but offer you services for the operation of the completed project and the administration of the infrastructure beyond the project. ---- image_credits: servers by IYIKON from Noun Project ----- #### flow_icon_bubbles #### icon_path: Python_logo_and_wordmark.svg ---- @@ -110,3 +109,20 @@ kompetenzen_body: - Translation & Internationalisation (i18n/l10n) --- kompetenzen_heading: Expertise +--- +contact_form_button: Send message +--- +contact_form_email: Email address +--- +contact_form_heading: Contact +--- +contact_form_info: + +Your email address will not be published.
+