Initial commit
This commit is contained in:
5
themes/coopgo-theme/layouts/404.html
Normal file
5
themes/coopgo-theme/layouts/404.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<h1>Erreur : Cette page n'existe pas</h1>
|
||||
|
||||
{{ end }}
|
||||
11
themes/coopgo-theme/layouts/_default/baseof.html
Normal file
11
themes/coopgo-theme/layouts/_default/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>
|
||||
13
themes/coopgo-theme/layouts/_default/list.html
Normal file
13
themes/coopgo-theme/layouts/_default/list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="container flex-row j-center wrap p-30">
|
||||
{{range .Pages}}
|
||||
<a href="{{.Permalink}}">
|
||||
<div class="max-w-200 flex-1">
|
||||
<h3 class="primary ta-c">{{.Title}}</h3>
|
||||
</div>
|
||||
</a>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{end}}
|
||||
7
themes/coopgo-theme/layouts/_default/single.html
Normal file
7
themes/coopgo-theme/layouts/_default/single.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="container content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
88
themes/coopgo-theme/layouts/index.html
Normal file
88
themes/coopgo-theme/layouts/index.html
Normal file
@@ -0,0 +1,88 @@
|
||||
{{ define "main" }}
|
||||
<div class="flex-row">
|
||||
<div class="flex-1">
|
||||
<div class="m-t-20 m-b-20 m-auto p-20 max-w-600">
|
||||
<h1 class="title">
|
||||
<span class="primary">{{ .Site.Params.Section1.BaselinePart1 }}</span>
|
||||
<span class="secondary">{{ .Site.Params.Section1.BaselinePart2 }}</span>
|
||||
</h1>
|
||||
<p>
|
||||
{{ replace .Site.Params.Section1.Description .Site.Title ( print "<span class=\"brand\">" .Site.Title "</span>" ) | safeHTML }}
|
||||
</p>
|
||||
{{ $bubbles := resources.Get .Site.Params.Section1.Image }}
|
||||
<img class="w-full" src="{{ $bubbles.Permalink }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="featuredimage w-400">
|
||||
{{ $img := resources.Get .Site.Params.FeaturedImage }}
|
||||
<img class="w-600" style="margin-top: -100px" src="{{ $img.Permalink }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-primary reverse w-full">
|
||||
<h1 class="container ta-c p-t-20">{{ .Site.Params.Section2.Title }}</h1>
|
||||
<div class="container flex-row wrap">
|
||||
{{ range .Site.Params.Section2.List }}
|
||||
<div class="flex-1 m-30 min-w-200">
|
||||
<div class="w-100 h-100 m-auto bg-{{ .color }} bg-bubble icon-bubble">
|
||||
{{ $icon := resources.Get ( print "images/icons/" .icon ".svg") }}
|
||||
<img src="{{ $icon.Permalink }}" />
|
||||
</div>
|
||||
<h2 class="ta-c">{{ .title }}</h2>
|
||||
<p class=" ta-j">{{ .text }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-30">
|
||||
<h1 class="container ta-c brandblue">{{ .Site.Params.Section3.Title }}</h1>
|
||||
{{ range .Site.Params.Section3.List }}
|
||||
<div class="container flex-row ai-center {{ if (eq .side "right") }} direction-row-reverse{{end}}">
|
||||
<div class="bg-{{.color}} bg-bubble icon-bubble w-75 h-75 m-20">
|
||||
{{ $icon := resources.Get ( print "images/icons/" .icon ".svg") }}
|
||||
<img src="{{ $icon.Permalink }}" />
|
||||
</div>
|
||||
<div class="flex-1 max-w-500">
|
||||
<h3 class="m-b-0 {{.color}} {{ if (eq .side "right") }} ta-r{{end}}">{{.title}}</h3>
|
||||
<p class="m-t-0 ta-j">{{.description}}</p>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="bg-secondary p-20" id="section4">
|
||||
<h1 class="container ta-c white p-20">{{ .Site.Params.Section4.Title }}</h1>
|
||||
<div class="container flex-row wrap j-center">
|
||||
{{ $projects := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.Section4.projectsPages }}
|
||||
{{ range $projects }}
|
||||
<a href="{{.Permalink}}">
|
||||
<div class="m-20 w-125 h-125 bg-primary bg-bubble white flex-row ai-center j-center">
|
||||
{{ if (not (isset .Params "image")) | or (eq .Params.image "") }}
|
||||
<p class="brand cap ta-c">{{.Title}}</p>
|
||||
{{else}}
|
||||
{{ $img := resources.Get .Params.image }}
|
||||
<img class="max-w-100 max-h-100" src="{{$img.Permalink}}" alt="{{.Title}}" />
|
||||
<!-- <p class="brand cap ta-c">{{.Title}}</span> -->
|
||||
{{end}}
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
|
||||
</div>
|
||||
<div class="container flex-row wrap j-center">
|
||||
{{ $references := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.Section4.referencesPages }}
|
||||
{{ range $references }}
|
||||
<a href="{{.Permalink}}">
|
||||
<div class="m-20 w-125 h-125 bg-white bg-bubble brandblue flex-row ai-center j-center">
|
||||
{{ if (not (isset .Params "image")) | or (eq .Params.image "") }}
|
||||
<p class="brand cap ta-c">{{.Title}}</p>
|
||||
{{else}}
|
||||
{{ $img := resources.Get .Params.image }}
|
||||
<img class="max-w-100 max-h-100" src="{{$img.Permalink}}" alt="{{.Title}}" />
|
||||
<!-- <p class="brand cap ta-c">{{.Title}}</span> -->
|
||||
{{end}}
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
65
themes/coopgo-theme/layouts/partials/footer.html
Normal file
65
themes/coopgo-theme/layouts/partials/footer.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<div id="footer">
|
||||
<div class="ta-c">
|
||||
{{ $logofooter := resources.Get .Site.Params.LogoFooter }}
|
||||
<img class="m-100 max-w-300" src="{{ $logofooter.Permalink }}" alt="COOPGO, GO TOGETHER" />
|
||||
</div>
|
||||
<div class="container flex-row wrap" id="realFooter">
|
||||
<div>
|
||||
<ul>
|
||||
<li>
|
||||
{{ $linkedin := resources.Get "images/linkedin.svg" }}
|
||||
<a href="{{ .Site.Params.Social.Linkedin }}"><img class="w-15 h-15" src="{{$linkedin.Permalink}}" alt="Linkedin" /></a>
|
||||
</li>
|
||||
<li>
|
||||
{{ $facebook := resources.Get "images/facebook.svg" }}
|
||||
<a href="{{ .Site.Params.Social.Facebook }}"><img class="w-15 h-15" src="{{$facebook.Permalink}}" alt="Facebook" /></a>
|
||||
</li>
|
||||
<li>
|
||||
{{ $twitter := resources.Get "images/twitter.svg" }}
|
||||
<a href="{{ .Site.Params.Social.Twitter }}"><img class="w-15 h-15" src="{{$twitter.Permalink}}" alt="Twitter" /></a>
|
||||
</li>
|
||||
<li>
|
||||
{{ $youtube := resources.Get "images/youtube.svg" }}
|
||||
<a href="{{ .Site.Params.Social.Youtube }}"><img class="w-15 h-15" src="{{$youtube.Permalink}}" alt="Youtube" /></a>
|
||||
</li>
|
||||
<li>
|
||||
{{ $instagram := resources.Get "images/instagram.svg" }}
|
||||
<a href="{{ .Site.Params.Social.Instagram }}"><img class="w-15 h-15" src="{{$instagram.Permalink}}" alt="Instagram" /></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="m-l-40 m-b-0">Nos solutions :</h4>
|
||||
<ul class="m-t-5">
|
||||
{{ $mainPages := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.mainPages }}
|
||||
{{ range $mainPages }}
|
||||
<li class="max-w-200">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="m-l-40 m-b-0">Découvrir :</h4>
|
||||
<ul class="m-t-5">
|
||||
<li><a href="https://www.ridygo.fr"><span class="brand">RIDYGO</span>, covoiturage</a></li>
|
||||
<li><a href="https://www.silver-mobi.coop"><span class="brand">SILVERMOBI</span>, mobilité solidaire</a></li>
|
||||
<li><a href="/gotogether/"><span class="brand">GOTOGETHER</span>, le mag</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
|
||||
<h3 class="m-l-40 m-b-0">La coopérative :</h4>
|
||||
<ul class="m-t-5">
|
||||
<li><a href="/mentions-legales/">Mentions légales</a></li>
|
||||
<li><a href="https://emplois.scity.coop">Emplois</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ta-c">
|
||||
{{ range .Site.Params.Partners }}
|
||||
{{ $img := resources.Get .image }}
|
||||
<a href="{{.link}}"><img class="h-50 m-20" src="{{$img.Permalink}}" alt="{{.alt}}" /></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
15
themes/coopgo-theme/layouts/partials/head.html
Normal file
15
themes/coopgo-theme/layouts/partials/head.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{{ $sass := resources.Get "sass/main.scss" }}
|
||||
{{ $style := $sass | resources.ToCSS }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
|
||||
|
||||
{{ $js := resources.Get "js/main.js" }}
|
||||
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
||||
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
||||
27
themes/coopgo-theme/layouts/partials/header.html
Normal file
27
themes/coopgo-theme/layouts/partials/header.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<nav id="navbar">
|
||||
<div class='left bg-white'>
|
||||
{{ $logo := resources.Get .Site.Params.Logo }}
|
||||
<a href="{{.Site.BaseURL}}"><img src="{{ $logo.Permalink }}" alt="COOPGO" /></a>
|
||||
</div>
|
||||
<div class='center bg-white'>
|
||||
<ul class="flex-row j-center ai-center">
|
||||
{{ $pages := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.mainPages }}
|
||||
{{ range $pages }}
|
||||
<li class="max-w-200">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class='{{ if ne (relURL .URL) ("/" | safeHTML) }}bg-primary{{ end }} right w-400'>
|
||||
<ul class="flex-row j-center ai-center">
|
||||
<li>
|
||||
{{ $gotogether := resources.Get "images/gotogether-lemag.svg" }}
|
||||
<a href="/gotogether/">
|
||||
<img class="h-25" src="{{ $gotogether.Permalink }}" alt="GO TOGETHER le mag" />
|
||||
</a>
|
||||
</li>
|
||||
{{ if eq (relURL .URL) ("/" | safeHTML) }}<li><a href="#section4">NOS PROJETS</a></li>{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
1
themes/coopgo-theme/layouts/shortcodes/brand.html
Normal file
1
themes/coopgo-theme/layouts/shortcodes/brand.html
Normal file
@@ -0,0 +1 @@
|
||||
<span class="brand">{{.Get 0}}</span>
|
||||
3
themes/coopgo-theme/layouts/shortcodes/column.html
Normal file
3
themes/coopgo-theme/layouts/shortcodes/column.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="flex-1 m-20">
|
||||
{{.Inner}}
|
||||
</div>
|
||||
3
themes/coopgo-theme/layouts/shortcodes/flex-row.html
Normal file
3
themes/coopgo-theme/layouts/shortcodes/flex-row.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="flex-row wrap ai-center">
|
||||
{{.Inner}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user