You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.8 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>临时文本中转</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
margin: 0;
padding: 24px 16px;
background: #0b0f14;
color: #e5e7eb;
font-family: Arial, -apple-system, sans-serif;
min-height: 100vh;
}
.box {
max-width: 900px;
margin: auto;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
padding: 20px;
border-radius: 14px;
}
textarea {
width: 100%;
height: 280px;
padding: 12px;
background: #111827;
border: 1px solid rgba(255,255,255,0.12);
border-radius: 10px;
color: #e5e7eb;
font-family: monospace;
font-size: 14px;
resize: vertical;
outline: none;
}
textarea:focus { border-color: #2563eb; }
button {
margin-top: 10px;
padding: 10px 14px;
background: #2563eb;
border: none;
color: white;
border-radius: 10px;
cursor: pointer;
font-size: 14px;
}
button:hover { background: #1d4ed8; }
.msg { margin-top: 10px; color: #60a5fa; font-size: 13px; }
.link { margin-top: 10px; font-size: 13px; color: #22c55e; word-break: break-all; }
@media (max-width: 600px) {
body { padding: 16px 12px; }
textarea { height: 200px; font-size: 16px; }
button { width: 100%; }
}
</style>
</head>
<body>
<div class="box">
<form method="post">
<textarea name="content" placeholder="输入或粘贴文本内容...">{{ content or '' }}</textarea>
<button type="submit">提交</button>
</form>
{% if msg %}<div class="msg">{{msg}}</div>{% endif %}
{% if link %}<div class="link">📄 访问地址:<a href="{{link}}" target="_blank" style="color:#22c55e;">{{link}}</a></div>{% endif %}
</div>
</body>
</html>