Initial groups created

This commit is contained in:
echarp 2023-01-26 09:51:33 +01:00
parent 8db79565f6
commit 4d36b25402
22 changed files with 126 additions and 73 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,4 @@
---
title: Gryffondor
featured_image: ../../../assets/120px-Blason_Gryffondor.svg.png
---

View File

@ -1,5 +1,6 @@
--- ---
title: 🏠 Groupes title: 🏠 Maisons
featured_image: ../../../assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png
--- ---
Tous les groupes associés aux joueurs Toutes les maisons associées aux joueurs

View File

@ -0,0 +1,4 @@
---
title: Serdaigle
featured_image: ../../../assets/Blason_Serdaigle.svg.png
---

View File

@ -0,0 +1,4 @@
---
title: Poufsouffle
featured_image: ../../../assets/120px-Coat_of_arms_Hufflepuff.svg.png
---

View File

@ -0,0 +1,4 @@
---
title: Serpentard
featured_image: ../../../assets/120px-Blason_Serpentard.svg.png
---

View File

@ -1,7 +0,0 @@
---
title: Groupe de test
groups:
- test
---
Hello world

View File

@ -0,0 +1,7 @@
---
title: 1er quiz
ac_create:
- /pages/1er-quiz/start
---
Bienvenue sur votre premier quiz!

View File

@ -0,0 +1,12 @@
---
title: Chapitre 01
description: Le survivant
featured_image: /../../../../../assets/Swallow_flying_drinking.jpg
ac_choices:
- "[Des centaines de hiboux se sont mis à voler, de jour, partout dans le pays](/pages/1er-quiz/erreur)"
- "[Des averses détoiles filantes ont été aperçues du côté de lÉcosse](/pages/1er-quiz/erreur)"
- "[Un chat a passé la journée à observer leur maison tout en ayant un comportement d'humain](/pages/1er-quiz/erreur)"
- "[Tout à la fois](/pages/1er-quiz/9ade4891-d0f3-4644-8d4d-4e787aeaf22c)"
---
Quels évènements surprenants amènent les Dursley à se demander que deviennent les Potter et leur fils Harry?

View File

@ -0,0 +1,15 @@
---
title: Nouvel utilisateur
description: Court texte
date: 2023-01-20T23:22:36+01:00
ac_create:
- /pages/1er-quiz/_index
---
Bienvenue sur votre page de joueur.
Son adresse est secrète, si quiconque y a accès il pourra jouer à votre place ou vandaliser vos badges.
Je vous recommande d'ajouter un marque page pour cette page, et de ne pas la
partager avec quiconque, car cette adresse est secrète et vous permet de
revenir autant que vous le voulez.

View File

@ -4,7 +4,7 @@ description: Helo world!...
date: 2022-10-31T22:46:14+01:00 date: 2022-10-31T22:46:14+01:00
ac_create: ac_create:
- /pages/1er-quiz/_index - /pages/1er-quiz/_index
groups: test groups: fb3733e9-0dca-4ff8-ab7d-bced62a294a9
--- ---
Texte Texte

View File

@ -0,0 +1,6 @@
---
title: Nouveau groupe
description: Sous-titre
---
Texte

View File

@ -64,7 +64,6 @@ body #content:focus {
.links .assets, .links .assets,
body.pages header time, body.pages header time,
.author-only { display: none; } .author-only { display: none; }
body.author .author-only { display: initial; } body.author .author-only { display: initial; }
body.author .ac_choices .destination { body.author .ac_choices .destination {
display: none; display: none;
@ -129,7 +128,6 @@ body.users .ac_choice input[type="radio"]:checked + label.text {
border-radius: 0.2em; border-radius: 0.2em;
} }
aside#actions input#cover,
aside#actions input#file { aside#actions input#file {
display: none; display: none;
} }

View File

@ -2,7 +2,7 @@
<section class="pa3 pa4-ns nested-copy-line-height"> <section class="pa3 pa4-ns nested-copy-line-height">
<aside id="actions" class="w-30-l mt4-l fr tc"> <aside id="actions" class="w-30-l mt4-l fr tc">
<button class="br-pill f6 link dim pa3 dib white bg-dark-gray pointer"><label for="file">{{ T (print .Section ".create") }}</label></button> <button class="br-pill f6 link dim pa3 dib white bg-dark-gray pointer"><label for="file">{{ T (print .Section ".create") }}</label></button>
<input id="file" multiple name="file" type="file"/> <input class="dn" id="file" multiple name="file" type="file"/>
</aside> </aside>
{{ with .Content }} {{ with .Content }}

View File

@ -1,31 +1,31 @@
{{ define "main" }} {{ define "main" }}
<section class="pa3 pa4-ns nested-copy-line-height"> <section class="pa3 pa4-ns nested-copy-line-height">
<aside id="actions" class="w-30-l mt4-l fr tc"> <aside id="actions" class="w-third-l mt4-l fr tc">
{{ if .Parent.IsHome }} {{ if .Parent.IsHome }}
<button id="create" <button id="create"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"> class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
{{ T (print .Section ".create") }} {{ T (print .Section ".create") }}
</button> </button>
{{ else if .Parent.Parent.IsHome }} {{ else if .Parent.Parent.IsHome }}
<button id="delete" <button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
data-confirm="{{ T (print .Section ".delete") }}?"> data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".delete") }} {{ T (print .Section ".delete") }}
</button> </button>
{{ end }} {{ end }}
</aside> </aside>
{{ with .Content }} {{ with .Content }}
<section id="content" <section id="content"
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
{{- . -}} {{- . -}}
</section> </section>
{{ end }}
<section class="flex-ns flex-wrap justify-around">
{{ range .Pages.ByTitle }}
{{ .Render "summary-with-image" }}
{{ end }} {{ end }}
<section class="flex-ns flex-wrap justify-around">
{{ range .Pages.ByTitle }}
{{ .Render "summary-with-image" }}
{{ end }}
</section>
</section> </section>
</section>
{{ end }} {{ end }}

View File

@ -1,24 +1,26 @@
{{ define "main" }} {{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }} <article class="flex-l flex-wrap justify-between mw8 center ph3">
<article class="flex-l flex-wrap justify-between mw8 center ph3"> <div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} w-two-thirds-l">
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} w-two-thirds-l">
<div id="content">{{- .Content -}}</div>
{{- partial "ac_choices.html" . -}} <div id="content">{{- .Content -}}</div>
{{- partial "tags.html" . -}} {{- partial "ac_choices.html" . -}}
</div>
<aside id="actions" class="w-30-l mt6-l"> {{- partial "tags.html" . -}}
{{- partial "menu-contextual.html" . -}} </div>
{{ $user := eq .Section "users" }} <aside class="w-third-l mt6-l tc" id="actions">
{{ if not $user }} {{- partial "menu-contextual.html" . -}}
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
<label for="cover">{{ T (print .Section ".cover") }}</label> {{ $section := .Site.GetPage "section" .Section }}
</button> {{ $user := eq .Section "users" }}
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/> {{ if not $user }}
{{ end }} <label class="dib mb2 br-pill f6 link dim white bg-dark-gray pointer db pa3"
</aside> for="cover">
</article> {{ T (print .Section ".cover") }}
</label>
<input class="dn" id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
{{ end }}
</aside>
</article>
{{ end }} {{ end }}

View File

@ -1,7 +1,6 @@
{{ $featured_image := partial "func/GetFeaturedImage.html" . }} {{ $featured_image := partial "func/GetFeaturedImage.html" . }}
<article class="bb b--black-10 w-100 mb4 bg-white pa3-ns flex flex-column flex-row-ns relative"> <article class="relative w-100 bb b--black-10 db pv4 ph3 ph0-l no-underline dark-gray flex flex-column flex-row-ns">
{{$.Site.Language.LanguageDirection}}
{{ if $featured_image }} {{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
<div class="mb4 mb0-ns w-100 w-40-ns {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }}"> <div class="mb4 mb0-ns w-100 w-40-ns {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }}">

View File

@ -1,6 +1,21 @@
{{ define "main" }} {{ define "main" }}
{{ with .Site.GetPage (path.Join "groups" .Params.groups) }}
<span class="group absolute top-1 right-1">
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
{{ if $featured_image }}
<a href="{{.RelPermalink}}">
<img src="{{ $featured_image }}" class="grow mw3 mw4-l" alt="{{ .Title }}">
</a>
{{ else }}
<a class="hero-pill bg-black" href="{{.RelPermalink}}">
{{- .Title -}}
</a>
{{ end }}
</span>
{{ end }}
<section class="pa3 pa4-ns nested-copy-line-height <section class="pa3 pa4-ns nested-copy-line-height
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}"> {{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
<aside id="actions" class="w-30-l mt4-l fr tc"> <aside id="actions" class="w-30-l mt4-l fr tc">
{{ if .Parent.IsHome }} {{ if .Parent.IsHome }}
<button id="create" <button id="create"
@ -12,18 +27,7 @@
<label class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" for="cover"> <label class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" for="cover">
{{ T (print .Section ".cover") }} {{ T (print .Section ".cover") }}
</label> </label>
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/> <input class="dn" id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
<label class="dn" for="groups">
{{ T (print .Section ".group") }}
</label>
<select id="groups" name="groups">
{{ range (.GetTerms "groups") }}
{{- $url := split .Permalink "/" -}}
{{- $urlPageSlug := index $url (sub (len $url) 2) -}}
<option value="{{ $urlPageSlug }}">{{ .Title }}</option>
{{ end }}
</select>
<button id="delete" <button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"