Compare commits

...

12 Commits

Author SHA1 Message Date
Antoine M
d23d611926 MOVING the files
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-05 10:02:39 +02:00
Antoine M
da30838ec8 FEATURE Updating dependencies 2025-06-05 10:02:20 +02:00
Antoine M
96923ac4c0 DELETE Moving files 2025-06-05 10:01:56 +02:00
Antoine M
a2a6aa1571 STYLE Flex wrap on tag-list 2025-06-05 10:01:44 +02:00
Antoine M
2e8533bafb STYLE handling cta--go 2025-06-05 10:01:22 +02:00
Antoine M
64ed35fae8 STYLE reducing padding bottom of component because of swiper pagination extra padding 2025-06-05 10:01:09 +02:00
Antoine M
1e121270cd FEATURE introducing the filter primary 2025-06-05 10:00:32 +02:00
Antoine M
98ebd1cac6 FEATURE Handling both grid and slider behaviour 2025-06-05 10:00:17 +02:00
Antoine M
9ba7ab0699 DELETE Removing useless file 2025-06-05 10:00:02 +02:00
Antoine M
f0dc1106ef FEATURE introducing component 2025-06-05 09:59:52 +02:00
Antoine M
3100c9623e STYLE Refining handling of white texte and exception in article card 2025-06-05 09:59:34 +02:00
Antoine M
371e539598 STYLE Hidding overflow on main 2025-06-05 09:56:16 +02:00
13 changed files with 97 additions and 27 deletions

View File

@ -7,11 +7,11 @@
/* ########### BASE ############ */
@import './base/base.css';
@import './base/typography.css';
@import './base/buttons.css';
@import './base/swiper.css';
@import './base/filters.css';
/* @import './base/swiper.css'; */
/* ########### COMPONENTS ############ */
@import './components/cta.css';
@import './components/buttons.css';
@import './components/post-card-dbmod.css';
@import './components/news-card.css';
@import './components/article-card.css';
@ -20,7 +20,6 @@
@import './components/article-tag.css';
@import './components/page-header.css';
/* ########### LAYOUT ############ */
@import './layout/nav.css';
@import './layout/footer.css';
@ -41,3 +40,6 @@
/* Home */
@import '../../template-blocks/home/home-header/home-header.css';
/* ########### LIBS ############ */
@import './libs/swiper.css';

View File

@ -2,3 +2,7 @@ a {
text-decoration: none;
@apply text-primary;
}
main {
overflow: hidden;
}

View File

@ -0,0 +1,5 @@
.filter-primary {
filter: brightness(0) saturate(100%) invert(35%)
sepia(26%) saturate(1165%) hue-rotate(123deg)
brightness(93%) contrast(93%);
}

View File

@ -1,16 +0,0 @@
:root {
--swiper-pagination-bullet-border-radius: 0;
--swiper-pagination-bullet-height: 2px;
--swiper-pagination-bullet-width: 30px;
--swiper-pagination-bullet-horizontal-gap: 10px;
--swiper-theme-color: var(
--wp--preset--color--primary
) !important;
--swiper-pagination-color: var(
--color-primary
) !important;
}
.swiper-pagination-bullet {
@apply bg-primary;
}

View File

@ -1,9 +1,6 @@
.block-dernieres-dynamiques {
@apply bg-primary text-white pt-20;
overflow: visible !important;
*:not(.article-card *) {
@apply text-white;
}
&__inner {
@apply max-w-screen-2xl mx-auto;
@ -141,4 +138,10 @@
@apply text-base font-extrabold uppercase pb-8 tracking-widest nunito text-primary text-center mx-auto block mt-12;
}
}
:is(p, span, h1, h2, h3, h4, h5, h6):not(
.article-card *
) {
@apply text-white;
}
}

View File

@ -23,7 +23,7 @@
}
.card-revue {
@apply grid gap-y-12 2xl:gap-y-16 pb-24 gap-x-12 2xl:gap-x-24;
@apply grid gap-y-12 2xl:gap-y-16 pb-12 gap-x-12 2xl:gap-x-24;
grid-template-columns: 61.8fr 38.2fr;
.content-meta {

View File

@ -38,4 +38,7 @@
&__tags {
@apply flex flex-wrap gap-4 pt-4;
}
.cta--go {
@apply text-primary;
}
}

View File

@ -1,3 +1,15 @@
.article-caroussel {
&--grid {
@apply grid grid-cols-2 gap-12;
}
&--slider {
/* @apply swiper; */
.swiper {
@apply pb-12;
}
.article-card {
@apply h-auto;
}
}
}

View File

@ -5,6 +5,6 @@
@apply bg-primary text-white;
}
}
.article-tags {
@apply flex gap-2;
.article-tags-list {
@apply flex flex-wrap gap-2;
}

View File

@ -26,6 +26,19 @@
&--mailing {
}
&--go {
@apply bg-transparent filter-primary border-none px-0 py-6;
img {
@apply w-24;
transition: transform 0.3s ease-in-out;
}
&:hover img {
@apply translate-x-2;
}
}
&--has-icon {
@apply flex items-center gap-4;

View File

@ -0,0 +1,36 @@
:root {
--swiper-pagination-bullet-border-radius: 0;
--swiper-pagination-bullet-height: 2px;
--swiper-pagination-bullet-width: 100%;
--swiper-pagination-bullet-horizontal-gap: 0px;
--swiper-theme-color: var(
--wp--preset--color--primary
) !important;
--swiper-pagination-color: var(
--color-primary
) !important;
}
.swiper-pagination {
@apply h-fit flex gap-12 !static mt-12;
top: unset !important;
bottom: 0px !important;
z-index: 100 !important;
}
.swiper-pagination-bullet {
@apply bg-primary w-full;
}
.swiper-controls {
@apply flex justify-start gap-6 pt-12 static;
.swiper-button-next,
.swiper-button-prev {
@apply static block border border-primary p-12 rounded-full;
&:after {
@apply left-1/2 top-1/2 block w-fit;
transform: translate(-50%, -50%);
}
}
}

View File

@ -0,0 +1,8 @@
<?php
$url = $args['url'] ?? '#';
$alt = $args['alt'] ?? 'Lire la suite';
$target = $args['target'] ?? '_self';
?>
<a href="<?php echo $url; ?>" class="cta cta--go cta--primary" target="<?php echo $target; ?>">
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/carhop-fleche-full.svg" alt="<?php echo $alt; ?>">
</a>