Open choigirang opened 6 months ago
export default function Card(props: SkillCardProps) { const { src, txt, bedge, color } = props; const { scrollToPage } = useMoveScroll(); return ( <Container onClick={() => scrollToPage(bedge)}> <Img src={`${src}.webp`} alt={`${src}-img`} /> <Text sx={{ '.bedge': { backgroundColor: color } }}> <span className="bedge">{bedge}</span> <span className="main-txt">{txt}</span> </Text> </Container> ); }