-
 ?>/resources/svg/logos/logo-renolution-monochrome.svg)
+
diff --git a/template-blocks/home/aides-financieres/block.json b/template-blocks/home/aides-financieres/block.json
index e732dcd..a5f1ba7 100644
--- a/template-blocks/home/aides-financieres/block.json
+++ b/template-blocks/home/aides-financieres/block.json
@@ -1,6 +1,6 @@
{
"name": "acf/aides-financieres",
- "title": "Home | Aides Financières",
+ "title": "Aides Financières",
"category": "homegrade-page-home",
"multiple": false,
"icon": {
diff --git a/template-blocks/home/aides-financieres/coins.svg b/template-blocks/home/aides-financieres/coins.svg
deleted file mode 100755
index c6bac11..0000000
--- a/template-blocks/home/aides-financieres/coins.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/template-blocks/home/aides-financieres/coins2.svg b/template-blocks/home/aides-financieres/coins2.svg
deleted file mode 100644
index 8359cae..0000000
--- a/template-blocks/home/aides-financieres/coins2.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/template-blocks/home/demarches-administratives/block.json b/template-blocks/home/demarches-administratives/block.json
new file mode 100644
index 0000000..e00dab3
--- /dev/null
+++ b/template-blocks/home/demarches-administratives/block.json
@@ -0,0 +1,27 @@
+{
+ "name": "acf/demarches-administratives",
+ "title": "Démarches Administratives",
+ "category": "homegrade-page-home",
+ "multiple": false,
+ "icon": {
+ "foreground": "#DF1E1E",
+ "src": "schedule"
+ },
+ "keywords": [
+ "Couverture",
+ "home",
+ "Accueil",
+ "Section d'accueil",
+ "Header"
+ ],
+ "supports": {
+ "align": [
+ "full"
+ ]
+ },
+ "acf": {
+ "mode": "auto",
+ "renderTemplate": "demarches-administratives.php"
+ },
+ "align": "full"
+}
\ No newline at end of file
diff --git a/template-blocks/home/demarches-administratives/demarches-administratives.css b/template-blocks/home/demarches-administratives/demarches-administratives.css
new file mode 100755
index 0000000..2a30bd7
--- /dev/null
+++ b/template-blocks/home/demarches-administratives/demarches-administratives.css
@@ -0,0 +1,15 @@
+#block-demarches-administratives {
+ &.card-large-content-container--has-illustration {
+ @apply pt-64;
+ }
+
+ .card-large-content--has-illustration {
+ @apply pt-28;
+ }
+ .card-large-content__top-illustration {
+ transform: translate(-50%, -70%);
+ }
+ .card-large-content__links-container {
+ @apply grid-cols-4;
+ }
+}
diff --git a/template-blocks/home/demarches-administratives/demarches-administratives.php b/template-blocks/home/demarches-administratives/demarches-administratives.php
new file mode 100755
index 0000000..3e0b2ce
--- /dev/null
+++ b/template-blocks/home/demarches-administratives/demarches-administratives.php
@@ -0,0 +1,48 @@
+';
+// print_r($demarches_administratives_links);
+echo '';
+
+?>
+
+
+
+
+
+
 ?>/resources/img/illustrations/illustration-que-fait-homegrade-pour-vous.svg)
+
+
+
+
+ ID);
+ ?>
+
+ ';
+ // print_r($link);
+ // print_r($linked_page);
+ // print_r($page_icon);
+ // echo '';
+ ?>
+

+
post_title ?>
+
post_excerpt ?>
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/template-blocks/home/home-header/block.json b/template-blocks/home/home-header/block.json
index f2abe07..f773d83 100644
--- a/template-blocks/home/home-header/block.json
+++ b/template-blocks/home/home-header/block.json
@@ -1,6 +1,6 @@
{
"name": "acf/home-header",
- "title": "Home | Section d'accueil",
+ "title": "Section d'accueil",
"category": "homegrade-page-home",
"multiple": false,
"icon": {
@@ -14,8 +14,14 @@
"Section d'accueil",
"Header"
],
+ "supports": {
+ "align": [
+ "full"
+ ]
+ },
"acf": {
"mode": "auto",
"renderTemplate": "home-header.php"
- }
+ },
+ "align": "full"
}
\ No newline at end of file
diff --git a/template-blocks/home/latest-news/block.json b/template-blocks/home/latest-news/block.json
index 43e60b3..74c91c8 100644
--- a/template-blocks/home/latest-news/block.json
+++ b/template-blocks/home/latest-news/block.json
@@ -1,6 +1,6 @@
{
"name": "acf/latest-news",
- "title": "Home | Dernières News",
+ "title": "Dernières News",
"category": "homegrade-page-home",
"multiple": false,
"icon": {
diff --git a/template-blocks/home/questions-frequentes/block.json b/template-blocks/home/questions-frequentes/block.json
new file mode 100644
index 0000000..9af4ef7
--- /dev/null
+++ b/template-blocks/home/questions-frequentes/block.json
@@ -0,0 +1,17 @@
+{
+ "name": "acf/questions-frequentes",
+ "title": "Questions Fréquentes",
+ "category": "homegrade-page-home",
+ "multiple": false,
+ "icon": {
+ "foreground": "#DF1E1E",
+ "src": "schedule"
+ },
+ "keywords": [
+ "Questions Fréquentes"
+ ],
+ "acf": {
+ "mode": "auto",
+ "renderTemplate": "questions-frequentes.php"
+ }
+}
\ No newline at end of file
diff --git a/template-blocks/home/questions-frequentes/questions-frequentes.css b/template-blocks/home/questions-frequentes/questions-frequentes.css
new file mode 100644
index 0000000..d6c9cc3
--- /dev/null
+++ b/template-blocks/home/questions-frequentes/questions-frequentes.css
@@ -0,0 +1,7 @@
+#block-questions-frequentes {
+ @apply py-28;
+}
+
+.questions-frequentes-grid {
+ @apply grid grid-cols-3 gap-8 gap-x-8 max-w-screen-xl mx-auto;
+}
diff --git a/template-blocks/home/questions-frequentes/questions-frequentes.php b/template-blocks/home/questions-frequentes/questions-frequentes.php
new file mode 100644
index 0000000..4bdf6b2
--- /dev/null
+++ b/template-blocks/home/questions-frequentes/questions-frequentes.php
@@ -0,0 +1,45 @@
+
+
+
+
+
Les questions les plus fréquentes
+ Simplifions votre recherche !
+
+
+ 'thematiques',
+ 'hide_empty' => false,
+ 'parent' => 0
+
+ ));
+ // echo '
';
+ // print_r($thematique_terms);
+ // echo '
';
+ // $thematiques = ['location', 'acoustique'];
+ foreach ($thematique_terms as $key => $thematique) {
+ $thematique_datas = get_term_by('slug', $thematique->slug, 'thematiques');
+
+ $manual_data = get_field($thematique->slug . '_manual_data');
+ $post_datas = $manual_data ? $manual_data : get_automatic_post($thematique->slug);
+
+ get_template_part(
+ 'template-components/card-frequent-question',
+ null,
+ array(
+ 'thematique' => $thematique_datas,
+ 'post_ID' => $post_datas->ID,
+ 'post_title' => $post_datas->post_title,
+ 'post_excerpt' => $post_datas->post_excerpt,
+ )
+ );
+ }
+ ?>
+
+
+
\ No newline at end of file
diff --git a/template-blocks/home/show-thematiques/block.json b/template-blocks/home/show-thematiques/block.json
index d4f8234..08f9ef2 100644
--- a/template-blocks/home/show-thematiques/block.json
+++ b/template-blocks/home/show-thematiques/block.json
@@ -1,6 +1,6 @@
{
"name": "acf/show-thematiques",
- "title": "Home | Thématiques",
+ "title": "Thématiques",
"category": "homegrade-page-home",
"multiple": false,
"icon": {
diff --git a/template-components/card-frequent-question.php b/template-components/card-frequent-question.php
new file mode 100644
index 0000000..bb74082
--- /dev/null
+++ b/template-components/card-frequent-question.php
@@ -0,0 +1,22 @@
+';
+// print_r($thematique_icon);
+// // print_r($args);
+// echo '';
+
+?>
+
+
+

+
name ?>
+
+
+
+
+
\ No newline at end of file
diff --git a/template-components/card-frequent_question.css b/template-components/card-frequent_question.css
new file mode 100644
index 0000000..2f2cc10
--- /dev/null
+++ b/template-components/card-frequent_question.css
@@ -0,0 +1,19 @@
+.card-frequent-question {
+ @apply shadowed p-8 rounded-3xl;
+
+ &__icon {
+ max-width: 80px;
+ }
+ &__title {
+ @apply mt-4;
+ @apply text-xl pb-4 font-bold;
+ }
+
+ &__tags_container {
+ @apply flex flex-wrap gap-x-3;
+
+ .tag {
+ @apply py-1 px-4 rounded-lg;
+ }
+ }
+}