Dejvino's Curriculum Vitae
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
1.3 KiB

  1. import React, { ReactNode, useContext } from 'react';
  2. import Container from 'react-bootstrap/Container';
  3. import { PersonContext } from '../hooks/PersonContext';
  4. import TagCloud from './TagCloud';
  5. import { Col, Row } from 'react-bootstrap';
  6. function SkillsCol(props: { children: ReactNode }) {
  7. return <Col xs={12} sm={6} lg={12}>{props.children}</Col>
  8. }
  9. export default function Skills() {
  10. const person = useContext(PersonContext)
  11. return (
  12. <Container className='skills' fluid>
  13. <h2>Skills</h2>
  14. <Row>
  15. <SkillsCol><TagCloud title='Main' icon='bookmark-star' style='primary' tags={person.skills.primary} /></SkillsCol>
  16. {person.skills.secondary && (
  17. <SkillsCol><TagCloud title='Support' icon='bookmark-plus' tags={person.skills.secondary} /></SkillsCol>
  18. )}
  19. {person.skills.languages && (
  20. <SkillsCol><TagCloud title='Languages' icon='bookmarks' tags={person.skills.languages} /></SkillsCol>
  21. )}
  22. {person.skills.others && (
  23. <SkillsCol><TagCloud title='Others' icon='bookmark' tags={person.skills.others} /></SkillsCol>
  24. )}
  25. {person.interests && (
  26. <SkillsCol><TagCloud title='Interests' icon='bookmark-heart' style='light' tags={person.interests} /></SkillsCol>
  27. )}
  28. </Row>
  29. </Container>
  30. )
  31. }