diff --git a/resources/sass/club/club.scss b/resources/sass/club/club.scss index 06b4b80a..21a864e9 100644 --- a/resources/sass/club/club.scss +++ b/resources/sass/club/club.scss @@ -17,3 +17,4 @@ @import "./pages/home"; // * PARTIALS +@import "./partials/card-club-home"; diff --git a/resources/sass/club/pages/home.scss b/resources/sass/club/pages/home.scss index 3faf2504..ba2a6fc3 100644 --- a/resources/sass/club/pages/home.scss +++ b/resources/sass/club/pages/home.scss @@ -1,24 +1,5 @@ .page.home { - .card-club-home { - position: relative; - width: 17.062rem; - height: 25.687rem; + color: inherit; - .card-img-top { - width: 100%; - height: 100%; - object-fit: cover; - } - .card-body { - position: absolute; - bottom: 0; - - .lines { - position: relative; - bottom: -2rem; - left: -1rem; - } - } - } } diff --git a/resources/sass/club/partials/_card-club-home.scss b/resources/sass/club/partials/_card-club-home.scss new file mode 100644 index 00000000..d92883da --- /dev/null +++ b/resources/sass/club/partials/_card-club-home.scss @@ -0,0 +1,35 @@ +.card-club-home { + position: relative; + width: 17.062rem; + height: 25.687rem; + + .card-img-top { + width: 100%; + height: 100%; + object-fit: cover; + } + + .card-body { + position: absolute; + bottom: 0; + + .lines { + position: absolute; + top: -3rem; + left: -1rem; + } + + .promo-badge { + position: absolute; + top: -1rem; + right: .5rem; + padding: .2rem .3rem; + background-color: $color-danger; + font-family: Catamaran, sans-serif; + font-weight: bold; + transform: rotateZ(2deg); + + @include rfs(1.8rem, font-size); + } + } +} diff --git a/resources/views/club/pages/home.blade.php b/resources/views/club/pages/home.blade.php index 07fa96c2..940d4440 100644 --- a/resources/views/club/pages/home.blade.php +++ b/resources/views/club/pages/home.blade.php @@ -21,6 +21,7 @@ 'line2' => __('Dès aujourd’hui'), 'line2Class' => 'fs-4', 'content' => __('Spécial étudiant, Spécial famille, Spécial membre'), + 'promoAmount' => 770, ]) @include('club.partials.card-club-home', [ 'outterClass' => 'm-3', diff --git a/resources/views/club/partials/card-club-home.blade.php b/resources/views/club/partials/card-club-home.blade.php index c3c992ff..110103d2 100644 --- a/resources/views/club/partials/card-club-home.blade.php +++ b/resources/views/club/partials/card-club-home.blade.php @@ -11,9 +11,14 @@ $line2Class ?? '', ])>{{ $line2 }} + @if (!empty($promoAmount)) + {{ @money($promoAmount) }} + @endif