introducing photo archives component

This commit is contained in:
Antoine M 2023-12-20 11:05:47 +01:00
parent 5701aed4b3
commit 0b898771bc
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{
"name": "acf/photos-archives",
"title": "Archives photographiques",
"category": "homegrade-blocks",
"multiple": false,
"icon": {
"foreground": "#DF1E1E",
"src": "format-gallery"
},
"keywords": [
"Archives",
"photos",
"historique"
],
"supports": {
"align": [
"full"
]
},
"acf": {
"mode": "auto",
"renderTemplate": "photos-archives.php"
},
"align": "full"
}

View File

@ -0,0 +1,20 @@
<?php
$home_header = get_field('home_header_datas');
?>
<section class="home-header header_top">
<div class="home-header__titling">
<h1 class="home-header__title">
<?php echo $home_header['title'] ?>
</h1>
<p><?php echo $home_header['description'] ?></p>
<a class="home-header__scroll-down-indicator" href="#section-show-thematiques">
<img class="home-header__scroll-down-indicator__arrow" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-down-white.svg' alt=''>
</a>
</div>
<div class="home-header__fresque">
<img src="<?php echo get_template_directory_uri() . '/resources/img/illustrations/illustration-accueil-thematiques.jpg' ?>" alt="">
</div>
</section>

View File

@ -93,6 +93,7 @@ function create_block_multiblocks_block_init()
// ACF
register_block_type(__DIR__ . '/acf-blocks/google-map');
register_block_type(__DIR__ . '/acf-blocks/sitemap');
register_block_type(__DIR__ . '/acf-blocks/photos-archives');
register_block_type(__DIR__ . '/acf-blocks/home/home-header');
register_block_type(__DIR__ . '/acf-blocks/home/latest-news');
register_block_type(__DIR__ . '/acf-blocks/home/show-thematiques');