This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4dd3b2
commit 1008538
Showing
13 changed files
with
151 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import remcalc from 'remcalc'; | ||
|
||
import close from '../../../images/close.svg'; | ||
import { UnstyledButton } from '../../Common/Button'; | ||
import outlineStyles from '../utils/outlineStyles'; | ||
|
||
const StyledButton = styled(UnstyledButton)` | ||
const themeFn = ({ theme, themeVariation }) => | ||
themeVariation === 'white' ? theme.colors.blueBg : theme.colors.white; | ||
|
||
const CloseButton = styled(UnstyledButton)` | ||
position: relative; | ||
width: ${remcalc(80)}; | ||
height: ${remcalc(80)}; | ||
margin: ${remcalc(4)}; | ||
${outlineStyles} | ||
`; | ||
const CloseButton = ({ onClick }) => ( | ||
<StyledButton onClick={onClick}> | ||
<img src={close} alt="Close menu" /> | ||
</StyledButton> | ||
); | ||
&:before, | ||
&:after { | ||
position: absolute; | ||
left: ${remcalc(40)}; | ||
content: ' '; | ||
height: ${remcalc(25)}; | ||
width: ${remcalc(2)}; | ||
background-color: ${props => themeFn(props)}; | ||
} | ||
&:before { | ||
transform: rotate(45deg); | ||
} | ||
&:after { | ||
transform: rotate(-45deg); | ||
} | ||
`; | ||
|
||
export default CloseButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import styled, { css } from 'styled-components'; | ||
import remcalc from 'remcalc'; | ||
import breakpoint from 'styled-components-breakpoint'; | ||
|
||
import OuterAnchorItem from './OuterAnchorItem'; | ||
|
||
const darkTheme = css` | ||
background: ${props => props.theme.colors.vibrant}; | ||
> a { | ||
color: ${props => props.theme.colors.blueBg} !important; | ||
} | ||
`; | ||
|
||
const whiteTheme = css` | ||
background: ${props => props.theme.colors.blueBg}; | ||
> a { | ||
color: ${props => props.theme.colors.white} !important; | ||
} | ||
`; | ||
|
||
const ContactItem = styled(OuterAnchorItem)` | ||
margin: ${remcalc(10)} ${remcalc(25)}; | ||
padding: ${remcalc(5)} 0; | ||
text-align: center; | ||
${props => (props.themeVariation === 'white' ? whiteTheme : darkTheme)} | ||
${breakpoint('smallTablet')` | ||
display: none; | ||
`} | ||
`; | ||
|
||
export default ContactItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.