Skip to content

Commit

Permalink
moins css
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacati committed Oct 21, 2024
1 parent a4d4129 commit 15ae118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/assets/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ footer{
}
}
@media (min-width: 1024px) {
.card:hover .cylindre{
transform: scale(1.2);
}
.card:hover {
transform: scale(1.1);
}
.fond-cyl{
width: 22rem !important;
height: 22rem !important;
Expand All @@ -56,8 +50,8 @@ footer{
}
}
.moi img{
border-top-left-radius: 1rem /* 16px */;
border-bottom-left-radius: 1rem /* 16px */;
border-top-left-radius: 1rem;
border-bottom-left-radius: 1rem;
}
}
@media (min-width: 320px) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/global/Cards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { title, description, price, imageSrc, lien, logo, typeMotor, typeMotor1,
import { Eye } from 'lucide-astro';
---
<a href={lien} rel="noopener noreferrer">
<div class="bg-white flex flex-col justify-center items-center w-80 lg:w-96 p-6 rounded-3xl shadow-lg card slide transition-transform duration-300">
<div class="bg-white flex flex-col justify-center items-center w-80 lg:w-96 p-6 rounded-3xl shadow-lg card slide transition-transform duration-300 transform hover:scale-110 group">
<div class="flex justify-between items-center w-full">
<p class="font-bold text-3xl w-3/4 lg:w-3/5">{title}</p>
<img class="w-1/4" src={logo}>
Expand All @@ -23,7 +23,7 @@ import { Eye } from 'lucide-astro';
)}
</div>
<div class="cards rounded-full w-52 h-52 flex items-center justify-center mt-6">
<img class="max-w-72 lg:max-w-80 cylindre transition-transform duration-300" alt={alt} src={imageSrc} />
<img class="max-w-72 lg:max-w-80 cylindre transition-transform duration-300 group transform group-hover:scale-110" alt={alt} src={imageSrc} />
</div>
<div class="flex justify-between items-center w-full mt-4">
{price && (
Expand Down

0 comments on commit 15ae118

Please sign in to comment.