const theme = props.theme; const card = props.card; const Card = styled.div` // height: "100%", height: 350px; width: "100%"; maxWidth: 250; borderRadius: 24; overflow: "hidden"; position: "relative"; border: 1px rgba(256, 256, 256, .25) solid; display: flex; &:hover { color: #fff; background: rgb(60 65 68); } `; return ( <Card key={index}> <img style={{ width: "100%", height: "100%", objectFit: "cover" }} src={`https://ipfs.near.social/ipfs/${card.imageUrl}`} alt={card.name} /> <div style={{ // backgroundColor: "#FFF", color: "#FFF", position: "absolute", left: "50%", width: "calc(100% - 48px)", transform: "translateX(-50%)", zIndex: 100, bottom: 24, borderRadius: 16, display: "flex", justifyContent: "center", aligncards: "center", backdropFilter: "blur(10px)", border: `1px rgba(256, 256, 256, .25) solid`, padding: "8px 16px", }} > <p style={{ textAlign: "center", padding: 0, margin: 0, fontWeight: 600, }} > {item.message || card.name} </p> </div> </Card> );