Compare commits

...

3 Commits

Author SHA1 Message Date
Antoine M
9954ae2291 STYLE fixing bg
All checks were successful
continuous-integration/drone/push Build is passing
2025-09-30 18:06:08 +02:00
Antoine M
516699763f STYLE refining action wrapper 2025-09-30 18:05:56 +02:00
Antoine M
4f3158825f FEATURE handling internal link reusable class 2025-09-30 18:05:40 +02:00
4 changed files with 47 additions and 2 deletions

View File

@ -9,7 +9,23 @@ a[target='_blank'] {
background-position: center; background-position: center;
} }
} }
.internal-link-with-icon {
@apply flex items-center;
&:after {
transition: transform 0.3s ease-out;
@apply content-[''] w-10 h-10 ml-2 inline-block;
background-image: url('../resources/img/carhop-fleche-lien-externe-full--outline-green.svg');
}
&:hover:after {
transform: rotate(45deg);
}
&:hover {
filter: brightness(1.2);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 8px;
}
}
.no-external-icon { .no-external-icon {
&:after { &:after {
@apply !hidden; @apply !hidden;

View File

@ -10,6 +10,18 @@
.swiper-wrapper { .swiper-wrapper {
@apply mb-0; @apply mb-0;
} }
.swiper-actions-wrapper {
@apply md:flex justify-between items-center gap-4;
#discover-all-revues {
@apply internal-link-with-icon;
@apply font-bold text-xl;
/* &:after {
@apply content-[''] absolute inset-0 bg-primary w-full h-full;
} */
}
}
&__inner { &__inner {
@apply max-w-screen-2xl mx-auto; @apply max-w-screen-2xl mx-auto;
} }

View File

@ -3,7 +3,7 @@
z-index: 5; z-index: 5;
&:after { &:after {
@apply content-[""] absolute inset-0 bg-primary z-0 w-full h-full; @apply content-[""] absolute inset-0 bg-carhop-green-800 z-0 w-full h-full;
left: 50%; left: 50%;
transform: perspective(800px) rotateY(3deg) rotateX(1deg) translateX(-50%); transform: perspective(800px) rotateY(3deg) rotateX(1deg) translateX(-50%);
} }

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="fleche-lien-externe-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<defs>
<style>
.cls-1 {
fill: none;
stroke: #136F63;
stroke-width: 2px;
}
</style>
</defs>
<circle class="cls-1" cx="16" cy="16" r="15"/>
<g>
<path class="cls-1" d="M21.15,10.59l-9.38,10.02"/>
<path class="cls-1" d="M21.15,21.4v-10.81h-10.32"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 448 B