File tree Expand file tree Collapse file tree 6 files changed +14
-13
lines changed
Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import styled from 'styled-components';
1818import { Box , Flex , Image , Text } from 'rebass/styled-components' ;
1919import { Fade } from 'react-awesome-reveal' ;
2020import SocialLink from './SocialLink' ;
21- import Link from './Link' ;
21+ import { Link } from './Link' ;
2222import { GATSBY_URL , MEDIA_QUERY_SMALL } from '../utils/constants' ;
2323import { landing } from '../../content/LandingContent' ;
2424import { header } from '../../content/HeaderContent' ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
2323 Button ,
2424} from 'rebass/styled-components' ;
2525import styled from 'styled-components' ;
26- import Link from './Link' ;
26+ import { Link } from './Link' ;
2727import { capitalize } from '../utils/string' ;
2828import { SECTION } from '../utils/constants' ;
2929import { getSectionHref } from '../utils/helpers' ;
Original file line number Diff line number Diff line change @@ -54,4 +54,12 @@ const Link = styled.a<Props>`
5454 }
5555` ;
5656
57- export default Link ;
57+ const LinkInButton = styled . a `
58+ text-decoration: none;
59+ display: block;
60+ padding: '8px 16px';
61+ font-weight: 600;
62+ color: inherit;
63+ ` ;
64+
65+ export { Link , LinkInButton } ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {
2525import styled from 'styled-components' ;
2626import { header } from '../../content/HeaderContent' ;
2727import { PAGE } from '../utils/constants' ;
28- import Link from './Link' ;
28+ import { Link } from './Link' ;
2929import { capitalize } from '../utils/string' ;
3030
3131const PageHeader = ( ) : JSX . Element => {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { PostDescription } from '../types';
2020import { Card , CardContainer } from './Card' ;
2121import CardFooter from './CardFooter' ;
2222import { Fade } from 'react-awesome-reveal' ;
23+ import { LinkInButton } from './Link' ;
2324
2425const cardMinWidth = '350px' ;
2526
@@ -113,11 +114,3 @@ const DownFade = ({ children }: { children: ReactNode }): JSX.Element => (
113114 { children }
114115 </ Fade >
115116) ;
116-
117- const LinkInButton = styled . a `
118- text-decoration: none;
119- display: block;
120- padding: '8px 16px';
121- font-weight: 600;
122- color: inherit;
123- ` ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import React, { ReactNode } from 'react';
1717import styled from 'styled-components' ;
1818import { Heading } from 'rebass/styled-components' ;
1919import { Slide } from 'react-awesome-reveal' ;
20- import Link from './Link' ;
20+ import { Link } from './Link' ;
2121import { MEDIA_QUERY_SMALL , SECTION } from '../utils/constants' ;
2222import { getSectionHref } from '../utils/helpers' ;
2323
You can’t perform that action at this time.
0 commit comments