+
- return (
-
-
- {articleData.map(article => (
-
-
-
-
-
-
-
- {article.title}
-
-
- {article.category}
-
-
-
-
-
-
- {article.publishedAt?.toLocaleDateString('zh-CN', {
- year: 'numeric',
- month: 'long',
- day: 'numeric'
- })}
-
- ·
- {article.authorName}
-
-
-
- {article.content}
+
+
+
+ {article.title}
+
+
+ {article.category}
-
-
- {article.tags.map(tag => (
-
- {tag.name}
-
- ))}
-
+
+
+
+
+ {article.publishedAt?.toLocaleDateString("zh-CN", {
+ year: "numeric",
+ month: "long",
+ day: "numeric",
+ })}
+
+ ·
+
+ {article.authorName}
+
+
+
+
+ {article.content}
+
+
+
+ {article.tags.map((tag) => (
+
+ {tag.name}
+
+ ))}
+
-
- ))}
-
+
+
+ ))}
+
-
-
- );
- }
-);
+
+
+ 下一页
+
+
+
+
+ );
+});
diff --git a/frontend/themes/echoes/layout.tsx b/frontend/themes/echoes/layout.tsx
index d02fabc..ced95cd 100644
--- a/frontend/themes/echoes/layout.tsx
+++ b/frontend/themes/echoes/layout.tsx
@@ -1,7 +1,7 @@
import { Layout } from "interface/layout";
import { ThemeModeToggle } from "hooks/themeMode";
import { Echoes } from "hooks/echoes";
-import { Container, Flex, Box, Link, TextField } from "@radix-ui/themes";
+import { Container, Flex, Box, Link, TextField, Button } from "@radix-ui/themes";
import {
MagnifyingGlassIcon,
HamburgerMenuIcon,
@@ -59,13 +59,13 @@ export default new Layout(({ children, args }) => {
panelBackground="solid"
>
{/* 导航栏 */}
@@ -168,13 +164,16 @@ export default new Layout(({ children, args }) => {
onOpenChange={setMoreState}
>
-
+
{moreState ? (
-
+
) : (
-
+
)}
-
+
{
{parse(navString)}
@@ -215,8 +214,10 @@ export default new Layout(({ children, args }) => {
)}
{/* 主题切换按钮 */}
-
-
+
+
+
+
@@ -225,7 +226,7 @@ export default new Layout(({ children, args }) => {
{/* 主要内容区域 */}
-
+
你好 不好'
- }
+ data: '你好 不好',
+ },
},
layout: "layout.tsx",
templates: new Map([
@@ -24,7 +24,7 @@ const themeConfig: ThemeConfig = {
],
]),
- routes: new Map([])
+ routes: new Map([]),
};
export default themeConfig;