page update
This commit is contained in:
1 parent
ee5cba3634
commit
9a105ba45e
8 files changed
+66
-34
No files matched your search
@@ -1,21 +1,38 @@
|
||||
import { Share } from '../Share'
|
||||
import { Html } from '../Html'
|
||||
import { PageMeta } from '../PageMeta'
|
||||
import { ITag } from 'src/types'
|
||||
|
||||
export interface IPageProps {
|
||||
showSocialShare: boolean
|
||||
children: string
|
||||
date: Date
|
||||
tags: ITag[]
|
||||
}
|
||||
|
||||
export const Page: React.FC<IPageProps> = props => (
|
||||
<div className={'Article'}>
|
||||
<style jsx>{`
|
||||
hr {
|
||||
border: 1px solid black;
|
||||
margin-top: var(--size-m);
|
||||
margin-bottom: var(--size-m);
|
||||
}
|
||||
`}</style>
|
||||
<div className={'Article-Body'}>
|
||||
<Html
|
||||
html={props.children}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{!props.showSocialShare ? null : (
|
||||
<Share />
|
||||
)}
|
||||
<hr />
|
||||
<Share />
|
||||
|
||||
<PageMeta
|
||||
style={{
|
||||
marginTop: 'var(--size-m)',
|
||||
}}
|
||||
date={props.date}
|
||||
tags={props.tags}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
Reference in new issue
Block a user