Skip to content

Commit

Permalink
the Image hover changed to 20%
Browse files Browse the repository at this point in the history
  • Loading branch information
MesutBiskin committed Oct 31, 2023
1 parent ec010ec commit 12a5210
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,18 @@ main {
width: 260px;
}

.beer-card:hover{
transform:scale(1.2);
}

.beer-image {
width: 100%;
max-height: 500px;

}

.beer-image:hover{
transform: scale(1.2);
}

.close-button {
Expand Down
1 change: 1 addition & 0 deletions src/components/BeerCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default function BeerCard({ name, image, avgRating, setSelectedBeer }) {
if(hidden) return null
return (
<div className="beer-card" onClick={() => setSelectedBeer(name)}>

<div className="close-button" onClick={() => setHidden(true)}>x</div>
<div className="beer-image">
<img src={image} alt={name}
Expand Down

0 comments on commit 12a5210

Please sign in to comment.