feature: 版本声明和相关推荐

This commit is contained in:
tangly1024
2022-01-06 17:28:50 +08:00
parent bf4dd19aaa
commit b2f0613191
5 changed files with 13 additions and 13 deletions

View File

@@ -13,13 +13,13 @@ const RecommendPosts = ({ recommendPosts }) => {
const { locale } = useGlobal()
return (
<div className="dark:text-gray-300 pt-2">
<div className="mb-2 text-2xl">{locale.COMMON.RELATE_POSTS}</div>
<ul className="list-disc pl-6 text-sm dark:bg-gray-900 bg-gray-100 p-2 my-2 border-l-4 border-yellow-500">
<div className="pt-2 border pl-4 py-2 my-4 dark:text-gray-300 ">
<div className="mb-2 font-bold text-lg">{locale.COMMON.RELATE_POSTS} :</div>
<ul className="font-light text-sm">
{recommendPosts.map(post => (
<li className="py-1" key={post.id}>
<Link href={`/article/${post.slug}`}>
<a className="cursor-pointer hover:text-blue-500 hover:underline">
<a className="cursor-pointer hover:underline">
{post.title}
</a>
</Link>