From 03a44a5ec5c1295b056763fa6bc9c4ae94100d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Nicou=C3=A9?= Date: Thu, 8 May 2025 18:55:50 +0200 Subject: [PATCH] Set up CV writer field --- assets/css/panel.scss | 11 +++++- site/blueprints/sections/site_contact.yml | 19 ----------- site/blueprints/sections/site_gallery.yml | 3 -- site/blueprints/sections/site_info.yml | 41 +++++++++++++++++++++++ site/blueprints/sections/site_seo.yml | 1 - site/blueprints/site.yml | 2 +- 6 files changed, 52 insertions(+), 25 deletions(-) delete mode 100644 site/blueprints/sections/site_contact.yml create mode 100644 site/blueprints/sections/site_info.yml diff --git a/assets/css/panel.scss b/assets/css/panel.scss index fd9912d..b22746a 100644 --- a/assets/css/panel.scss +++ b/assets/css/panel.scss @@ -2,7 +2,7 @@ // KIRBY PANEL CUSTOMIZATION // ---------------------------------------------------------------------------- -// Structure field gallery +// Image gallery structure field gallery .k-field-name-image_gallery { @@ -14,3 +14,12 @@ } } } + +// CV writer field + +.k-field-name-cv { + + .k-text { + min-height: 7.5rem; + } +} diff --git a/site/blueprints/sections/site_contact.yml b/site/blueprints/sections/site_contact.yml deleted file mode 100644 index 5c90794..0000000 --- a/site/blueprints/sections/site_contact.yml +++ /dev/null @@ -1,19 +0,0 @@ -type: fields -fields: - contact_line: - type: line - instagram: - type: url - label: - en: Instagram account - fr: Compte Instagram - icon: instagram - required: true - width: 1/2 - email: - label: - en: Email - fr: Adresse e-mail - type: email - required: true - width: 1/2 diff --git a/site/blueprints/sections/site_gallery.yml b/site/blueprints/sections/site_gallery.yml index ac7408d..7861cd3 100644 --- a/site/blueprints/sections/site_gallery.yml +++ b/site/blueprints/sections/site_gallery.yml @@ -57,6 +57,3 @@ fields: - email - '|' - clear - # help: - # en: "Informative text displayed below the image." - # fr: "Texte informatif affiché sous l'image." diff --git a/site/blueprints/sections/site_info.yml b/site/blueprints/sections/site_info.yml new file mode 100644 index 0000000..187f935 --- /dev/null +++ b/site/blueprints/sections/site_info.yml @@ -0,0 +1,41 @@ +type: fields +fields: + contact_line: + type: line + cv: + label: CV + type: writer + toolbar: + inline: false + nodes: + - paragraph + - heading + - bulletList + headings: + - 2 + - 3 + marks: + - bold + - italic + - underline + - '|' + - link + - email + - '|' + - clear + required: true + instagram: + label: + en: Instagram account + fr: Compte Instagram + type: url + icon: instagram + required: true + width: 1/2 + email: + label: + en: Email + fr: Adresse e-mail + type: email + required: true + width: 1/2 diff --git a/site/blueprints/sections/site_seo.yml b/site/blueprints/sections/site_seo.yml index a288291..883a777 100644 --- a/site/blueprints/sections/site_seo.yml +++ b/site/blueprints/sections/site_seo.yml @@ -26,7 +26,6 @@ fields: en: Meta description fr: Méta description type: textarea - size: small buttons: false required: true help: diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index b747ce9..998e2df 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -3,5 +3,5 @@ title: fr: Site web sections: gallery: sections/site_gallery - contact: sections/site_contact + contact: sections/site_info seo_basic_meta: sections/site_seo