Initial groups created
This commit is contained in:
parent
8db79565f6
commit
4d36b25402
BIN
content/assets/120px-Blason_Gryffondor.svg.png
Normal file
BIN
content/assets/120px-Blason_Gryffondor.svg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
content/assets/120px-Blason_Serpentard.svg.png
Normal file
BIN
content/assets/120px-Blason_Serpentard.svg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
content/assets/120px-Coat_of_arms_Hufflepuff.svg.png
Normal file
BIN
content/assets/120px-Coat_of_arms_Hufflepuff.svg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
content/assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png
Normal file
BIN
content/assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
BIN
content/assets/Blason_Serdaigle.svg.png
Normal file
BIN
content/assets/Blason_Serdaigle.svg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@ -0,0 +1,4 @@
|
||||
---
|
||||
title: Gryffondor
|
||||
featured_image: ../../../assets/120px-Blason_Gryffondor.svg.png
|
||||
---
|
@ -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
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
title: Serdaigle
|
||||
featured_image: ../../../assets/Blason_Serdaigle.svg.png
|
||||
---
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
title: Poufsouffle
|
||||
featured_image: ../../../assets/120px-Coat_of_arms_Hufflepuff.svg.png
|
||||
---
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
title: Serpentard
|
||||
featured_image: ../../../assets/120px-Blason_Serpentard.svg.png
|
||||
---
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Groupe de test
|
||||
groups:
|
||||
- test
|
||||
---
|
||||
|
||||
Hello world
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 1er quiz
|
||||
ac_create:
|
||||
- /pages/1er-quiz/start
|
||||
---
|
||||
|
||||
Bienvenue sur votre premier quiz!
|
@ -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?
|
15
content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/_index.md
Normal file
15
content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/_index.md
Normal 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.
|
@ -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
|
6
themes/acoeur/archetypes/groups/_index.md
Normal file
6
themes/acoeur/archetypes/groups/_index.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Nouveau groupe
|
||||
description: Sous-titre
|
||||
---
|
||||
|
||||
Texte
|
@ -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;
|
||||
}
|
||||
|
@ -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 }}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<section class="pa3 pa4-ns nested-copy-line-height">
|
||||
<aside id="actions" class="w-30-l mt4-l fr tc">
|
||||
<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">
|
||||
@ -27,5 +27,5 @@
|
||||
{{ .Render "summary-with-image" }}
|
||||
{{ end }}
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{ 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 id="content">{{- .Content -}}</div>
|
||||
|
||||
{{- partial "ac_choices.html" . -}}
|
||||
@ -9,16 +9,18 @@
|
||||
{{- partial "tags.html" . -}}
|
||||
</div>
|
||||
|
||||
<aside id="actions" class="w-30-l mt6-l">
|
||||
<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 }}
|
||||
<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 }}"/>
|
||||
<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>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -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" }}">
|
||||
|
@ -1,4 +1,19 @@
|
||||
{{ 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 }}">
|
||||
<aside id="actions" class="w-30-l mt4-l fr tc">
|
||||
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user