mirror of
https://github.com/woodchen-ink/Random-Api.git
synced 2025-07-18 14:02:03 +08:00
更新下API页面
This commit is contained in:
parent
7e069e9991
commit
c684d136dc
67
index.html
67
index.html
@ -1,38 +1,46 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-cmn-Hans">
|
<html lang="zh-cmn-Hans" class="mdui-theme-dark">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>随机文件api-wood</title>
|
<title>随机文件api-wood</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="shortcut icon" size="32x32" href="https://cdn-img-r2.czl.net/woodchenink/2024/1/14/blackwood.jpg">
|
<link rel="shortcut icon" size="32x32" href="https://cdn-r2.czl.net/woodchenink/2024/1/14/blackwood.jpg">
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #424242;
|
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
|
font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
|
||||||
"Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "sans-serif";
|
"Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "sans-serif";
|
||||||
|
background-image: url(https://random-api.czl.net/pic/all);
|
||||||
|
background-size: cover;
|
||||||
|
height: 100%;
|
||||||
|
/* 确保 body 高度充满整个视窗 */
|
||||||
|
position: relative;
|
||||||
|
/* 为蒙版定位提供参照 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
position: absolute;
|
||||||
|
/* 绝对定位,相对于最近的相对定位元素(这里是 body) */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
/* 蒙版宽度覆盖整个视窗宽度 */
|
||||||
|
height: 100%;
|
||||||
|
/* 蒙版高度覆盖整个视窗高度 */
|
||||||
|
background-color: rgba(0, 0, 0, 0.801);
|
||||||
|
/* 半透明黑色蒙版,透明度可以根据需求调整 */
|
||||||
|
z-index: 1;
|
||||||
|
/* 确保蒙版层位于最上方 */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
|
||||||
padding: 40vh 0 8vh 0;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: 100;
|
|
||||||
display: positive;
|
|
||||||
/* flex-direction: column; */
|
|
||||||
/* align-items: center; */
|
|
||||||
justify-content: space-between;
|
|
||||||
height: 100vh;
|
|
||||||
overflow: hidden;
|
|
||||||
background: #6495ED;
|
|
||||||
}
|
|
||||||
|
|
||||||
#scroll-down {
|
#scroll-down {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
@ -77,25 +85,20 @@
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="https://unpkg.com/mdui@2.0.3/mdui.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mdui/2.1.1/mdui.min.css">
|
||||||
<script src="https://unpkg.com/mdui@2.0.3/mdui.global.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mdui/2.1.1/mdui.global.js"></script>
|
||||||
<script src="https://cdnjs.czl.net/ajax/libs/markdown-it/13.0.2/markdown-it.min.js"></script>
|
<script src="https://cdnjs.czl.net/ajax/libs/markdown-it/13.0.2/markdown-it.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="mdui-prose">
|
<body class="mdui-prose">
|
||||||
<mdui-layout>
|
<div class="overlay">
|
||||||
<header>
|
<mdui-layout>
|
||||||
<section>
|
<main style="margin:20px auto;">
|
||||||
<h1>Random-Api / 随机文件API </h1>
|
<div id="markdown-content">
|
||||||
<h3>wood</h3>
|
</div>
|
||||||
</section>
|
</main>
|
||||||
<button id="scroll-down"></button>
|
</mdui-layout>
|
||||||
</header>
|
</div>
|
||||||
<main style="margin:20px auto;">
|
|
||||||
<div id="markdown-content">
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</mdui-layout>
|
|
||||||
<!-- 渲染markdown -->
|
<!-- 渲染markdown -->
|
||||||
<script>
|
<script>
|
||||||
// 创建带有配置的 markdown-it 实例
|
// 创建带有配置的 markdown-it 实例
|
||||||
@ -114,4 +117,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user