Init: First Commit

一个初始的版本
This commit is contained in:
2023-11-23 00:05:07 +08:00
commit 9391a37b21
30 changed files with 8021 additions and 0 deletions
@@ -0,0 +1,37 @@
.article {
line-height: 1.7;
> * {
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
pre {
tab-size: 4;
padding: 1em;
color: #fff;
overflow: auto;
border-radius: .75rem;
background-color: #333;
}
:not(pre) > code {
font-size: smaller;
padding: .15rem .5rem;
border-radius: .75rem;
background-color: rgb(165 243 252);
}
ul {
line-height: 2;
list-style: disc;
margin-left: 1.25rem;
::marker {
color: rgb(244 114 182 / var(--tw-bg-opacity));
}
}
}
+15
View File
@@ -0,0 +1,15 @@
import { clsn } from "~/utils";
import styles from "./article.module.less";
interface ArticleProps {
className?: string;
html: string;
}
function Article({ className, html }: ArticleProps) {
return (
<article className={clsn(styles.article, className)} dangerouslySetInnerHTML={{ __html: html }} />
);
}
export default Article;