initial article update: scss to css; minor refactoring
This commit is contained in:
1 parent
21798f6821
commit
fa8b77252d
7 files changed
+94
-92
No files matched your search
@@ -3,14 +3,15 @@ import { Html } from '../Html'
|
||||
import { PageMeta } from '../PageMeta'
|
||||
import { ITag } from 'src/types'
|
||||
|
||||
export interface IPageProps {
|
||||
export type PageProps = {
|
||||
style?: React.CSSProperties
|
||||
children: string
|
||||
date: Date
|
||||
tags: ITag[]
|
||||
}
|
||||
|
||||
export const Page: React.FC<IPageProps> = props => (
|
||||
<div className={'Article'}>
|
||||
export const Page: React.FC<PageProps> = props => (
|
||||
<div className={'Article'} style={props.style}>
|
||||
<style jsx>{`
|
||||
hr {
|
||||
border: 1px solid black;
|
||||
|
||||
Reference in new issue
Block a user