club card members

This commit is contained in:
Jérémy Munsch 2024-06-28 10:36:50 +02:00
parent 2de95ca830
commit ce60ee00fd
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
4 changed files with 25 additions and 6 deletions

View file

@ -15,16 +15,31 @@
.lines {
position: absolute;
top: -3rem;
top: -3.2rem;
left: -1rem;
}
.promo-members {
position: absolute;
top: 1rem;
right: .5rem;
padding: .1rem .3rem;
background-color: $color-hex-dark-rose;
color: $color-hex-light;
font-family: BourtonBase, sans-serif;
text-transform: uppercase;
transform: rotateZ(-2deg);
@include rfs(1.1rem, font-size);
}
.promo-badge {
position: absolute;
top: -1rem;
right: .5rem;
padding: .2rem .3rem;
background-color: $color-danger;
background-color: $color-hex-red;
color: $color-hex-light;
font-family: Catamaran, sans-serif;
font-weight: bold;
transform: rotateZ(2deg);

View file

@ -12,3 +12,4 @@ $color-hex-creme: #f3ebe4;
$color-hex-green-dark: #063;
$color-hex-pistache: #c7d400;
$color-hex-rose: #fab7d8;
$color-hex-dark-rose: #e7629b;

View file

@ -30,8 +30,9 @@
'line1Class' => 'fs-4',
'line2' => __('départ’aimants'),
'line2Class' => 'fs-3',
'content' => __('Spécial étudiant, Spécial famille, Spécial membre'),
'content' => __('Bourse aux échanges, Fonds de carte, Messages'),
'contentClass' => 'text-bg-quint',
'membersAmount' => 113290,
])
@include('club.partials.card-club-home', [
'outterClass' => 'm-3',
@ -40,7 +41,7 @@
'line1Class' => 'fs-3',
'line2' => __('pour toute la famille'),
'line2Class' => 'fs-4',
'content' => __('Spécial étudiant, Spécial famille, Spécial membre'),
'content' => __('Jeux à imprimer, Activités créatives, jeux vidéos...'),
'contentClass' => 'text-bg-warning',
])
@include('club.partials.card-club-home', [

View file

@ -14,11 +14,13 @@
@if (!empty($promoAmount))
<span class="promo-badge">{{ @money($promoAmount) }}</span>
@endif
@if (!empty($membersAmount))
<span class="promo-members">{{ number_format($membersAmount, 0, ',', ' ') }}&nbsp;{{ __('membres') }}</span>
@endif
<div @class([
'ck-content rounded-5 p-3 pb-4 pt-5',
$contentClass ?? 'text-bg-secondary',
])>{{ clean($content) }} asd asd sdfgv szdfg sdf sdg szdfg sdf sdg szdfg sdf sdg szdfg sdf sdg szdfg
sdf sdg szdfg sdf sdg szdfg sdf sdg sdfg sdg dsfhg sdefhg sdgfh df dsf d fffgdf g
])>{{ clean($content) }}
</div>
</div>
</div>