diff --git a/src/components/InfoFooter/index.js b/src/components/InfoFooter/index.js index 36e0d1b..6f75f51 100644 --- a/src/components/InfoFooter/index.js +++ b/src/components/InfoFooter/index.js @@ -1,7 +1,9 @@ +import { useContext } from 'react'; import { Layout as AntLayout, Typography } from 'antd'; import styled from 'styled-components'; import { LINKS } from '../../config/links'; +import { ScreenContext } from "../../config/context"; const { Text } = Typography; const { Footer: AntFooter } = AntLayout; @@ -21,12 +23,16 @@ const Email = () => ( rel="noopener noreferrer">here ); -const Footer = () => ( - - - Email me - - -); +const Footer = () => { + const width = useContext(ScreenContext); + const isMobile = width < 700; + return !isMobile && ( + + + Email me + + + ) +}; export default Footer; \ No newline at end of file diff --git a/src/components/Skills/index.js b/src/components/Skills/index.js index 418d7e1..1bed46f 100644 --- a/src/components/Skills/index.js +++ b/src/components/Skills/index.js @@ -45,7 +45,5 @@ const Skills = () => ( export default Skills; -// menu active item -// change resume link // preview resume // resume download \ No newline at end of file