diff options
author | August Skare <post@augustskare.no> | 2018-10-26 14:44:27 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-10-26 14:44:27 +0800 |
commit | f75cfd8aa425e6a1b1e22731ed888c399d453112 (patch) | |
tree | 1f991ec70fdf457ca886d1c55a4530d79aae5d47 /packages/dev-tools-pages/ts/components/Footer.tsx | |
parent | 7577d96671f23d1add83cbac1fc98480ee2a6529 (diff) | |
download | dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.tar dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.tar.gz dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.tar.bz2 dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.tar.lz dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.tar.xz dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.tar.zst dexon-0x-contracts-f75cfd8aa425e6a1b1e22731ed888c399d453112.zip |
fixed links in footer
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Footer.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Footer.tsx | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/packages/dev-tools-pages/ts/components/Footer.tsx b/packages/dev-tools-pages/ts/components/Footer.tsx index de479a81e..2b7f4f305 100644 --- a/packages/dev-tools-pages/ts/components/Footer.tsx +++ b/packages/dev-tools-pages/ts/components/Footer.tsx @@ -25,15 +25,13 @@ function Footer(props: Props) { <List> {tools.map(({ title, subtitle, icon }) => ( <ListItem key={title}> - <Icon as={icon} /> - <div> - <Beta> - <StyledLink colors={colors} href="#"> - {title} - </StyledLink> - </Beta> - <p>{subtitle}</p> - </div> + <ListLink hoverColor={colors.dark} href="#"> + <Icon as={icon} /> + <div> + <Beta>{title}</Beta> + <p>{subtitle}</p> + </div> + </ListLink> </ListItem> ))} </List> @@ -89,15 +87,14 @@ const Media = styled.div` `; const List = styled.ul` - display: flex; - width: 66.693548387%; - flex-wrap: wrap; - flex-direction: row; + list-style: none; margin: 0; padding: 0; + width: 66.693548387%; + display: flex; + flex-wrap: wrap; ${media.medium` - width: 100%; `}; @@ -107,11 +104,8 @@ const List = styled.ul` `; const ListItem = styled.li` - display: flex; - align-items: center; - flex-basis: 50%; margin-bottom: 3.3125rem; - + flex-basis: 50%; :nth-last-of-type(-n + 2) { margin-bottom: 0; @@ -126,18 +120,17 @@ const ListItem = styled.li` `}; `; +const ListLink = styled.a<{hoverColor: string;}>` + display: flex; + align-items: center; + :hover { + color: ${props => props.hoverColor}; + } +`; + const Small = styled.small` font-size: 1em; max-width: 37.5rem; `; -const StyledLink = - styled.a < - { colors: any } > - ` - :hover { - color: ${props => props.colors.main}; - } -`; - export default withContext(Footer); |