Paul-API-Next/src/pages/wallpaper.tsx

174 lines
6.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// React
import React from "react";
// UI
import HelpExample from "../images/help/wallpaper-pr-example.jpg";
import HelpRequire from "../images/help/wallpaper-pr-require.jpg";
// Components
function Wallpaper() {
return (
<main>
<section className="header">
<h1></h1>
<h2> Single </h2>
</section>
<article className="post">
<h3></h3>
<p> API <a href="https://github.com/Dreamer-Paul/Anime-Wallpaper" target="_blank">Anime-Wallpaper</a> PRCommit </p>
<blockquote> API使 API Git </blockquote>
<p> PR </p>
<ul>
<li>/</li>
<li></li>
<li> 50%</li>
<li></li>
<li> <code>1920 x 1080</code> <code>.jpg</code> </li>
</ul>
<p><img src={HelpExample} style={{ border: "1px solid #ddd" }} alt="提交须知" /></p>
<p><img src={HelpRequire} alt="提交须知" /></p>
<p>Commit </p>
<pre><code>Add 5 Images
</code></pre>
<h3>使</h3>
<p> <code>https://api.paugram.com/wallpaper/</code> 可自动跳转到对应的壁纸(由于运营成本限制,目前本 API 借助 图床/CDN 等平台托管图片。欢迎给予资源赞助~</p>
<p>使 API <a href="https://api.paugram.com/notice"></a></p>
<p> API </p>
<h3></h3>
<div className="ks-table text-nowrap">
<table>
<thead>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>source</td>
<td><code>sm</code> <code>cp</code> <code>sina</code> <code>paul</code></td>
<td> sm.ms </td>
</tr>
<tr>
<td>category</td>
<td><code>us</code> <code>jp</code> <code>cn</code></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<h3></h3>
<div className="ks-table text-nowrap">
<table>
<thead>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>sm</td>
<td><em className="green"></em></td>
<td>sm.ms 访</td>
</tr>
<tr>
<td>gt</td>
<td><em className="green"></em></td>
<td>Gitee Pages </td>
</tr>
<tr>
<td>sina</td>
<td><em className="green"></em></td>
<td></td>
</tr>
<tr>
<td>gh</td>
<td><em className="green"></em></td>
<td> GitHub JSDelivr </td>
</tr>
</tbody>
</table>
</div>
<h3></h3>
<div className="ks-table text-nowrap">
<table>
<thead>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><em className="red"></em></td>
<td></td>
</tr>
<tr>
<td>2</td>
<td><em className="red"></em></td>
<td></td>
</tr>
<tr>
<td>3</td>
<td><em className="red"></em></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<h3></h3>
<p>使 sm.ms </p>
<pre><code>https://api.paugram.com/wallpaper/?source=sm</code></pre>
<p>使</p>
<pre><code>https://api.paugram.com/wallpaper/?source=sina&category=us</code></pre>
<p>使 API</p>
<pre className="language-css"><code>{`body{
background: url("https://api.paugram.com/wallpaper/") center/cover no-repeat;
}`}
</code></pre>
<p>使 API</p>
<pre className="language-css"><code>{`body:before{
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: .3;
z-index: -1;
content: "";
position: fixed;
background: url(https://api.paugram.com/wallpaper/) center/cover;
}`}
</code></pre>
<h3></h3>
<p>使 <code>img</code> </p>
<p><img src={`//${location.host}/api/wallpaper`} style={{ border: "1px solid #ddd" }} alt="示例" /></p>
<h3></h3>
<ul>
<li><a href="https://sm.ms" rel="nofollow" target="_blank">SM.MS</a></li>
<li><a href="https://github.com/Dreamer-Paul/Anime-Wallpaper" rel="nofollow" target="_blank">GitHub</a></li>
<li><a href="https://www.jsdelivr.com" rel="nofollow" target="_blank">JSDelivr</a></li>
<li><a href="https://gitee.com" rel="nofollow" target="_blank">Gitee Pages</a></li>
</ul>
</article>
</main>
)
}
export default Wallpaper;