You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
4.9 KiB
HTML
203 lines
4.9 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<title>{{ title }} - API Docs</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
:root {
|
|
color-scheme: light;
|
|
--bg: #f7f8fb;
|
|
--panel: #ffffff;
|
|
--ink: #111827;
|
|
--muted: #5b6472;
|
|
--line: #d9dee7;
|
|
--line-strong: #aab4c3;
|
|
--blue: #2563eb;
|
|
--blue-ink: #173ea7;
|
|
--green: #16a34a;
|
|
--green-ink: #116134;
|
|
--orange: #ea580c;
|
|
--orange-ink: #9a3412;
|
|
--shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
|
|
}
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "Aptos", "Segoe UI", sans-serif;
|
|
color: var(--ink);
|
|
background:
|
|
linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
|
|
linear-gradient(180deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
|
|
var(--bg);
|
|
background-size: 40px 40px;
|
|
}
|
|
main {
|
|
width: min(920px, calc(100vw - 40px));
|
|
min-height: 100vh;
|
|
margin: 0 auto;
|
|
display: grid;
|
|
align-content: center;
|
|
gap: 28px;
|
|
padding: 56px 0;
|
|
}
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 34px;
|
|
line-height: 1.15;
|
|
font-weight: 680;
|
|
text-wrap: pretty;
|
|
}
|
|
.eyebrow {
|
|
display: inline-flex;
|
|
width: fit-content;
|
|
align-items: center;
|
|
min-height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
background: rgba(255, 255, 255, 0.72);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
.intro {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
.choices {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
|
|
gap: 18px;
|
|
}
|
|
.doc-option {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
align-items: center;
|
|
gap: 18px;
|
|
min-height: 132px;
|
|
padding: 24px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
|
|
transition:
|
|
border-color 180ms ease,
|
|
box-shadow 180ms ease,
|
|
background-color 180ms ease;
|
|
}
|
|
.doc-option:hover {
|
|
border-color: var(--line-strong);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.doc-option:focus-visible {
|
|
outline: 3px solid rgba(37, 99, 235, 0.22);
|
|
outline-offset: 3px;
|
|
}
|
|
.mark {
|
|
display: grid;
|
|
width: 52px;
|
|
height: 52px;
|
|
place-items: center;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 750;
|
|
}
|
|
.swagger .mark {
|
|
color: var(--green-ink);
|
|
background: #dcfce7;
|
|
}
|
|
.scalar .mark {
|
|
color: var(--blue-ink);
|
|
background: #dbeafe;
|
|
}
|
|
.redoc .mark {
|
|
color: var(--orange-ink);
|
|
background: #ffedd5;
|
|
}
|
|
.copy {
|
|
display: grid;
|
|
gap: 7px;
|
|
}
|
|
.copy strong {
|
|
display: block;
|
|
font-size: 21px;
|
|
line-height: 1.2;
|
|
}
|
|
.copy span {
|
|
color: var(--muted);
|
|
font-size: 15px;
|
|
line-height: 1.55;
|
|
text-wrap: pretty;
|
|
}
|
|
.arrow {
|
|
display: grid;
|
|
width: 34px;
|
|
height: 34px;
|
|
place-items: center;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
transition:
|
|
border-color 180ms ease,
|
|
color 180ms ease,
|
|
background-color 180ms ease;
|
|
}
|
|
.doc-option:hover .arrow {
|
|
border-color: transparent;
|
|
color: #fff;
|
|
background: #111827;
|
|
}
|
|
.arrow svg {
|
|
width: 17px;
|
|
height: 17px;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
fill: none;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
@media (max-width: 700px) {
|
|
main {
|
|
width: min(100vw - 28px, 920px);
|
|
padding: 34px 0;
|
|
}
|
|
h1 {
|
|
font-size: 28px;
|
|
}
|
|
.choices {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.doc-option {
|
|
min-height: 118px;
|
|
padding: 20px;
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.doc-option,
|
|
.arrow {
|
|
transition: none;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<div class="intro">
|
|
<span class="eyebrow">API Docs</span>
|
|
<h1>{{ title }}</h1>
|
|
</div>
|
|
<div class="choices">
|
|
{{ option_cards }}
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|