Added website ICP filing module

This commit is contained in:
beliker 2023-04-16 17:24:59 +08:00
parent b751861bfb
commit b4d408743a
4 changed files with 46 additions and 1 deletions

View File

@ -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; // 鼠标悬停时也取消下划线
}
}

18
app/components/beian.tsx Normal file
View File

@ -0,0 +1,18 @@
import React from "react";
import "./BottomRecord.scss";
const BottomRecord = () => {
return (
<div className="bottom-record">
<a
href="http://beian.miit.gov.cn/"
target="_blank"
rel="noopener noreferrer"
>
ICP备2022000621号-2
</a>
</div>
);
};
export default BottomRecord;

View File

@ -1,4 +1,4 @@
export const OWNER = "Yidadaa"; export const OWNER = "belikers";
export const REPO = "ChatGPT-Next-Web"; export const REPO = "ChatGPT-Next-Web";
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`; export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`; export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;

View File

@ -3,6 +3,7 @@ import { Analytics } from "@vercel/analytics/react";
import { Home } from "./components/home"; import { Home } from "./components/home";
import { getServerSideConfig } from "./config/server"; import { getServerSideConfig } from "./config/server";
import BottomRecord from "@/app/components/beian";
const serverConfig = getServerSideConfig(); const serverConfig = getServerSideConfig();
@ -11,6 +12,7 @@ export default async function App() {
<> <>
<Home /> <Home />
{serverConfig?.isVercel && <Analytics />} {serverConfig?.isVercel && <Analytics />}
<BottomRecord />
</> </>
); );
} }