Skip to content

Commit

Permalink
filtre image cards-cate
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacati committed Oct 17, 2024
1 parent 63c05e4 commit cf4e54d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/assets/pages/404/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,8 @@ details[open] .cheSum{
}
.card-prod img{
height: 29rem;
}
.card-prod-text{
height: 29rem;
background: linear-gradient(90deg,rgba(0, 0, 0, 1) -300%, rgba(92, 92, 91, 0) 200%);
}
8 changes: 4 additions & 4 deletions src/components/global/CardsCate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
const { title, imageSrc, lien, entreprise } = Astro.props;
---
<a href={lien}>
<div class="flex flex-col justify-center items-center w-80 lg:w-96 shadow-lg card-prod my-16">
<div class="flex flex-col justify-center items-center w-80 lg:w-96 shadow-lg card-prod my-16 rounded-3xl">
<img src={imageSrc} alt="" class="object-cover w-80 lg:w-96 z-0 card-prod rounded-3xl absolute">
<div class="relative h-96 w-full flex justify-end ml-4 flex-col">
<p class="font-bold text-3xl text-white">{title}</p>
<p class="text-gray-300">{entreprise}</p>
<div class="relative w-full flex justify-end flex-col z-10 rounded-3xl card-prod-text">
<p class="font-bold text-3xl text-white ml-4">{title}</p>
<p class="text-gray-300 ml-4 mb-8">{entreprise}</p>
</div>
</div>
</a>

0 comments on commit cf4e54d

Please sign in to comment.