diff --git a/assets/css/custom-panel.css b/assets/css/custom-panel.css index 1517354..6ca7059 100644 --- a/assets/css/custom-panel.css +++ b/assets/css/custom-panel.css @@ -89,13 +89,53 @@ .k-header-title{ font-family: var(--font-title); } -.k-header-title-text{ +.k-panel[data-template="home"] .k-header-title-text, .k-panel[data-template="expertise"] .k-header-title-text, +.k-panel[data-template="portfolio"] .k-header-title-text, .k-panel[data-template="jouer"] .k-header-title-text, +.k-panel[data-template="about"] .k-header-title-text, .k-panel[data-template="blog"] .k-header-title-text{ text-transform: uppercase; } .k-header-title .k-icon{ --icon-size: 28px; } +.k-text a{ + color: var(--color-green-perso); +} + .k-block-container:not(:last-of-type) { border-bottom: 1px dashed var(--color-gray-600); +} + +/*modif card pour ressembler au site web*/ +.k-panel[data-template="blog"] .k-item.k-cards-item[data-template="article"]{ + display: grid; + grid-template-columns: 2fr auto 1fr; + grid-template-rows: auto; +} + +.k-panel[data-template="blog"] .k-item.k-cards-item[data-template="article"] .k-item-image{ + grid-column: 3/4; + grid-row: 1/3; +} +.k-panel[data-template="blog"] .k-item.k-cards-item[data-template="article"] .k-item-content{ + grid-column: 1/2; + grid-row: 1/2; +} +.k-panel[data-template="blog"] .k-item.k-cards-item[data-template="article"] .k-item-options{ + grid-column: 2/3; + grid-row: 1/2; + align-items: start; +} + +/* Logo sur la page de login */ +.k-login-view .k-login-form::before { + content: ''; + display: block; + width: 150px; + height: 150px; + margin: 0 auto 2rem auto; + background-image: url('logo-panel.png'); + background-size: contain; + background-repeat: no-repeat; + background-position: center; } \ No newline at end of file diff --git a/assets/css/logo-panel.png b/assets/css/logo-panel.png new file mode 100644 index 0000000..ac3e6fd Binary files /dev/null and b/assets/css/logo-panel.png differ diff --git a/site/blueprints/pages/about.yml b/site/blueprints/pages/about.yml index 61691eb..ec4aa35 100644 --- a/site/blueprints/pages/about.yml +++ b/site/blueprints/pages/about.yml @@ -1,6 +1,12 @@ title: À propos icon: users - +status: + draft: + label: Brouillon + text: La page est accessible uniquement pour les éditeurs connectés ou via un lien secret + listed: + label: Public + text: La page est accessible par tout le monde tabs: # Contenu content: @@ -30,7 +36,7 @@ tabs: buttons: false help: Section de texte centrée. body: - label: corps + label: Corps type: blocks fieldsets: heading: diff --git a/site/blueprints/pages/article.yml b/site/blueprints/pages/article.yml index ef55481..eaaf2e7 100644 --- a/site/blueprints/pages/article.yml +++ b/site/blueprints/pages/article.yml @@ -38,7 +38,7 @@ tabs: content: type: fields fields: - article_content: + body: label: Contenu de l'article type: blocks fieldsets: diff --git a/site/blueprints/pages/blog.yml b/site/blueprints/pages/blog.yml index 5d8ab39..d072031 100644 --- a/site/blueprints/pages/blog.yml +++ b/site/blueprints/pages/blog.yml @@ -1,6 +1,12 @@ title: Blog icon: text - +status: + draft: + label: Brouillon + text: La page est accessible uniquement pour les éditeurs connectés ou via un lien secret + listed: + label: Public + text: La page est accessible par tout le monde tabs: # Intro intro: @@ -33,6 +39,7 @@ tabs: max: 1 layout: cards image: + query: page.cover.toFile cover: true ratio: 16/9 info: "{{ page.date.toDate('d/m/Y') }}" @@ -40,8 +47,11 @@ tabs: label: Articles type: pages headline: Liste des articles - layout: cardlets + layout: cards + size: full image: + query: page.cover.toFile + ratio: 16/9 cover: true template: article info: "{{ page.date.toDate('d/m/Y') }}" diff --git a/site/blueprints/pages/expertise.yml b/site/blueprints/pages/expertise.yml index 0205c8f..1226e6a 100644 --- a/site/blueprints/pages/expertise.yml +++ b/site/blueprints/pages/expertise.yml @@ -1,6 +1,12 @@ title: Expertise icon: wand - +status: + draft: + label: Brouillon + text: La page est accessible uniquement pour les éditeurs connectés ou via un lien secret + listed: + label: Public + text: La page est accessible par tout le monde tabs: content: label: Contenu @@ -27,7 +33,7 @@ tabs: required: true help: "Ex: PLAY THE REAL." body: - label: corps + label: Corps type: blocks fieldsets: text: diff --git a/site/blueprints/pages/game.yml b/site/blueprints/pages/game.yml index 97dfea7..72c95ae 100644 --- a/site/blueprints/pages/game.yml +++ b/site/blueprints/pages/game.yml @@ -14,10 +14,11 @@ icon: play columns: # Colonne principale - - width: 2/3 + main: + width: 2/3 sections: # Informations principales - main: + content: type: fields fields: lettering: @@ -47,9 +48,10 @@ columns: - link # Sidebar - - width: 1/3 + sidebar: + width: 1/3 sections: - info: + meta: type: fields fields: thumbnail: @@ -83,12 +85,14 @@ columns: help: Sans lien renseigner, le jeu aura une étiquette "coming soon" et ne sera pas jouable. type: structure fields: - link_label: + label: label: Nom du bouton + required: true type: text width: 1/2 placeholder: "Ex: App Store, Site web..." - link_url: + url: label: URL + required: true type: url width: 1/2 diff --git a/site/blueprints/pages/home.yml b/site/blueprints/pages/home.yml index 2ea6155..2bb73e3 100644 --- a/site/blueprints/pages/home.yml +++ b/site/blueprints/pages/home.yml @@ -1,6 +1,12 @@ title: Accueil icon: home - +status: + draft: + label: Brouillon + text: La page est accessible uniquement pour les éditeurs connectés ou via un lien secret + listed: + label: Public + text: La page est accessible par tout le monde tabs: # Hero Section hero: diff --git a/site/blueprints/pages/jouer.yml b/site/blueprints/pages/jouer.yml index cd6e93e..ce81dbe 100644 --- a/site/blueprints/pages/jouer.yml +++ b/site/blueprints/pages/jouer.yml @@ -1,6 +1,12 @@ title: Jouer icon: play - +status: + draft: + label: Brouillon + text: La page est accessible uniquement pour les éditeurs connectés ou via un lien secret + listed: + label: Public + text: La page est accessible par tout le monde tabs: games: label: Jeux @@ -12,6 +18,7 @@ tabs: layout: cards size: medium image: + query: page.thumbnail.toFile cover: true template: game info: "{{ page.status_label }}" diff --git a/site/blueprints/pages/portfolio.yml b/site/blueprints/pages/portfolio.yml index 0748cef..74bf948 100644 --- a/site/blueprints/pages/portfolio.yml +++ b/site/blueprints/pages/portfolio.yml @@ -1,6 +1,12 @@ title: Portfolio icon: images - +status: + draft: + label: Brouillon + text: La page est accessible uniquement pour les éditeurs connectés ou via un lien secret + listed: + label: Public + text: La page est accessible par tout le monde tabs: content: label: Contenu @@ -13,6 +19,7 @@ tabs: layout: cards size: medium image: + query: page.thumbnail.toFile cover: true template: project info: "{{ page.catchphrase }}" diff --git a/site/blueprints/pages/project.yml b/site/blueprints/pages/project.yml index fcfbca6..3802c5c 100644 --- a/site/blueprints/pages/project.yml +++ b/site/blueprints/pages/project.yml @@ -52,21 +52,18 @@ columns: images: type: fields fields: - images_gallery_video: + images_gallery: width: 2/3 - label: Galerie vidéo d'images + label: Galerie d'image type: files layout: cards - size: medium - max: 1 - accept: video/* + size: small + min: 6 + accept: image/* translate: false - image: - ratio: 2/3 - cover: true uploads: - template: video - help: Vidéo qui fait défiler une galerie d'images liée au jeu + template: image + help: "Une animation sera générée à partir des images de ce champ. Minimum optimal d'images : 9" mockup: width: 1/3 label: Image de mise en situation @@ -106,13 +103,15 @@ columns: label: Mots clés type: structure fields: - keywords_label: - label: label + label: + label: Label + required: true type: text width: 1/2 - placeholder: "Ex: App Store, Site web..." - keywords_text: - label: text + placeholder: "Ex: Impact, Catégorie..." + text: + label: Texte + required: true type: text width: 1/2 @@ -124,12 +123,14 @@ columns: label: Liens externes type: structure fields: - link_label: + label: label: Nom du bouton + required: true type: text width: 1/2 placeholder: "Ex: App Store, Site web..." - link_url: + url: label: URL + required: true type: url width: 1/2 diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index 7d5a376..867c9b2 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -12,25 +12,19 @@ columns: sortable: true create: false status: listed - - width: 1/2 fields: contact_email: label: Email type: email - width: 1/3 - translate: false - contact_phone: - label: Téléphone - type: tel - width: 1/3 + width: 1/2 translate: false contact_address: label: Adresse type: writer buttons: false nodes: false - width: 1/3 + width: 1/2 placeholder: 33 rue Jean Dupont social_links: label: Liens réseaux sociaux @@ -39,11 +33,13 @@ columns: fields: label: label: Nom + required: true type: text width: 1/3 placeholder: "Ex: LinkedIn, Instagram..." url: label: URL + required: true type: url width: 1/3 picto: