Add jobs page

This commit is contained in:
2022-01-11 17:09:54 +01:00
parent 6b1c31893b
commit 50b4962c91
15 changed files with 156 additions and 23 deletions

View File

@@ -130,6 +130,10 @@ $widthvalues: (0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100, 125, 150, 200,
text-align: justify;
}
.uppercase {
text-transform: uppercase;
}
/* SPACINGS */
.m-auto {
margin: auto;

View File

@@ -1,25 +1,18 @@
{{ define "main" }}
{{if (isset .Params "titleimg")}}
{{$titleimg := resources.Get .Params.titleimg}}
<div class="bg-primary p-t-100 p-b-100 ta-c">
<img class="max-w-300" src="{{$titleimg.Permalink}}" alt="{{.Title}}" />
<h1 class="white uppercase">{{.Title}}</h1>
<p class="white">{{.Description}}</p>
</div>
{{end}}
<div class="container flex-row j-center wrap p-30">
{{ if not .Pages }}
<p class="ta-c m-200 disabled">Aucune offre d'emploi pour le moment.</p>
{{ end }}
<div class="container p-30">
{{range .Pages}}
<a href="{{.Permalink}}">
<div class="max-w-250 flex-1 m-20">
{{ if (isset .Params "featuredimage" )}}
{{$img := resources.Get .Params.featuredimage}}
<div style='background-image: url({{ $img.Permalink }}); background-size: cover; background-position: center center;' class="bg-bubble w-150 h-150 m-auto"></div>
{{end}}
<h3 class="primary ta-c">{{.Title}}</h3>
<p class="ta-c" style="font-size: 0.8em; text-style: italic;">Le {{dateFormat "02/01/2006" .Date}}</p>
<p class="ta-j">{{.Description}}</p>
</div>
</a>
<ul>
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
</ul>
{{end}}
</div>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@@ -0,0 +1,26 @@
{{ define "main" }}
{{if (isset .Params "titleimg")}}
{{$titleimg := resources.Get .Params.titleimg}}
<div class="bg-primary p-t-100 p-b-100 ta-c">
<img class="max-w-300" src="{{$titleimg.Permalink}}" alt="{{.Title}}" />
</div>
{{end}}
<div class="container flex-row j-center wrap p-30">
{{range .Pages}}
<a href="{{.Permalink}}">
<div class="max-w-250 flex-1 m-20">
{{ if (isset .Params "featuredimage" )}}
{{$img := resources.Get .Params.featuredimage}}
<div style='background-image: url({{ $img.Permalink }}); background-size: cover; background-position: center center;' class="bg-bubble w-150 h-150 m-auto"></div>
{{end}}
<h3 class="primary ta-c">{{.Title}}</h3>
<p class="ta-c" style="font-size: 0.8em; text-style: italic;">Le {{dateFormat "02/01/2006" .Date}}</p>
<p class="ta-j">{{.Description}}</p>
</div>
</a>
{{end}}
</div>
{{end}}

View File

@@ -0,0 +1,6 @@
{{ define "main" }}
<div class="container content">
{{.Content}}
</div>
{{ end }}

View File

@@ -52,6 +52,7 @@
<h3 class="m-l-40 m-b-0">La coopérative :</h4>
<ul class="m-t-5">
<li><a href="/opensource/">❤️ Open source & Open Data</a></li>
<li><a href="/emplois/">Offres d'emplois</a></li>
<li><a href="/mentions-legales/">Mentions légales</a></li>
</ul>
</div>