1414 * limitations under the License.
1515 */
1616import React , { ReactNode } from 'react' ;
17- import { Button , Flex , Heading , Text } from 'rebass/styled-components' ;
17+ import { Flex , Heading , Text } from 'rebass/styled-components' ;
1818import styled from 'styled-components' ;
1919import { PostDescription } from '../types' ;
2020import { Card , CardContainer } from './Card' ;
2121import CardFooter from './CardFooter' ;
2222import { Fade } from 'react-awesome-reveal' ;
23- import { Link as RebassLink } from 'rebass' ;
23+ import { Link } from 'rebass' ;
24+ import colors from '../colors.json' ;
2425
2526const cardMinWidth = '350px' ;
2627
@@ -95,15 +96,9 @@ export const PostContainer = ({
9596 { pageId && (
9697 < DownFade >
9798 < Flex justifyContent = "center" mt = "4" mb = "2" fontSize = { [ 2 , 3 ] } >
98- < Button variant = "more" >
99- < RebassLink
100- href = { `/${ pageId } ` }
101- color = "inherit"
102- style = { { textDecorationLine : 'inherit' } }
103- >
104- More
105- </ RebassLink >
106- </ Button >
99+ < MoreButton >
100+ < StyledLink href = { `/${ pageId } ` } > More</ StyledLink >
101+ </ MoreButton >
107102 </ Flex >
108103 </ DownFade >
109104 ) }
@@ -116,3 +111,19 @@ const DownFade = ({ children }: { children: ReactNode }): JSX.Element => (
116111 { children }
117112 </ Fade >
118113) ;
114+
115+ const StyledLink = styled ( Link ) `` ;
116+ const MoreButton = styled ( Card ) `
117+ border-width: 2px;
118+ padding: 0;
119+ color: ${ colors . text } ;
120+ background: ${ colors . background } ;
121+
122+ ${ StyledLink } {
123+ text-decoration: none;
124+ display: block;
125+ padding: 8px 70px;
126+ font-weight: 600;
127+ color: inherit;
128+ }
129+ ` ;
0 commit comments