app/imports/ui/components/landing/factoids/LevelFactoid.tsx
import React from 'react';
import { Card, Header, Icon, Label, List } from 'semantic-ui-react';
import { LevelFactoidProps } from '../../../../typings/radgrad';
import RadGradMenuLevel from '../../shared/RadGradMenuLevel';
import styles from '../utilities/landing-styles';
const LevelFactoid: React.FC<LevelFactoidProps> = ({ level, numberOfStudents, description }) => (
<div id="level-factoid">
<Header inverted style={styles['green-text']}>RadGrad Levels track your progress from Grasshopper to Ninja.</Header>
<Card fluid>
<Card.Content>
<Card.Header>Level {level}: <RadGradMenuLevel level={level} /></Card.Header>
<List horizontal>
<List.Item>
<List.Content><Label><Icon name='users' /> {numberOfStudents}</Label></List.Content>
</List.Item>
</List>
<Card.Description>{description}</Card.Description>
</Card.Content>
</Card>
</div>
);
export default LevelFactoid;