From 65dc52138532c842e475c88d7b627b183397cf9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o?= <theo@le-filament.com>
Date: Mon, 9 May 2022 17:17:55 +0200
Subject: [PATCH] feat: add proposition when no job offer

---
 assets/css/style.css                          | 19 ++++++++-------
 .../offres-emploi/developpe-python-junior.md  |  2 +-
 .../offres-emploi/developpe-python-senior.md  |  2 +-
 layouts/offres-emploi/list.html               | 24 +++++++++++++------
 layouts/offres-emploi/proposition.html        | 16 +++++++++++++
 layouts/offres-emploi/single.html             |  2 +-
 6 files changed, 47 insertions(+), 18 deletions(-)
 create mode 100644 layouts/offres-emploi/proposition.html

diff --git a/assets/css/style.css b/assets/css/style.css
index 08b1449..9c1a0e7 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -1,4 +1,3 @@
-/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */
 html {
  color:#222;
  font-size:1em;
@@ -297,9 +296,6 @@ hr {
 ol {
  list-style:decimal
 }
-li {
- display:inline-block
-}
 li>ul,
 li>ol {
  margin-bottom:0
@@ -1107,9 +1103,10 @@ object {
  ul.menu-section {
   width:max-content
  }
- .contact-yellow-top {
-  display:block
- }
+  .contact-yellow-top {
+    display:block;
+    width: fit-content;
+  }
 }
 .contact-yellow {
  width:calc(100% - 14px);
@@ -1611,9 +1608,15 @@ h1 {
   margin: 20px;
 }
 
+.center {
+  margin: 20px auto;
+}
+.justify {
+  text-align: justify;
+}
+
 article {
   margin-top: 130px;
-  text-align: justify;
 }
 
 article h1 {
diff --git a/content/offres-emploi/developpe-python-junior.md b/content/offres-emploi/developpe-python-junior.md
index 042ce95..2fd751c 100644
--- a/content/offres-emploi/developpe-python-junior.md
+++ b/content/offres-emploi/developpe-python-junior.md
@@ -2,7 +2,7 @@
 title: "Développeuse ou développeur Python Open Source Junior"
 date: 2022-04-06T14:39:57+02:00
 summary: "Le Filament cherche à renforcer son équipe de développement (3 personnes) spécialisée dans Odoo (ERP en Python principalement)."
-draft: false
+draft: true
 ---
 
 # DESCRIPTION DU POSTE
diff --git a/content/offres-emploi/developpe-python-senior.md b/content/offres-emploi/developpe-python-senior.md
index 6160046..4b1bf24 100644
--- a/content/offres-emploi/developpe-python-senior.md
+++ b/content/offres-emploi/developpe-python-senior.md
@@ -2,7 +2,7 @@
 title: "Développeuse ou développeur Python Open Source Expérimenté"
 date: 2022-04-06T14:39:57+02:00
 summary: "Le Filament recherche une développeuse ou un développeur Python Open Source d'expérience pour renforcer/organiser son équipe de développement Odoo (3 personnes)."
-draft: false
+draft: true
 ---
 
 # DESCRIPTION DU POSTE
diff --git a/layouts/offres-emploi/list.html b/layouts/offres-emploi/list.html
index 26d7beb..0160c37 100644
--- a/layouts/offres-emploi/list.html
+++ b/layouts/offres-emploi/list.html
@@ -1,15 +1,25 @@
 {{ define "main" }}
-<div id="content" class="site-content container-site">
+<div id="content" class="site-content container-site justify">
   <h1>{{ .Title }}</h1>
   {{ .Content }}
   <section class="jobs-list">
     {{ range .Pages }}
-      <div class="job">
-        <h2>
-          <a href="{{.Permalink}}" class="job-title">{{.Title}}</a>
-        </h2>
-        <p class="job-summary">{{ .Summary }}</p>
-      </div>
+    <div class="job">
+      <h2>
+        <a href="{{.Permalink}}" class="job-title">{{.Title}}</a>
+      </h2>
+      <p class="job-summary">{{ .Summary }}</p>
+    </div>
+    {{ end }}
+    {{ if eq (len .Pages) 0 }}
+    <div class="job">
+      <h2>
+        <span class="job-title">Aucune offre actuellement</span>
+      </h2>
+      {{ "layouts/offres-emploi/proposition.html" | readFile | safeHTML }}
+    </div>
+    {{ else }}
+    {{ "layouts/offres-emploi/proposition.html" | readFile | safeHTML }}
     {{ end }}
   </section>
 </div>
diff --git a/layouts/offres-emploi/proposition.html b/layouts/offres-emploi/proposition.html
new file mode 100644
index 0000000..2a912bf
--- /dev/null
+++ b/layouts/offres-emploi/proposition.html
@@ -0,0 +1,16 @@
+<p>
+  Le Filament est à l'écoute de toutes les sollicitations, sur des profils
+</p>
+<ul>
+  <li>développement Python Open Source</li>
+  <li>gestion de projets / accompagnement clients</li>
+  <li>Administration Système</li>
+</ul>
+<p>
+  Si vous pensez être au bon endroit, n'hésitez pas à nous contacter en envoyant un message à :
+</p>
+<div class="contact-yellow-top button center">
+  <div class="contact-yellow">
+    <a id="contact" class="contact" href="mailto:recrutement@le-filament.com">recrutement@le-filament.com</a>
+  </div>
+</div>
diff --git a/layouts/offres-emploi/single.html b/layouts/offres-emploi/single.html
index 44dc22b..2029b9e 100644
--- a/layouts/offres-emploi/single.html
+++ b/layouts/offres-emploi/single.html
@@ -1,5 +1,5 @@
 {{ define "main" }}
-<main id="content" class="site-content container-site">
+<main id="content" class="site-content container-site justify">
   <h1>Offres d'emploi</h1>
   <article>
     <h1>{{ .Title }}</h1>
-- 
GitLab