From a8e237345b530e6f2533f084036c5e6a88fe9824 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Fri, 27 Oct 2023 14:20:33 +0200 Subject: [PATCH] updating documentation --- demo-components.php | 130 +++++++++++++++++------- footer-demo-components.php | 18 ++++ header-demo-components.php | 52 ++++++++++ resources/css/pages/demo-components.css | 87 +++++++++++++++- 4 files changed, 249 insertions(+), 38 deletions(-) create mode 100644 footer-demo-components.php create mode 100644 header-demo-components.php diff --git a/demo-components.php b/demo-components.php index dbfec3c..47dbe7b 100644 --- a/demo-components.php +++ b/demo-components.php @@ -1,8 +1,70 @@ - + -
+
+

Content system & Design system | Documentation

+

Bienvenue dans la documentation Homegrade

-
+

Vous trouverez ici une Liste de composants du design system Homegrade

+ + +
+ + +
+
+

Block components

+

Blocks de contenu

+

Ces blocs sont accessibles depuis l'éditeur et peuvent être insérés de manières flexibles dans les pages de contenu

+
+
+ +
+

Content page header

+

Un header qui s'insère en haut de page

+
+

Options & Variantes

+
    +
  • +

    Call to action

    +

    + Ajout d'un lien juste après le contenu. Dans cet exemple "Voir l’équipe de direction de Homegrade"

    + +
  • +
+
+
+
+
+

Qui sommes-nous ?

+

Plus de 40 conseillers en rénovation

+

Homegrade, ce sont plus de 40 conseillers en rénovation en majorité architectes, mais également ingénieurs, historiens de l’art… en formation continue ! Ces experts de terrain vous fournissent des conseils avisés et professionnels.

Découvrez notre équipe de direction, composée de professionnels chevronnés qui guident notre asbl vers l’excellence.

+ Voir l’équipe de direction de Homegrade +
+ + + +
+ +
+ + +
+ + + +
+
+

CSS components

+

Composants CSS

+

Ces blocs existent dans le design système, mais sont utilisés de manière automatique dans les pages

+ +
+ + +
+ -
+ +
+
+

Heading Box

+

Pour le titrage de pages. L'icone et le titre sont intégrées automatiquement depuis les informations de page

+
"Heading Box", @@ -27,44 +94,39 @@ ) )); ?> + +
+ + +
-

Heading Box

+

News Heading Box

Pour le titrage de pages. L'icone et le titre sont intégrées automatiquement depuis les informations de page

-
+ array(get_term(88, "news-type")), + "title" => "Boite de titrage News", + "thumbnail" => get_the_post_thumbnail(2271, "full", array('class' => 'news-heading-box__thumbnail')), + "published" => get_the_date() + )); + ?> - - - ?> - -
+
+
+

Chapter Header

+

Pour le heading des chapitres conseils

+
+ +
+ - -
- -
- -
Slide 1
-
Slide 2
-
Slide 3
- ... -
- -
- - -
- - - -
-
+ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/header-demo-components.php b/header-demo-components.php new file mode 100644 index 0000000..7766be8 --- /dev/null +++ b/header-demo-components.php @@ -0,0 +1,52 @@ + +> + + + + + + + + + + +> + + +
+ + + + + + +
+ + + + +
+ + + + + + + + + + slug); + ?> + +
\ No newline at end of file diff --git a/resources/css/pages/demo-components.css b/resources/css/pages/demo-components.css index 1f87450..d28f0a2 100644 --- a/resources/css/pages/demo-components.css +++ b/resources/css/pages/demo-components.css @@ -1,14 +1,81 @@ +.demo-components-home { + @apply bg-secondary container px-8 mx-auto py-12 my-12 rounded-3xl; + @apply text-white text-center; + h1 { + @apply text-base font-bold tracking-wider uppercase; + letter-spacing: 0.15em; + } + h2 { + @apply text-5xl font-bold tracking-wide max-w-3xl mx-auto py-8; + } + p { + @apply text-lg font-medium tracking-wider; + } + .cta--white:hover { + @apply bg-primary; + } + .buttons { + @apply flex justify-center mx-auto mt-8 gap-4; + } +} + .demo-components { + @apply homegrade-page-container; + + &__section-title { + @apply text-white + text-6xl + text-center + bg-secondary + flex + flex-col + justify-center + items-center py-8; + height: 100vh; + max-width: 100vw; + margin: 2rem calc(50% - 50vw); + + h2 { + @apply text-lg uppercase font-bold tracking-wide my-0; + } + h3 { + @apply text-6xl font-bold tracking-wide my-0 mt-4; + } + p { + @apply text-xl max-w-2xl mt-6 tracking-wide font-medium; + line-height: 1.4; + } + } .component { - @apply border-b border-neutral-400 py-32; + @apply border-b border-neutral-300 py-16; + > * { + @apply !max-w-full w-full mx-auto; + } } .component-explanation { - @apply max-w-screen-lg mx-auto px-8 text-center py-6; + @apply py-6 text-center pb-16; &__title { - @apply text-3xl font-bold text-center pb-2; + @apply text-3xl font-bold pb-2 text-secondary; } &__description { - @apply text-neutral-500 text-lg font-medium mx-auto pt-0 max-w-lg mx-auto; + @apply text-neutral-500 text-base font-medium pt-0 max-w-lg mx-auto; + } + &__options { + @apply mt-4 font-bold; + h3 { + @apply m-0 uppercase text-sm pt-4 text-secondary tracking-wide; + } + } + &__option { + @apply py-4; + } + + &__option-title { + @apply text-neutral-900 text-base !font-bold; + } + + &__option-description { + @apply text-neutral-500 text-base font-medium pt-0 max-w-sm mx-auto; } } .buttons { @@ -17,4 +84,16 @@ @apply flex justify-center gap-8; } } + + #chapter-header .post-conseils-chapter-header { + @apply bg-energies-urbanisme-light; + } +} + +#blocks-components { + @apply pb-64; + .block-content-page-header { + @apply px-16 rounded-3xl; + @apply shadowed bg-white; + } }