index page updated; ArticleGrid -> PageGrid
This commit is contained in:
1 parent
85d2f7cc45
commit
970bdce53d
4 files changed
+40
-50
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { dateFormat } from 'src/lib/date'
|
||||
|
||||
export type DateProps = {
|
||||
style?: React.CSSProperties
|
||||
children: string | Date
|
||||
}
|
||||
export const Date: React.FC<DateProps> = props => (
|
||||
<p style={props.style}>
|
||||
<style jsx>{`
|
||||
p {
|
||||
color: var(--color-text-second);
|
||||
font-size: var(--font-size-second);
|
||||
}
|
||||
`}</style>
|
||||
{dateFormat(props.children)}
|
||||
</p>
|
||||
)
|
||||
Reference in new issue
Block a user