mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
Added website ICP filing module
This commit is contained in:
parent
b751861bfb
commit
b4d408743a
25
app/components/BottomRecord.scss
Normal file
25
app/components/BottomRecord.scss
Normal 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
18
app/components/beian.tsx
Normal 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;
|
@ -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`;
|
||||
|
@ -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() {
|
||||
<>
|
||||
<Home />
|
||||
{serverConfig?.isVercel && <Analytics />}
|
||||
<BottomRecord />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user