Compare commits

...

7 Commits

Author SHA1 Message Date
Nonimart
53f76e20f5 FEATURE Conditionnal h1 h2 for post title depending on post type
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-20 10:22:47 +02:00
Nonimart
b11dfc0337 FEATURE Temporrary comment on article paddings 2025-06-20 10:22:24 +02:00
Nonimart
a6f11e08ab FEATURE Introducing component and first special behaviour on h1 2025-06-20 10:22:07 +02:00
Nonimart
d99a706689 INCLUDE new files 2025-06-20 10:21:50 +02:00
Nonimart
c1c572fdce REFACTOR passing custom post title class 2025-06-20 10:21:42 +02:00
Nonimart
d772a3c8aa FEATURE Styling native wp block pullquote 2025-06-20 10:21:02 +02:00
Nonimart
70b33b59bd REFACTOR Optimizing component html 2025-06-20 10:20:50 +02:00
7 changed files with 20 additions and 5 deletions

View File

@ -32,9 +32,11 @@
@import './pages/single-revues.css';
@import './pages/archive-revues.css';
@import './pages/archive-articles.css';
@import './pages/single-articles.css';
/* ########### LAYOUT ############ */
@import './layout/nav.css';
/* ########### BLOCKS ############ */
@import './blocks/explore-tags.css';
@import './blocks/wp-block-pullquote.css';

View File

@ -0,0 +1,3 @@
.wp-block-pullquote {
@apply text-carhop-purple-500 py-6 fjalla font-bold text-3xl my-6 border-primary pl-4 border-t border-b;
}

View File

@ -1,7 +1,8 @@
.post-header {
@apply bg-purple-50 text-primary py-32;
h1 {
h1.post-header__title,
h2.post-header__title {
@apply uppercase font-medium text-7xl;
line-height: 1.2;
}

View File

@ -0,0 +1,5 @@
.page--single-articles {
h1 {
@apply mb-6;
}
}

View File

@ -51,7 +51,7 @@
}
}
article {
@apply py-12 my-12;
/* @apply py-12 my-12; */
.article-title {
@apply mb-8;
}

View File

@ -4,7 +4,7 @@ $articleContent = get_the_content($articleID);
$articleTitle = get_the_title($articleID);
?>
<div class="article-content">
<article class="article-content">
<h1><?php echo $articleTitle; ?></h1>
<?php echo $articleContent; ?>
</div>
</article>

View File

@ -39,7 +39,11 @@ $hasThumbnail = has_post_thumbnail();
</p>
</div>
<h1> <?php echo $revueTitle; ?></h1>
<?php if ($post_type === 'revues') : ?>
<h1 class="post-header__title"> <?php echo $revueTitle; ?></h1>
<?php elseif ($post_type === 'articles') : ?>
<h2 class="post-header__title"> <?php echo $revueTitle; ?></h2>
<?php endif; ?>
<div class="post-details">
<?php if ($post_type === 'revues') : ?>