Compare commits

...

2 Commits

Author SHA1 Message Date
Nonimart
8adcdb103e FEATURE Making artisan title clickable
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-14 15:20:38 +02:00
Nonimart
3e9fe31720 FEATURE Making artisan title clickable 2025-07-14 15:20:25 +02:00
2 changed files with 18 additions and 2 deletions

View File

@ -32,8 +32,9 @@ $cover_image = get_field('artisan_cover', $postID);
</a> </a>
<div class="card-artisans__inner"> <div class="card-artisans__inner">
<h2 class="card-artisans__title"><?php echo $post_title ?></h2> <a href="<?php echo get_the_permalink($postID) ?>" class="card-artisans__title-container">
<h2 class="card-artisans__title"><?php echo $post_title ?></h2>
</a>
<?php if ($company_members): ?> <?php if ($company_members): ?>
<p class="card-artisans__team-members"> <p class="card-artisans__team-members">
<?php foreach ($company_members as $key => $member) : ?> <?php foreach ($company_members as $key => $member) : ?>

View File

@ -3,6 +3,21 @@
&__thumbnail { &__thumbnail {
@apply w-full h-32 lg:h-48 object-cover rounded-t-xl; @apply w-full h-32 lg:h-48 object-cover rounded-t-xl;
} }
&:has(.cta--read-more:hover),
&:has(.card-artisans__cover-container:hover),
&:has(.card-artisans__title-container:hover) {
.card-artisans__cover-image {
@apply scale-105;
filter: brightness(1.1);
}
.cta--read-more {
@apply text-patrimoine-sante-securite;
img {
transform: translateX(3px);
}
}
}
&__cover-container { &__cover-container {
@apply w-full overflow-hidden rounded-t-xl; @apply w-full overflow-hidden rounded-t-xl;
&:hover .card-artisans__cover-image { &:hover .card-artisans__cover-image {