@@ -34,7 +34,7 @@ export const BDPCard: React.FC<CardProps> = ({
3434 byBDP,
3535} ) => {
3636 const baseStyles = `border border-brand-stroke-on-base p-2
37- flex min-h-[290px] w-[374px] rounded-2xl bg-brand-card-bg` ;
37+ flex min-h-[290px] w-full md:max-w- [374px] rounded-2xl bg-brand-card-bg` ;
3838
3939 const className = `
4040 ${ baseStyles }
@@ -62,8 +62,8 @@ export const BDPCard: React.FC<CardProps> = ({
6262 >
6363 < div className = "flex flex-col rounded-xl border border-brand-stroke-on-base w-full min-h-full bg-brand-card-bg" >
6464 < div
65- className = { `h-[126px] flex border border-l-0 border-r-0 border-t-0
66- border-brand-stroke-on-base rounded-lg relative flex-col items-center justify-center` }
65+ className = { `min- h-[126px] flex border border-l-0 border-r-0 border-t-0
66+ border-brand-stroke-on-base rounded-lg relative z-0 flex-col items-center justify-center` }
6767 style = { { backgroundColor : bannerColor } }
6868 >
6969 < div >
@@ -80,16 +80,21 @@ export const BDPCard: React.FC<CardProps> = ({
8080 ) }
8181 </ div >
8282 { /* Footer */ }
83- < div className = "flex flex-col w-full p-3 gap-2" >
84- < div className = "w-full flex items-center justify-between" >
85- < h6 className = "font-montserrat text-lg font-semibold" > { title } </ h6 >
86- < Leaf
87- showLeftOvers
88- leavesCount = { convertToLeavesCount ( difficulty ) }
89- />
83+ < div className = "flex flex-col w-full h-full p-2 md:p-3 gap-1.5 md:gap-2 justify-between" >
84+ < div className = "flex flex-col gap-1.5 md:gap-2" >
85+ < div className = "w-full flex items-start justify-between" >
86+ < h6 className = "font-montserrat text-base md:text-lg font-semibold" >
87+ { title }
88+ </ h6 >
89+ < Leaf
90+ showLeftOvers
91+ leavesCount = { convertToLeavesCount ( difficulty ) }
92+ />
93+ </ div >
94+ < p className = "font-light text-sm md:text-base font-quicksand" >
95+ { description }
96+ </ p >
9097 </ div >
91- < p className = "font-light font-quicksand" > { description } </ p >
92-
9398 < div className = "flex gap-[9px] flex-wrap" >
9499 { tagList &&
95100 tagList . map ( ( tag ) => (
0 commit comments