Skip to content

Commit

Permalink
Added Brevo form
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmeggle committed Apr 21, 2024
1 parent e06668d commit aa59227
Show file tree
Hide file tree
Showing 10 changed files with 190 additions and 5 deletions.
18 changes: 18 additions & 0 deletions content/newsletter.de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Newsletter 📨
date: 2022-01-25T14:00:00.000Z
authorbox: true
sidebar: true
menu: main
weight: 100
draft: false
---

Bleibe auf dem Laufenden mit allem, was in der Welt von Robotmk undRobot Framework passiert:
- Entwicklungen im Robot Framework-Umfeld
- Tutorials und Best Practices zu Synthetic Monitoring mit Robotmk und Checkmk
- Hinweise auf Veranstaltungen und Meetups

{{< newsletter_form >}}


17 changes: 17 additions & 0 deletions content/newsletter.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Newsletter 📨
date: 2022-01-25T14:00:00.000Z
authorbox: true
sidebar: true
menu: main
weight: 100
draft: false
---


Stay up to date with everything that's happening in the world of Robotmk and Robot Framework:
- Developments in the Robot Framework environment
- Tutorials and best practices on synthetic monitoring with Robotmk and Checkmk
- Information on events and meetups

{{< newsletter_form >}}
3 changes: 3 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ params:
email: "[email protected]"
post_meta: ["author", "date", "categories"]
toc: true
# URLS
url:
privacy_policy: ""
# COMMENTS
giscus:
commentable:
Expand Down
42 changes: 40 additions & 2 deletions i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

# Authorbox
- id: authorbox_name
translation: "Über {{ .Name }}"
# translation: "Über {{ .Name }}"
translation: "Über den Autor"

# Sidebar
- id: sidebar_warning
Expand Down Expand Up @@ -94,4 +95,41 @@
Parameter lassen sich beliebig viele weitere Gruppen konfigurieren."

- id: author_bio
translation: Simon ist Gründer des <a href='www.robotmk.org'>Robotmk</a>-Projekts und der <a href='www.elabit.de'>ELABIT GmbH</a>, und hat sich auf die Integration von Robot Framework-Tests in Checkmk-Umgebungen spezialisiert. Er hat über 20 Jahre Erfahrung im Open-Source-Monitoring und arbeitet inzwischen als Teilzeit-Produktmanager bei <a href='www.checkmk.com'>Checkmk</a>.<br>Für Synthetic Monitoring mit Robotmk bietet er vertiefende Online-Kurse und Workshops an und unterstützt Kunden bei der Implementierung.
translation: <b>Simon Meggle</b> ist Gründer des <a href='www.robotmk.org'>Robotmk</a>-Projekts und der <a href='www.elabit.de'>ELABIT GmbH</a>, und hat sich auf die Integration von Robot Framework-Tests in Checkmk-Umgebungen spezialisiert. Er hat über 20 Jahre Erfahrung im Open-Source-Monitoring und arbeitet inzwischen als Teilzeit-Produktmanager bei <a href='www.checkmk.com'>Checkmk</a>.<br>Für Synthetic Monitoring mit Robotmk bietet er vertiefende Online-Kurse und Workshops an und unterstützt Kunden bei der Implementierung.<br>Auf blog.robotmk.org berichtet er über die neuesten Entwicklungen bei Robotmk/Robot Framework, verfasst Tutorials und verrät der Community seine Best Practices.

# URLS
- id: url_privacypolicy
translation: "https://www.robotmk.org/pages/privacypolicy"

- id: privacy_policy
translation: "Datenschutzerklärung"

# BREVO Forms
- id: brevo_form_iframe_src_robotmk_blog_newsletter
translation: "https://cbbd9bbd.sibforms.com/serve/MUIFAJR37-lG6CotT2Fg5_xzB_iCln_YvPwBtJygT4rgeF9sDhTlfjvll4_E2HUI-Loa4y2wZTCRB1D2U1Xkir8kR0ofwMr2l8NXhYdrl69hxUih-wrurIKxxzdSv6iEHjM7XWSldL7FHjithVuK3aYaIR2fI_f2-AC0VBVV4-G-Ym3XHlP_6kRwvtXp-kPupg6vNNIZmEmAqiN1"



# # BREVO Translations
# - id: brevo_required_code_error_message
# translation: "Wählen Sie bitte einen Ländervorwahl aus."
# - id: brevo_locale
# translation: "de"
# - id: brevo_invalid_email_or_sms_message
# translation: "Die eingegeben Daten sind ungültig. Bitte versuche es erneut."
# - id: brevo_required_field_error_message
# translation: "Diese Feld darf nicht leer sein."
# - id: brevo_generic_invalid_message
# translation: "Die eingegeben Daten sind ungültig. Bitte versuche es erneut."
# - id: brevo_required_multiselect_message
# translation: "Wählen Sie bitte mindestens eine Option aus."
# - id: brevo_selected_list_singular
# translation: "{quantity} Liste ausgewählt"
# - id: brevo_selected_list_plural
# translation: "{quantity} Listen ausgewählt"
# - id: brevo_list_selection
# translation: "Ich interessiere mich außerdem für diese Themen:"
# - id: brevo_list_rmka_newsletter
# translation: "das Robotmk Academy Zertifizierungs-System 🏅"
# - id: accept_privacy_policy
# translation: "Ich habe die Datenschutzerklärung gelesen und möchte den Newsletter erhalten."
46 changes: 43 additions & 3 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

# Authorbox
- id: authorbox_name
translation: "About {{ .Name }}"
# translation: "About {{ .Name }}"
translation: "About the author"

# Sidebar
- id: sidebar_warning
Expand Down Expand Up @@ -94,5 +95,44 @@
config parameter."

- id: author_bio
translation: As founder of the <a href='www.robotmk.org'>Robotmk</a> project and the <a href='www.elabit.de'>ELABIT GmbH</a>, Simon is an integration specialist for Robot Framework tests into Checkmk monitoring. With over 20 years of experience in open source monitoring, he works as a part-time product manager at <a href='www.checkmk.com'>Checkmk</a>. <br>Simon also offers in-depth online courses and workshops on automated testing, helping customers establish robust Synthetic Monitoring processes.

translation: As founder of the <a href='www.robotmk.org'>Robotmk</a> project and the <a href='www.elabit.de'>ELABIT GmbH</a>, <b>Simon Meggle</b> is an integration specialist for Robot Framework tests into Checkmk monitoring. With over 20 years of experience in open source monitoring, he works as a part-time product manager at <a href='www.checkmk.com'>Checkmk</a>. <br>Simon also offers in-depth online courses and workshops on automated testing, helping customers establish robust Synthetic Monitoring processes.<br>On blog.robotmk.org he reports on the latest developments in Robotmk/Robot Framework, writes tutorials and shares his best practices with the community.


# URLS
# TODO: Privacy policy URL i18n
- id: url_privacypolicy
translation: "https://www.robotmk.org/pages/privacypolicy"

- id: privacy_policy
translation: "Privacy Policy"


# BREVO Forms
- id: brevo_form_iframe_src_robotmk_blog_newsletter
translation: "https://cbbd9bbd.sibforms.com/serve/MUIFAO63AA8lZYzFFT1iDYGdtd9HXhgfl1XMjzhmiGUxmiHdPQPmVRzpgZ2cmGxxHsU8y7BFbvXrTbURs3dgdbTs5Ce8W0mUfKQo9WJ-zOd5ATeL_JJI3iTMcM-Yl7JSRgGMvkTkxahCY8MF_OGzIxqQll0cm_hGC94SwezWq1Xp2sq6GSk41gnrPQHLh0JdPTioaxRuY1si2Qoa"



# # BREVO Translations
# - id: brevo_required_code_error_message
# translation: "Please select a country code."
# - id: brevo_locale
# translation: "en"
# - id: brevo_invalid_email_or_sms_message
# translation: "The input data is invalid. Please try again."
# - id: brevo_required_field_error_message
# translation: "This field cannot be empty."
# - id: brevo_generic_invalid_message
# translation: "The input data is invalid. Please try again."
# - id: brevo_required_multiselect_message
# translation: "Please select at least one option."
# - id: brevo_selected_list_singular
# translation: "{quantity} list selected"
# - id: brevo_selected_list_plural
# translation: "{quantity} lists selected"
# - id: brevo_list_selection
# translation: "I am also interested in these topics:"
# - id: brevo_list_rmka_newsletter
# translation: "the Robotmk Academy Certification System 🏅"
# - id: accept_privacy_policy
# translation: "I have read and accept the privacy policy and want to receive the newsletter."
18 changes: 18 additions & 0 deletions layouts/partials/brevo_i18n-js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script>
window.LOCALE = '{{ i18n "brevo_locale" }}';
window.REQUIRED_CODE_ERROR_MESSAGE = '{{ i18n "brevo_required_code_error_message" }}';
window.EMAIL_INVALID_MESSAGE = window.SMS_INVALID_MESSAGE = '{{ i18n "brevo_invalid_email_or_sms_message" }}';
window.REQUIRED_ERROR_MESSAGE = '{{ i18n "brevo_required_field_error_message" }}';
window.GENERIC_INVALID_MESSAGE = '{{ i18n "brevo_generic_invalid_message" }}';
window.REQUIRED_MULTISELECT_MESSAGE = '{{ i18n "brevo_required_multiselect_message" }}';

window.translation = {
common: {
selectedList: '{{ i18n "brevo_selected_list_singular" }}',
selectedLists: '{{ i18n "brevo_selected_list_plural" }}'
}
};

var AUTOHIDE = Boolean(1);
</script>

1 change: 1 addition & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<footer class="footer">
<div class="container footer__container flex">
{{ partial "brevo_i18n-js.html" . }}
{{ partial "footer_links.html" . }}
<div class="footer__copyright">
&copy; {{ now.Format "2006" }} {{ .Site.Params.copyright | default .Site.Title }}
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<header class="header sticky-top">
<div class="container header__container">
{{/* CSS copied from HTML box */}}
<link rel="stylesheet" href='{{ "/css/brevo_form.css" | absURL }}'>
{{/* last line from HTML box with static brevo CSS */}}
<link rel="stylesheet" href="https://sibforms.com/forms/end-form/build/sib-styles.css">
{{ partial "logo.html" . }}
{{ partial "menu.html" . }}
</div>
Expand Down
4 changes: 4 additions & 0 deletions layouts/shortcodes/newsletter_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{/* https://app.brevo.com/contact/forms/subscription */}}
{{/* iframe URL is fetched from i18n yaml */}}
{{/* <iframe style="border: 0;" width="540" height="800" src='{{ i18n "brevo_form_iframe_src_robotmk_blog_newsletter"}}' frameborder="0" scrolling="auto" allowfullscreen style="display: block;margin-left: auto;margin-right: auto;max-width: 100%;"></iframe> */}}
<iframe style="border: 0;" width="540" height="550" src='{{ i18n "brevo_form_iframe_src_robotmk_blog_newsletter"}}'></iframe>
42 changes: 42 additions & 0 deletions static/css/brevo_form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@font-face {
font-display: block;
font-family: Roboto;
src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
}

@font-face {
font-display: fallback;
font-family: Roboto;
font-weight: 600;
src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
}

@font-face {
font-display: fallback;
font-family: Roboto;
font-weight: 700;
src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
}

#sib-container input:-ms-input-placeholder {
text-align: left;
font-family: "Helvetica", sans-serif;
color: #c0ccda;
}

#sib-container input::placeholder {
text-align: left;
font-family: "Helvetica", sans-serif;
color: #c0ccda;
}

#sib-container textarea::placeholder {
text-align: left;
font-family: "Helvetica", sans-serif;
color: #c0ccda;
}

#sib-container a {
text-decoration: underline;
color: #2BB2FC;
}

0 comments on commit aa59227

Please sign in to comment.