From af8b1f71fa44fec46c78b4b972a518cbbb14c33e Mon Sep 17 00:00:00 2001 From: Simon C Date: Sat, 14 Oct 2023 00:50:26 +0200 Subject: [PATCH] feat: Ajout de l'infolettre --- assets/css/main.sass | 23 ++++++++++++++++++++++- content/_index.md | 2 ++ layouts/shortcodes/infolettre.html | 22 ++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/infolettre.html diff --git a/assets/css/main.sass b/assets/css/main.sass index b823ca1..9577559 100644 --- a/assets/css/main.sass +++ b/assets/css/main.sass @@ -76,15 +76,36 @@ a text-align: center padding: 2rem - a + a, input padding: 1rem background-color: $color-primary color: white text-decoration: none + border: 0 + font-size: 1.2rem &:hover background: $color-secondary +.infolettre + input[type="text"], input[type="email"] + border-radius: .3rem + border: 2px solid $color-primary + padding: .5rem + margin-top: .5rem + margin-bottom: .5rem + + .full + input + width: 45% + @media screen and (max-width: 600px) + width: calc(100% - 1rem - 4px) + &+input + float: right + + @media screen and (max-width: 600px) + margin-right: 0 + .monitoring text-align: center border-collapse: collapse diff --git a/content/_index.md b/content/_index.md index 3fbca3e..4597763 100644 --- a/content/_index.md +++ b/content/_index.md @@ -27,3 +27,5 @@ Nous faisons partie de l'association "Centrales Villageoises", qui regroupe des Il existe de nombreuses "Centrales Villageoises" en France et surtout dans notre région qui porte ce type de projet. L'association les accompagne de leur gestation à leur réalisation. Pour plus d'information vous pouvez consulter le site des [Centrales Villageoises](http://www.centralesvillageoises.fr/). + +{{< infolettre >}} diff --git a/layouts/shortcodes/infolettre.html b/layouts/shortcodes/infolettre.html new file mode 100644 index 0000000..ff3aa18 --- /dev/null +++ b/layouts/shortcodes/infolettre.html @@ -0,0 +1,22 @@ +
+
+
+

Lettre d'information pour se tenir informé

+ +

+ + +

+

+ + +

+

+ + +

+
+ +
+
+