diff --git a/src/components/ArticleSnippet.tsx b/src/components/ArticleSnippet.tsx
index a7ac17d..9865739 100644
--- a/src/components/ArticleSnippet.tsx
+++ b/src/components/ArticleSnippet.tsx
@@ -11,8 +11,8 @@ export const About = () => {
保罗 API 基本上作为一只辅助角色,默默无闻的服务着其他主要项目,这便是它存在的意义。像「随机动漫壁纸」接口就是为 Single 主题量身定做的,既符合主题外观特性,又能满足其他人的快捷使用。它诞生于 2018 年 4 月,是保罗入门后端和 PHP 语言的主要项目之一。
项目后端采用原生 PHP 编写,前端是原生 CSS 和 JS,也就是非前后端分离项目,不需要额外的前端 SSR 服务。它没有任何框架加持(自己写的),所以执行速度和并发还是个谜。尽管如此,它也较为稳定的跑了这么久,不是吗?
- - 前端:CSS + Vanilla JS
- - 后端:PHP
+ - 前端:React (CSR)
+ - 后端:MidwayJS (NodeJS)
- 数据库:MariaDB
- 缓存:Redis
diff --git a/src/components/Layout/Footer.tsx b/src/components/Layout/Footer.tsx
new file mode 100644
index 0000000..f207735
--- /dev/null
+++ b/src/components/Layout/Footer.tsx
@@ -0,0 +1,29 @@
+// React
+import React from "react";
+
+
+// UI
+import { Link } from "react-router-dom";
+
+
+// Components
+function Footer() {
+ return (
+
+ )
+}
+
+export default Footer;
diff --git a/src/index.css b/src/index.css
index 28d6ea1..02cb0d4 100644
--- a/src/index.css
+++ b/src/index.css
@@ -287,10 +287,23 @@ main .comments{
footer{
color: #666;
padding: 1em 0;
- text-align: center;
border-top: 1px solid #eee;
}
+footer p{
+ font-size: .875em;
+}
+
+footer .links a::after{
+ color: initial;
+ margin: .25em;
+ content: "·";
+ opacity: .5;
+}
+footer .links a:last-child::after{
+ content: unset;
+}
+
.server-flag{
top: 0;
right: 0;
diff --git a/src/index.tsx b/src/index.tsx
index 7aca33d..875f699 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -6,26 +6,38 @@ import "./index.css";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
+
+// Components
import Aside from "./components/Layout/Aside";
+import Footer from "./components/Layout/Footer";
+
+
+// Routes
import Home from "./pages/index";
+import Notice from "./pages/notice";
+import Log from "./pages/log";
import Netease from "./pages/netease";
import Wallpaper from "./pages/wallpaper";
import ACGM from "./pages/acgm";
import Bing from "./pages/bing";
import NoMatch from "./pages/404";
+
function App() {
return (
} />
+ } />
+ } />
} />
} />
} />
} />
} />
+
);
}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 28ce0f4..181e9f2 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -53,20 +53,14 @@ function Index() {
解析音乐并精简输出,配合 Kico Player 使用更佳
- {/* */}
-
+
随机动漫壁纸
生成适合 Single 主题的白底动漫壁纸
-
+
随机动漫音乐
随机生成动漫背景音乐,基于网易云解析
@@ -78,13 +72,13 @@ function Index() {
*/}
-
+
哔哩哔哩小窗
更简洁的展示你在 B 站发布的视频内容
-
+
必应每日壁纸
每日更新,尽享乐趣,直接跳转,使用便捷
diff --git a/src/pages/log.tsx b/src/pages/log.tsx
new file mode 100644
index 0000000..e065c41
--- /dev/null
+++ b/src/pages/log.tsx
@@ -0,0 +1,29 @@
+// React
+import React from "react";
+
+
+// UI
+import ArticleHead from "@/components/Layout/ArticleHead";
+
+
+// Components
+function Log() {
+ return (
+
+
+
+ 2022.4.13
+ 陆续还原网易云、随机动漫音乐等 API 的说明页面,引入 PrismJS 实现代码高亮
+ 网易云 API 增加别名字段,随机动漫音乐 API 增加缓存的字段(番名)
+
+ 2022.4.12
+ 陆续还原「随机动漫壁纸」、「必应每日壁纸」、「网易云解析」和「随机动漫音乐」四大王牌 API
+
+ 2022.4.10
+ 开始使用 MidwayJS 框架重构本项目,技术选型方面前端为 React (CSR),后端为 NodeJS
+
+
+ )
+}
+
+export default Log;
diff --git a/src/pages/notice.tsx b/src/pages/notice.tsx
new file mode 100644
index 0000000..13f3e96
--- /dev/null
+++ b/src/pages/notice.tsx
@@ -0,0 +1,33 @@
+// React
+import React from "react";
+
+
+// UI
+import ArticleHead from "@/components/Layout/ArticleHead";
+import { Donate } from "@/components/ArticleSnippet";
+
+
+// Components
+function Notice() {
+ return (
+
+
+
+ 总则:
+ 使用者的网站需为内容合法的网站,非法网站直接进行黑名单处理。
+ 使用者不得对本服务器进行流量攻击,否则直接黑名单处理。
+ 使用时可以注明本服务及提供者(保罗),不得将本服务占为己有。
+ 如想完善充实本服务所提供的内容,欢迎在首页评论区留言,或 联系保罗!
+
+ 隐私:
+ 本服务将记录您的使用信息,包括但不限于站点、使用的 API 内容及参数。
+ 以上内容将用于作者的统计及审查,且采用 https 加密传输,将不对外完全保密。
+ 部分 API 需要使用 Cookie 记录使用信息,以优化使用体验(例如随机动漫音乐)。
+
+
+
+
+ )
+}
+
+export default Notice;