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
ac_create:
- /pages/1er-quiz/_index
groups: test
groups: fb3733e9-0dca-4ff8-ab7d-bced62a294a9
---
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,
body.pages header time,
.author-only { display: none; }
body.author .author-only { display: initial; }
body.author .ac_choices .destination {
display: none;
@ -129,7 +128,6 @@ body.users .ac_choice input[type="radio"]:checked + label.text {
border-radius: 0.2em;
}
aside#actions input#cover,
aside#actions input#file {
display: none;
}

View File

@ -2,7 +2,7 @@
<section class="pa3 pa4-ns nested-copy-line-height">
<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>
<input id="file" multiple name="file" type="file"/>
<input class="dn" id="file" multiple name="file" type="file"/>
</aside>
{{ with .Content }}

View File

@ -1,31 +1,31 @@
{{ define "main" }}
<section class="pa3 pa4-ns nested-copy-line-height">
<aside id="actions" class="w-30-l mt4-l fr tc">
{{ if .Parent.IsHome }}
<button id="create"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
{{ T (print .Section ".create") }}
</button>
{{ else if .Parent.Parent.IsHome }}
<button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".delete") }}
</button>
{{ end }}
</aside>
<section class="pa3 pa4-ns nested-copy-line-height">
<aside id="actions" class="w-third-l mt4-l fr tc">
{{ if .Parent.IsHome }}
<button id="create"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
{{ T (print .Section ".create") }}
</button>
{{ else if .Parent.Parent.IsHome }}
<button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".delete") }}
</button>
{{ end }}
</aside>
{{ with .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" }}">
{{- . -}}
</section>
{{ end }}
<section class="flex-ns flex-wrap justify-around">
{{ range .Pages.ByTitle }}
{{ .Render "summary-with-image" }}
{{ with .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" }}">
{{- . -}}
</section>
{{ end }}
<section class="flex-ns flex-wrap justify-around">
{{ range .Pages.ByTitle }}
{{ .Render "summary-with-image" }}
{{ end }}
</section>
</section>
</section>
{{ end }}

View File

@ -1,24 +1,26 @@
{{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }}
<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 id="content">{{- .Content -}}</div>
<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">
{{- partial "ac_choices.html" . -}}
<div id="content">{{- .Content -}}</div>
{{- partial "tags.html" . -}}
</div>
{{- partial "ac_choices.html" . -}}
<aside id="actions" class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}}
{{- partial "tags.html" . -}}
</div>
{{ $user := eq .Section "users" }}
{{ if not $user }}
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
<label for="cover">{{ T (print .Section ".cover") }}</label>
</button>
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
{{ end }}
</aside>
</article>
<aside class="w-third-l mt6-l tc" id="actions">
{{- partial "menu-contextual.html" . -}}
{{ $section := .Site.GetPage "section" .Section }}
{{ $user := eq .Section "users" }}
{{ if not $user }}
<label class="dib mb2 br-pill f6 link dim white bg-dark-gray pointer db pa3"
for="cover">
{{ T (print .Section ".cover") }}
</label>
<input class="dn" id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
{{ end }}
</aside>
</article>
{{ end }}

View File

@ -1,7 +1,6 @@
{{ $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">
{{$.Site.Language.LanguageDirection}}
<article class="relative w-100 bb b--black-10 db pv4 ph3 ph0-l no-underline dark-gray flex flex-column flex-row-ns">
{{ if $featured_image }}
{{/* 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" }}">

View File

@ -1,6 +1,21 @@
{{ 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
{{ 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">
{{ if .Parent.IsHome }}
<button id="create"
@ -12,18 +27,7 @@
<label class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" for="cover">
{{ T (print .Section ".cover") }}
</label>
<input 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>
<input class="dn" id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
<button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"