Add jobs page
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
11
themes/coopgo-theme/layouts/gotogether/baseof.html
Normal file
11
themes/coopgo-theme/layouts/gotogether/baseof.html
Normal 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>
|
||||
26
themes/coopgo-theme/layouts/gotogether/list.html
Normal file
26
themes/coopgo-theme/layouts/gotogether/list.html
Normal 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}}
|
||||
6
themes/coopgo-theme/layouts/gotogether/single.html
Normal file
6
themes/coopgo-theme/layouts/gotogether/single.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<div class="container content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user