Skip to content

Commit

Permalink
removed footer from mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjawal05 committed Aug 27, 2023
1 parent fd51250 commit e0938b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 13 additions & 7 deletions src/components/InfoFooter/index.js
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -21,12 +23,16 @@ const Email = () => (
rel="noopener noreferrer">here</a>
);

const Footer = () => (
<StyledFooter style={{ position: 'sticky', bottom: 0, zIndex: 1, width: '100%', height: '50px', paddingTop: '15px' }}>
<Text>
Email me <Email />
</Text>
</StyledFooter>
);
const Footer = () => {
const width = useContext(ScreenContext);
const isMobile = width < 700;
return !isMobile && (
<StyledFooter style={{ position: 'sticky', bottom: 0, zIndex: 1, width: '100%', height: '50px', paddingTop: '15px' }}>
<Text>
Email me <Email />
</Text>
</StyledFooter>
)
};

export default Footer;
2 changes: 0 additions & 2 deletions src/components/Skills/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,5 @@ const Skills = () => (

export default Skills;

// menu active item
// change resume link
// preview resume
// resume download

0 comments on commit e0938b8

Please sign in to comment.