diff --git a/app/components/BottomRecord.scss b/app/components/BottomRecord.scss new file mode 100644 index 000000000..6d98d496c --- /dev/null +++ b/app/components/BottomRecord.scss @@ -0,0 +1,25 @@ +.bottom-record { + display: none; /* 默认情况下不显示 */ + position: fixed; + bottom: 0; + left: 0; + right: 0; + background-color: #f5f5f5; + padding: 10px; + text-align: center; + font-size: 14px; + font-weight: bold; + +@media (min-width: 768px) { + display: block; /* 在宽度大于等于768px时显示 */ +} +} +a { + text-decoration: none; + color: #303030; + + &:hover { + text-decoration: none; // 鼠标悬停时也取消下划线 + } +} + diff --git a/app/components/beian.tsx b/app/components/beian.tsx new file mode 100644 index 000000000..1bcdd2ded --- /dev/null +++ b/app/components/beian.tsx @@ -0,0 +1,18 @@ +import React from "react"; +import "./BottomRecord.scss"; + +const BottomRecord = () => { + return ( +
+ + 浙ICP备2022000621号-2 + +
+ ); +}; + +export default BottomRecord; diff --git a/app/constant.ts b/app/constant.ts index 6f08ad756..4a1c8743d 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -1,4 +1,4 @@ -export const OWNER = "Yidadaa"; +export const OWNER = "belikers"; export const REPO = "ChatGPT-Next-Web"; export const REPO_URL = `https://github.com/${OWNER}/${REPO}`; export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`; diff --git a/app/page.tsx b/app/page.tsx index 20b503174..985ef8096 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -3,6 +3,7 @@ import { Analytics } from "@vercel/analytics/react"; import { Home } from "./components/home"; import { getServerSideConfig } from "./config/server"; +import BottomRecord from "@/app/components/beian"; const serverConfig = getServerSideConfig(); @@ -11,6 +12,7 @@ export default async function App() { <> {serverConfig?.isVercel && } + ); }