diff --git a/data/topics.json b/data/topics.json index c2b528ca..2202d2df 100644 --- a/data/topics.json +++ b/data/topics.json @@ -2,13 +2,39 @@ { "name": "xLog", "description": "Let's talk about xLog, whether to praise or criticize it.", + "includeTags": [ + "xLog" + ], "includeKeywords": [ "xLog" ] }, + { + "name": "Web3", + "includeTags": [ + "Web3" + ], + "includeKeywords": [ + "Web3", + "Blockchain", + "NFT", + "DeFi", + "DAO", + "DApp", + "区块链", + "區塊鏈", + "加密货币", + "DeGame", + "链游", + "Crypto" + ] + }, { "name": "Artificial Intelligence", "description": "The world is undergoing changes, and we are at the center of it.", + "includeTags": [ + "AI" + ], "includeKeywords": [ "GPT", "Midjourney", @@ -20,6 +46,10 @@ { "name": "Life Journal", "description": "Discover new perspectives and insights in others' weekly, monthly, or yearly journal.", + "includeTags": [ + "Life", + "生活" + ], "includeKeywords": [ "Review", "Weekly", @@ -33,6 +63,10 @@ { "name": "Fiction", "description": "Experience a world of imagination through these fiction stories.", + "includeTags": [ + "Fiction", + "小说" + ], "notes": [ "51124-60", "53766-19", @@ -79,5 +113,27 @@ "48910-11", "51124-31" ] + }, + { + "name": "Coding", + "includeTags": [ + "Coding", + "编程" + ], + "includeKeywords": [ + "Coding", + "编程", + "JavaScript", + "Python", + "Java", + "前端", + "源码", + "Linux", + "Ubuntu", + "React", + "Vue", + "服务器", + "Docker" + ] } ] diff --git a/src/app/(home)/topic/[topic]/page.tsx b/src/app/(home)/(activities)/topic/[topic]/page.tsx similarity index 56% rename from src/app/(home)/topic/[topic]/page.tsx rename to src/app/(home)/(activities)/topic/[topic]/page.tsx index f3f0fa55..9702021c 100644 --- a/src/app/(home)/topic/[topic]/page.tsx +++ b/src/app/(home)/(activities)/topic/[topic]/page.tsx @@ -1,11 +1,11 @@ import { Metadata } from "next" import { HomeFeed } from "~/components/home/HomeFeed" -import { HomeSidebar } from "~/components/home/HomeSidebar" +import { Button } from "~/components/ui/Button" import { APP_NAME } from "~/lib/env" import { useTranslation } from "~/lib/i18n" -import topics from "../../../../../data/topics.json" +import topics from "../../../../../../data/topics.json" export function generateMetadata({ params, @@ -33,17 +33,22 @@ export default async function Topic({ return ( <> -
{t(info?.description || "")}
+{t(info?.description || "")}
{info?.includeKeywords?.length || 0 > 0 ? ( -+
{t("Topic Keywords")}: {info?.includeKeywords?.join(", ")}
) : null} -{t("Hot Topics")}
-{t("Suggested creators for you")}
diff --git a/src/components/ui/Tabs.tsx b/src/components/ui/Tabs.tsx index b66e9422..1d7564d9 100644 --- a/src/components/ui/Tabs.tsx +++ b/src/components/ui/Tabs.tsx @@ -27,8 +27,8 @@ export const Tabs = ({ return (