Skip to content

Commit 41f94a4

Browse files
committed
Update gallery page selected card styling
1 parent d6af85f commit 41f94a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Gallery/LayoutGrid.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const LayoutGrid = ({ cards }: { cards: Card[] }) => {
5353
"absolute h-full w-full left-0 top-0 bg-black opacity-0 z-10",
5454
selected?.id ? "pointer-events-auto" : "pointer-events-none"
5555
)}
56-
animate={{ opacity: selected?.id ? 0.7 : 0 }}
56+
animate={{ opacity: selected?.id ? 0.9 : 0 }}
5757
/>
5858
</div>
5959
);
@@ -77,15 +77,15 @@ const ImageComponent = ({ card }: { card: Card }) => {
7777

7878
const SelectedCard = ({ selected }: { selected: Card | null }) => {
7979
return (
80-
<div className="bg-transparent h-full w-full flex flex-col justify-end rounded-lg shadow-2xl relative z-[60]">
80+
<div className="bg-transparent pt-6 h-full w-full flex flex-col justify-end rounded-lg shadow-2xl relative z-[60]">
8181
<motion.div
8282
initial={{
8383
opacity: 0,
8484
}}
8585
animate={{
8686
opacity: 0.6,
8787
}}
88-
className="absolute inset-0 h-full w-full bg-black opacity-60 z-10"
88+
className="absolute inset-0 h-full w-full bg-gray-800 opacity-60 z-10"
8989
/>
9090
<motion.div
9191
layoutId={`content-${selected?.id}`}

0 commit comments

Comments
 (0)