diff --git a/website/src/user/Content.jsx b/website/src/user/Content.jsx index b3cc82e..a030509 100644 --- a/website/src/user/Content.jsx +++ b/website/src/user/Content.jsx @@ -29,7 +29,7 @@ export default function Content() {
{!loaded ?

加载中…

: items.length === 0 ?

暂无{CONTENT_CATS.find((c) => c.key === cat)?.label}内容

- : items.map((it, i) => )} + : items.map((it) => )}
); @@ -48,7 +48,7 @@ function NewsCard({ it, big }) { {big && (
{img ? : null} - {it.video ?
: null} + {it.video ?
: null}
)}
diff --git a/website/src/user/ContentDetail.jsx b/website/src/user/ContentDetail.jsx index 6bf97cf..278225e 100644 --- a/website/src/user/ContentDetail.jsx +++ b/website/src/user/ContentDetail.jsx @@ -65,11 +65,11 @@ export default function ContentDetail() { {/* 动作条 */}
- 👍 0{like ? ' · 已赞' : ''} - - - - + {like ? '· 已赞' : ''}{like ? '' : '点赞 ' + 0} + + + +
{/* 阅读 + 留言 */} @@ -80,7 +80,6 @@ export default function ContentDetail() {
setDraft(e.target.value)} /> - 😊 🖼
) : ( @@ -103,3 +102,13 @@ export default function ContentDetail() { ); } + +const ICONS = { + thumb: 'M4 10v11H2V10h2zM6 21h11a2 2 0 0 0 2-1.7l1.4-7A2 2 0 0 0 18.4 10H13l1-4.6A2 2 0 0 0 12 3l-1 2.6C10.4 8 9 10 6 10z', + share: 'M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7M16 6l-4-4-4 4M12 2v13', + heart: 'M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z', + comment: 'M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z', +}; +function Ic({ icon }) { + return ; +}