Feat: Add Pages & Footer

增加约定和维护记录页面
This commit is contained in:
奇趣保罗 2022-04-16 23:27:08 +08:00
parent 4d9788ac01
commit 0109edb2a5
7 changed files with 123 additions and 13 deletions

View File

@ -11,8 +11,8 @@ export const About = () => {
<p> API 便 <a href="https://github.com/Dreamer-Paul/Single" target="_blank">Single</a> 使 2018 4 PHP </p>
<p> PHP CSS JS SSR </p>
<ul>
<li>CSS + Vanilla JS</li>
<li>PHP</li>
<li>React (CSR)</li>
<li>MidwayJS (NodeJS)</li>
<li>MariaDB</li>
<li>Redis</li>
</ul>

View File

@ -0,0 +1,29 @@
// React
import React from "react";
// UI
import { Link } from "react-router-dom";
// Components
function Footer() {
return (
<footer>
<div className="server-flag" title="你正在使用来自洛杉矶节点的服务">LA</div>
<div className="row s">
<div className="col-m-6 left to-center">
<p>© {new Date().getFullYear()} <a href="https://paul.ren" target="_blank">Dreamer-Paul</a>.</p>
</div>
<div className="col-m-6 right to-center">
<p className="links">
<Link to="/notice">使</Link>
<Link to="/log"></Link>
</p>
</div>
</div>
</footer>
)
}
export default Footer;

View File

@ -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;

View File

@ -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 (
<Router>
<Aside />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/notice" element={<Notice />} />
<Route path="/log" element={<Log />} />
<Route path="/netease" element={<Netease />} />
<Route path="/wallpaper" element={<Wallpaper />} />
<Route path="/acgm" element={<ACGM />} />
<Route path="/bing" element={<Bing />} />
<Route path="*" element={<NoMatch />} />
</Routes>
<Footer />
</Router>
);
}

View File

@ -53,20 +53,14 @@ function Index() {
<p> Kico Player 使</p>
</Link>
</div>
{/* <div className="col-6 col-m-4">
<a className="box second" href="javascript:ks.notice('由于经费和资源问题,暂不考虑公开,求赞助!', {time: 2000, color: 'yellow'})">
<h3><i className="fa fa-heart"></i></h3>
<p> L2D </p>
</a>
</div> */}
<div className="col-6 col-m-4">
<Link className="box third" to="/wallpaper">
<Link className="box second" to="/wallpaper">
<h3><i className="fa fa-photo"></i></h3>
<p> Single </p>
</Link>
</div>
<div className="col-6 col-m-4">
<Link className="box fourth" to="/acgm">
<Link className="box third" to="/acgm">
<h3><i className="fa fa-headphones"></i></h3>
<p></p>
</Link>
@ -78,13 +72,13 @@ function Index() {
</Link>
</div> */}
<div className="col-6 col-m-4">
<Link className="box sixth" to="/bili">
<Link className="box fourth" to="/bili">
<h3><i className="fa fa-film"></i></h3>
<p> B </p>
</Link>
</div>
<div className="col-6 col-m-4">
<Link className="box seventh" to="/bing">
<Link className="box fifth" to="/bing">
<h3><i className="fa fa-gift"></i></h3>
<p>使便</p>
</Link>

29
src/pages/log.tsx Normal file
View File

@ -0,0 +1,29 @@
// React
import React from "react";
// UI
import ArticleHead from "@/components/Layout/ArticleHead";
// Components
function Log() {
return (
<main>
<ArticleHead title="更新记录" desc="本项目的维护及更新记录" />
<article className="post">
<h3>2022.4.13</h3>
<p> API PrismJS </p>
<p> API API </p>
<h3>2022.4.12</h3>
<p> API</p>
<h3>2022.4.10</h3>
<p>使 MidwayJS React (CSR) NodeJS</p>
</article>
</main>
)
}
export default Log;

33
src/pages/notice.tsx Normal file
View File

@ -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 (
<main>
<ArticleHead title="使用约定" desc="使用此服务请遵守我的约定喔" />
<article className="post">
<h3></h3>
<p>使</p>
<p>使</p>
<p>使</p>
<p> <a href="https://paugram.com/about.html" target="_blank"></a></p>
<h3></h3>
<p>使使 API </p>
<p> <code>https</code> </p>
<p> API 使 <code>Cookie</code> 使使</p>
<Donate />
</article>
</main>
)
}
export default Notice;