diff --git a/src/components/FeatureCard/index.tsx b/src/components/FeatureCard/index.tsx new file mode 100644 index 0000000..c6592d1 --- /dev/null +++ b/src/components/FeatureCard/index.tsx @@ -0,0 +1,65 @@ +import { Box, Text } from '..'; +import { Backend, Frontend } from '../../assets'; +import { FeatureOutput } from '../../graphql/types'; + +type FeatureCardProps = { + feature: FeatureOutput; + selectable?: boolean; + selected?: boolean; + toggleSelect?: () => void; +}; + +const FeatureCard = ({ + feature, + selectable = false, + selected = false, + toggleSelect = () => {}, +}: FeatureCardProps) => { + return ( + {}} + display='grid' + gridTemplateRows='auto' + alignItems='center' + rowGap='10px' + borderRadius='10px' + cursor='pointer' + > + + + + {feature.name} + + + + + {feature.featureType === 'frontend' || + (feature.featureType === 'fullstack' && )} + + + {feature.featureType === 'backend' || + (feature.featureType === 'fullstack' && )} + + + + + + {feature.description} + + + ${feature.price} + + + + ); +}; + +export default FeatureCard;