From 57e9ca74dac6ae19ff708ff3dec7a1c00eff13a0 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Mon, 15 Apr 2024 09:35:39 +0200 Subject: [PATCH] =?UTF-8?q?add=20info=20template=20(for=20=C3=A0=20propos?= =?UTF-8?q?=20page)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/src/header.css | 3 +++ assets/css/src/html.css | 3 +++ site/blueprints/pages/info.yml | 20 ++++++++++++++++++++ site/snippets/footer.php | 2 +- site/snippets/header.php | 5 ----- site/templates/info.php | 20 ++++++++++++++++++++ site/templates/linear.php | 4 +--- 7 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 site/blueprints/pages/info.yml create mode 100644 site/templates/info.php diff --git a/assets/css/src/header.css b/assets/css/src/header.css index 71b2898..11cf244 100644 --- a/assets/css/src/header.css +++ b/assets/css/src/header.css @@ -68,6 +68,9 @@ body[data-template="home"] { display: flex; justify-content: space-between; } +[data-template="info"] #entry-btns { + top: calc(var(--unit--vertical) * 4); +} .entry-btn { transition: all 0.5s var(--curve-sine); diff --git a/assets/css/src/html.css b/assets/css/src/html.css index 02b359a..6ff64e0 100644 --- a/assets/css/src/html.css +++ b/assets/css/src/html.css @@ -9,6 +9,9 @@ body { main { padding: 0 var(--unit--horizontal); } +[data-template="info"] main { + margin-top: calc(var(--unit--vertical) * 2); +} hr { height: calc(var(--unit--vertical) / 2); diff --git a/site/blueprints/pages/info.yml b/site/blueprints/pages/info.yml new file mode 100644 index 0000000..4b34ad9 --- /dev/null +++ b/site/blueprints/pages/info.yml @@ -0,0 +1,20 @@ +title: Linéaire +image: + back: black + color: white +icon: bars +create: + fields: + - category + +tabs: + contentTab: + label: Contenu + sections: + bodySection: + label: Corps + type: fields + fields: + body: + label: Corps + type: writer diff --git a/site/snippets/footer.php b/site/snippets/footer.php index 8083430..17a9f9f 100644 --- a/site/snippets/footer.php +++ b/site/snippets/footer.php @@ -1,7 +1,7 @@