File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export default function MissionNotTriedDefault({
4545 status = "not_tried"
4646 onStart = { onStart }
4747 type = "detail"
48+ imageOpacity = { 100 }
4849 />
4950 </ div >
5051 </ div >
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ interface MissionGridCardProps {
2020 holdImageUrl ?: string ;
2121 type : "main" | "detail" | "recommendation" ;
2222 isSelected ?: boolean ;
23+ imageOpacity ?: number ;
2324}
2425
2526export default function MissionGridCard ( {
@@ -35,6 +36,7 @@ export default function MissionGridCard({
3536 holdImageUrl,
3637 type = "main" ,
3738 isSelected = true ,
39+ imageOpacity = 50 ,
3840} : MissionGridCardProps ) {
3941 return (
4042 < Link
@@ -58,7 +60,10 @@ export default function MissionGridCard({
5860 < img
5961 src = { imageUrl }
6062 alt = "mission-image"
61- className = "absolute inset-0 w-full h-full object-cover opacity-50 rounded-[32px]"
63+ className = { cn (
64+ "absolute inset-0 w-full h-full object-cover rounded-[32px]" ,
65+ `opacity-${ imageOpacity } `
66+ ) }
6267 loading = "lazy"
6368 />
6469 < div className = "absolute inset-0 bg-gradient-to-b from-[#313131] to-[#00000000] opacity-60 rounded-[32px]" />
You can’t perform that action at this time.
0 commit comments