From a617c801bc46f265cacea5515e59102f4d2fe261 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 10 Dec 2018 12:59:33 +0100 Subject: Add arrow to link --- packages/website/ts/@next/components/link.tsx | 16 ++++++++++++---- packages/website/ts/@next/constants/globalStyle.tsx | 4 ++++ packages/website/ts/@next/pages/why.tsx | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/website/ts/@next/components/link.tsx b/packages/website/ts/@next/components/link.tsx index c1b8b33e9..4a572b8a9 100644 --- a/packages/website/ts/@next/components/link.tsx +++ b/packages/website/ts/@next/components/link.tsx @@ -9,7 +9,8 @@ interface LinkInterface { children?: Node | string; isNoArrow?: boolean; hasIcon?: boolean | string; - isInline?: boolean; + isBlock?: boolean; + isCentered?: boolean; href?: string; theme?: { textColor: string; @@ -17,27 +18,34 @@ interface LinkInterface { } const StyledLink = styled(ReactRouterLink)` - display: ${props => props.isInline && 'inline-block'}; + display: ${props => !props.isBlock && 'inline-flex'}; color: ${props => props.color || props.theme.linkColor}; - padding: ${props => !props.isNoPadding && '18px 30px'}; + //padding: ${props => !props.isNoPadding && '18px 30px'}; text-align: center; font-size: 18px; text-decoration: none; + align-items: center; @media (max-width: 768px) { - padding: ${props => !props.isNoPadding && '6% 10%'}; + //padding: ${props => !props.isNoPadding && '6% 10%'}; + } + + svg { + margin-left: 3px; } `; export const Link = (props: LinkInterface) => { const { children, + isNoArrow, href, } = props; return ( {children} + {!isNoArrow && } ); }; diff --git a/packages/website/ts/@next/constants/globalStyle.tsx b/packages/website/ts/@next/constants/globalStyle.tsx index 7d5e59c6e..e1b97fc3b 100644 --- a/packages/website/ts/@next/constants/globalStyle.tsx +++ b/packages/website/ts/@next/constants/globalStyle.tsx @@ -99,6 +99,10 @@ const GlobalStyles = withTheme(createGlobalStyle ` line-height: 1.444444444em; // 26px } + :root a { + text-decoration: none; + } + svg + p, img + p { padding-top: 30px; diff --git a/packages/website/ts/@next/pages/why.tsx b/packages/website/ts/@next/pages/why.tsx index 1d2d7cd4a..6b22c6fa4 100644 --- a/packages/website/ts/@next/pages/why.tsx +++ b/packages/website/ts/@next/pages/why.tsx @@ -19,7 +19,7 @@ export const NextWhy = () => ( The exchange layer for the crypto economy The world's assets are becoming tokenized on public blockchains. 0x Protocol is free, open-source infrastructure that allows anyone in the world to build products that enable the purchasing and trading of crypto tokens. - Build on 0x (arrow) + Build on 0x -- cgit