Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a Shadow Effect to the Images #511 #513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/Homeque.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const Homeque = () => {
<article
className="relative isolate flex flex-col justify-end overflow-hidden rounded-2xl px-8 pb-8 pt-40 max-w-sm mx-auto mt-24 bg-gray-900/40 shadow-lg transition duration-500 ease-in-out transform hover:shadow-2xl hover:scale-105"
key={pageSum + i}
style={{
boxShadow: '0 8px 30px rgba(0, 0, 0, 1.0)',
}}
>
<div>
<img
Expand Down
7 changes: 5 additions & 2 deletions src/pages/Explore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,15 @@ const Explore = () => {
{filteredPlaces.map((place, index) => (
<article
key={index}
className="relative isolate flex flex-col justify-end overflow-hidden rounded-2xl px-8 pb-8 pt-40 max-w-sm mx-auto mt-24 bg-gray-900/40 shadow-lg hover:shadow-2xl transition duration-500 ease-in-out transform"
className="relative isolate flex flex-col justify-end overflow-hidden rounded-2xl px-8 pb-8 pt-40 max-w-sm mx-auto mt-24 bg-gray-900/40 shadow-lg hover:shadow-3xl transition duration-500 ease-in-out transform"
style={{
boxShadow: '0 8px 30px rgba(0, 0, 0, 1.0)',
}}
>
<img
src={place.image}
alt=""
className="absolute inset-0 h-full w-full object-cover"
className="absolute inset-0 h-full w-full object-cover "
/>
<div className="absolute inset-0 bg-gradient-to-t from-gray-900 via-gray-900/40"></div>
<h3 className="z-10 mt-3 text-4xl font-bold text-white text-center">
Expand Down