rebuild with gatsby

This commit is contained in:
2022-10-24 02:55:16 +08:00
parent 7defcb61a2
commit f26a62925a
46 changed files with 26630 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import * as React from "react"
import * as styles from "../styles/Home.module.css"
import ClickForMore from "./ClickForMore"
import {Link} from "gatsby"
const PostPreview = ({title, description, date, href, bg}) => {
return (
<Link to={href} style={{color: "unset", textDecoration: "unset"}}>
<section className={styles.postPreviewWrap}>
<div className={styles.postPreview}>
<h2>{title}</h2>
<p>{description}</p>
<small>发布于 {date}</small>
{" | "}
<ClickForMore />
</div>
<div style={{width: "39%", maxWidth: "20rem"}}>
{bg}
</div>
</section>
</Link>
)
}
export default PostPreview