parent
cb24556d2f
commit
380b39ec2f
13 changed files with 2167 additions and 250 deletions
@ -0,0 +1,15 @@ |
|||||||
|
import styled from 'styled-components'; |
||||||
|
|
||||||
|
const Link = styled.a` |
||||||
|
font-weight: 600; |
||||||
|
`;
|
||||||
|
|
||||||
|
const EnrichedLink = props => { |
||||||
|
return ( |
||||||
|
<Link href={ props.href } target={ /^http(s)?:\/\//.test(props.href) ? '_blank' : '_self' }> |
||||||
|
{ props.children } |
||||||
|
</Link> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default EnrichedLink; |
@ -1,12 +1,14 @@ |
|||||||
import styled from 'styled-components'; |
import styled from 'styled-components'; |
||||||
|
|
||||||
export const BlockQuote = styled.blockquote` |
const BlockQuote = styled.blockquote` |
||||||
background: transparent; |
|
||||||
padding: 16px 20px; |
padding: 16px 20px; |
||||||
border-left: 5px solid currentColor; |
|
||||||
position: relative; |
position: relative; |
||||||
|
background: #e8e8e8; |
||||||
|
border-radius: 5px; |
||||||
|
|
||||||
p { |
p { |
||||||
margin: 0; |
margin: 0; |
||||||
} |
} |
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export default BlockQuote; |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue