From b4d408743acc3117ae5295303a014b7481ae8f3a Mon Sep 17 00:00:00 2001 From: beliker <1251683316@qq.com> Date: Sun, 16 Apr 2023 17:24:59 +0800 Subject: [PATCH] Added website ICP filing module --- app/components/BottomRecord.scss | 25 +++++++++++++++++++++++++ app/components/beian.tsx | 18 ++++++++++++++++++ app/constant.ts | 2 +- app/page.tsx | 2 ++ 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 app/components/BottomRecord.scss create mode 100644 app/components/beian.tsx 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 ( +
+ ); +}; + +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() { <>