Compare commits

...

3 Commits

Author SHA1 Message Date
Antoine M
d292fdd51b FEATURE Introducing component
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-24 15:25:53 +01:00
Antoine M
e98f1b71ef STYLE Refining authores list and director of publication styling and icons 2026-03-24 15:25:21 +01:00
Antoine M
a534b25982 FEATURE Handling show hide for post informations 2026-03-24 15:24:42 +01:00
3 changed files with 30 additions and 0 deletions

View File

@ -10,6 +10,11 @@
@apply uppercase font-medium text-4xl md:text-5xl lg:text-5xl text-white;
line-height: 1.2;
}
&__authors-list {
@apply flex flex-wrap gap-x-6 gap-y-2;
}
&__publication-director,
&__main-author,
&__first-author {
@apply text-white font-light tracking-wide flex items-center gap-3 mt-4;
@ -24,6 +29,10 @@
}
}
&__publication-director::before {
background-image: url('../resources/img/icons/carhop-auteur-directeur.svg');
}
&__first-author::before {
background-image: url('../resources/img/icons/carhop-plume2.svg');
}

View File

@ -13,11 +13,13 @@
.content-wrapper {
&[data-active-tab='post'] {
.post-informations,
#post-authors {
@apply hidden;
}
}
&[data-active-tab='authors'] {
.post-informations,
.post-content {
@apply hidden;
}

View File

@ -0,0 +1,19 @@
<?php
$post_ID = $args['ID'] ?? get_the_ID();
$post_parution_date = get_the_date('F Y', $post_ID);
$post_updated_date = get_post_meta(get_the_ID(), 'article_modification_date', true);
?>
<div class="post-informations">
<h3 class="content-tab__title">Informations</h3>
<div class="issue-informations">
<?php if ($post_parution_date) : ?>
<div class="issue-parution-date">
<h5 class="issue-parution-date__label title-small">Parution</h5>
<time class="issue-parution-date__value" datetime="<?php echo $post_parution_date; ?>"><?php echo $post_parution_date ?></time>
</div>
<?php endif; ?>
</div>
</div>