From 1dd4060314a0dede368741512ff87dec34910cce Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 15 Apr 2026 20:17:12 +0200 Subject: [PATCH] clean --- assets/css/style.css | 62 ++++++++++++++--------------- site/blueprints/fields/projects.yml | 9 +++++ site/blueprints/pages/projects.yml | 42 +++++++++---------- site/blueprints/site.yml | 18 +++++++-- site/blueprints/tabs/files.yml | 16 ++++++++ site/config/config.php | 1 + site/snippets/footer.php | 4 ++ site/snippets/header.php | 14 ++++++- site/snippets/menu.php | 17 -------- site/snippets/nav.php | 21 ++++++++++ site/templates/about.php | 21 +--------- site/templates/home.php | 25 +++--------- site/templates/project.php | 11 +---- site/templates/projects.php | 38 ++++++++---------- 14 files changed, 151 insertions(+), 148 deletions(-) create mode 100644 site/blueprints/fields/projects.yml create mode 100644 site/blueprints/tabs/files.yml create mode 100644 site/snippets/footer.php delete mode 100644 site/snippets/menu.php create mode 100644 site/snippets/nav.php diff --git a/assets/css/style.css b/assets/css/style.css index fecf415..3f9d2b3 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,60 +1,56 @@ -*{ - --main-font: sans-serif; - --font-size-L: 11vw; - --text-color: black; +* { + --main-font: sans-serif; + --font-size-L: 11vw; + --text-color: black; } -body{ - font-family: var(--main-font); +body { + font-family: var(--main-font); } -h1{ - font-weight: normal; - line-height: inherit; - margin: 0; +h1 { + font-weight: normal; + line-height: inherit; + margin: 0; } -a{ - color: var(--text-color); +a { + color: var(--text-color); } /* menu */ -menu{ - margin: 0; - padding: 0; - list-style: none; +menu { + margin: 0; + padding: 0; + list-style: none; } -menu li a{ - font-size: var(--font-size-L); - list-style: none; - text-decoration: none; - text-transform: initial; +menu li a { + font-size: var(--font-size-L); + list-style: none; + text-decoration: none; + text-transform: initial; } -.home menu li .menu-item-home{ - text-decoration: underline; +[data-template="home"] menu li .menu-item-home { + text-decoration: underline; } -.projects menu li .menu-item-projects{ - text-decoration: underline; +.projects menu li .menu-item-projects { + text-decoration: underline; } -.about menu li .menu-item-about{ - text-decoration: underline; +.about menu li .menu-item-about { + text-decoration: underline; } - /* HOME */ -.home h1{ - font-size: var(--font-size-L); +[data-template="home"] h1 { + font-size: var(--font-size-L); } /* PROJECTS */ - /* ABOUT */ - - diff --git a/site/blueprints/fields/projects.yml b/site/blueprints/fields/projects.yml new file mode 100644 index 0000000..269267f --- /dev/null +++ b/site/blueprints/fields/projects.yml @@ -0,0 +1,9 @@ +label: Projets +type: pages +layout: cards +template: project +search: true +info: "tags: {{ page.tags }} --------- {{ page.date.toDate('d/m/Y') }}" +sortBy: date desc +image: + ratio: 12/9 diff --git a/site/blueprints/pages/projects.yml b/site/blueprints/pages/projects.yml index c319f75..a10123a 100644 --- a/site/blueprints/pages/projects.yml +++ b/site/blueprints/pages/projects.yml @@ -1,24 +1,20 @@ +title: Projets +status: + unlisted: + label: Non listé + text: La page est accessible uniquement par son URL +options: + move: false + duplicate: false + delete: false + changeStatus: false - -sections: - - Drafts: - label: Drafts - type: pages - layout: list - template: project - status: drafts - search: true - info: "tags: {{ page.tags }} --------- {{ page.date.toDate('d/m/Y') }}" - sortBy: date desc - - publishedProjects: - label: Published projects - type: pages - layout: list - template: project - status: published - search: true - info: "tags: {{ page.tags }} --------- {{ page.date.toDate('d/m/Y') }}" - sortBy: date desc - +tabs: + content: + label: Contenu + icon: bars + sections: + projects: fields/projects + files: tabs/files + seo: + icon: search diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index b7da661..9b8ce14 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -1,5 +1,17 @@ title: Site -sections: - pages: - type: pages +tabs: + dashboard: + label: Tableau de bord + icon: star + sections: + slideshowSection: + type: fields + fields: + slideshow: + label: Carrousel + type: files + projects: + extends: fields/projects + parent: page('projets') + files: tabs/files diff --git a/site/blueprints/tabs/files.yml b/site/blueprints/tabs/files.yml new file mode 100644 index 0000000..1a6a129 --- /dev/null +++ b/site/blueprints/tabs/files.yml @@ -0,0 +1,16 @@ +label: Fichiers +icon: attachment +columns: + - width: 1/4 + fields: + manageFilesInfo: + label: false + type: info + text: À droite, tous les fichiers que stocke la page. Supprimez les fichiers inutilisés pour éviter de surcharger inutilement le serveur. + + - width: 3/4 + sections: + filesSection: + label: Fichiers + type: files + batch: true diff --git a/site/config/config.php b/site/config/config.php index 6856ff1..1d4280c 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -2,4 +2,5 @@ return [ 'debug'=> true, + 'home' => 'projets' ]; \ No newline at end of file diff --git a/site/snippets/footer.php b/site/snippets/footer.php new file mode 100644 index 0000000..61978f8 --- /dev/null +++ b/site/snippets/footer.php @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/site/snippets/header.php b/site/snippets/header.php index 3b16900..9db610d 100644 --- a/site/snippets/header.php +++ b/site/snippets/header.php @@ -1,3 +1,13 @@ -
+ + + + + + Document -
+ + + + +
+ \ No newline at end of file diff --git a/site/snippets/menu.php b/site/snippets/menu.php deleted file mode 100644 index 5a69677..0000000 --- a/site/snippets/menu.php +++ /dev/null @@ -1,17 +0,0 @@ - -
  • - - title() ?> - -
  • -
  • - - title() ?> - -
  • -
  • - - title() ?> - -
  • -
    \ No newline at end of file diff --git a/site/snippets/nav.php b/site/snippets/nav.php new file mode 100644 index 0000000..fe48b50 --- /dev/null +++ b/site/snippets/nav.php @@ -0,0 +1,21 @@ +
    + +
    \ No newline at end of file diff --git a/site/templates/about.php b/site/templates/about.php index 493ee65..d2d60b1 100644 --- a/site/templates/about.php +++ b/site/templates/about.php @@ -1,22 +1,5 @@ - +

    title() ?>

    -

    title() ?>

    - - - - -

    - presentation() ?> -

    - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/templates/home.php b/site/templates/home.php index abf33ec..1da8e43 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -1,23 +1,8 @@ - +

    title() ?>

    - +slideshow()->toFiles() as $image): ?> + + -

    title() ?>

    - - - - - - images() as $image): ?> - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/templates/project.php b/site/templates/project.php index ce38ee1..8a8d2d3 100644 --- a/site/templates/project.php +++ b/site/templates/project.php @@ -1,12 +1,5 @@ - +

    title() ?>

    -

    title() ?>

    - - - - - - - \ No newline at end of file + diff --git a/site/templates/projects.php b/site/templates/projects.php index 2213a2e..a991196 100644 --- a/site/templates/projects.php +++ b/site/templates/projects.php @@ -1,28 +1,22 @@ - + - - - - - +