Merge pull request 'Improve card styling and transitions in HTML (CAS-0)' (!51) from task/CAS-0/UpdateGameGalleryStyling into main

Reviewed-on: https://git.simonis.lol/projects/casino/pulls/51
This commit is contained in:
Hop In, I Have Puppies AND WiFi 2025-03-06 11:41:31 +00:00
commit e53a08441b

View file

@ -21,12 +21,18 @@
<div class="slider-container"> <div class="slider-container">
<div class="slider-grid"> <div class="slider-grid">
<div class="card group" *ngFor="let game of featuredGames"> <div class="card group" *ngFor="let game of featuredGames">
<div class="relative"> <div class="relative overflow-hidden rounded-lg">
<img [src]="game.image" [alt]="game.name" class="w-full aspect-[4/3] object-cover" /> <img
[src]="game.image"
[alt]="game.name"
class="w-full aspect-[4/3] object-cover transition-transform duration-300 group-hover:scale-105"
/>
<div <div
class="absolute inset-0 bg-gradient-to-t from-deep-blue/90 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300" class="absolute inset-0 bg-gradient-to-t from-deep-blue/95 via-deep-blue/50 to-transparent opacity-0 group-hover:opacity-100 transition-all duration-300 ease-in-out"
> >
<div class="absolute bottom-4 left-4 right-4"> <div
class="absolute bottom-4 left-4 right-4 transform translate-y-4 group-hover:translate-y-0 transition-transform duration-300"
>
<h4 class="game-heading">{{ game.name }}</h4> <h4 class="game-heading">{{ game.name }}</h4>
<button class="button-primary w-full py-2">Jetzt Spielen</button> <button class="button-primary w-full py-2">Jetzt Spielen</button>
</div> </div>
@ -40,12 +46,18 @@
<h3 class="section-heading text-2xl mb-6">Alle Spiele</h3> <h3 class="section-heading text-2xl mb-6">Alle Spiele</h3>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4"> <div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4">
<div class="card group" *ngFor="let game of allGames"> <div class="card group" *ngFor="let game of allGames">
<div class="relative"> <div class="relative overflow-hidden rounded-lg">
<img [src]="game.image" [alt]="game.name" class="w-full aspect-[4/3] object-cover" /> <img
[src]="game.image"
[alt]="game.name"
class="w-full aspect-[4/3] object-cover transition-transform duration-300 group-hover:scale-105"
/>
<div <div
class="absolute inset-0 bg-gradient-to-t from-deep-blue/90 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300" class="absolute inset-0 bg-gradient-to-t from-deep-blue/95 via-deep-blue/50 to-transparent opacity-0 group-hover:opacity-100 transition-all duration-300 ease-in-out"
> >
<div class="absolute bottom-4 left-4 right-4"> <div
class="absolute bottom-4 left-4 right-4 transform translate-y-4 group-hover:translate-y-0 transition-transform duration-300"
>
<h4 class="game-heading">{{ game.name }}</h4> <h4 class="game-heading">{{ game.name }}</h4>
<button class="button-primary w-full py-2">Jetzt Spielen</button> <button class="button-primary w-full py-2">Jetzt Spielen</button>
</div> </div>