85 lines
4.6 KiB
HTML
85 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>发送私信 - lv8girl</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
:root {
|
|
--bg: #f0f7f0;
|
|
--surface: #ffffff;
|
|
--surface-light: #e8f0e8;
|
|
--border: #d0e0d0;
|
|
--text: #2c3e2c;
|
|
--text-soft: #5f6b5f;
|
|
--text-hint: #8f9f8f;
|
|
--primary: #3d9e4a;
|
|
--accent: #ffb347;
|
|
--gradient: linear-gradient(135deg, #3d9e4a, #5a9cff);
|
|
}
|
|
body.dark-mode {
|
|
--bg: #1a1e1a;
|
|
--surface: #1e261e;
|
|
--surface-light: #2a3a2a;
|
|
--border: #2a3a2a;
|
|
--text: #e0e8e0;
|
|
--text-soft: #b0bcb0;
|
|
--text-hint: #8a958a;
|
|
--primary: #6b8e6b;
|
|
--accent: #ffb347;
|
|
}
|
|
body { background: var(--bg); color: var(--text); font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; transition: background 0.3s, color 0.3s; }
|
|
.wrapper { max-width: 600px; width: 100%; }
|
|
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
|
|
.logo { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
|
|
.logo span { font-size: 0.9rem; background: var(--accent); color: var(--surface); padding: 4px 12px; border-radius: 30px; margin-left: 10px; -webkit-text-fill-color: var(--surface); }
|
|
.theme-toggle { background: var(--surface-light); border: none; color: var(--text); font-size: 1.3rem; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
|
|
.theme-toggle:hover { background: var(--accent); color: var(--surface); }
|
|
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 30px 25px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); }
|
|
.card h2 { text-align: center; margin-bottom: 25px; color: var(--accent); font-weight: 600; }
|
|
.error-message { background: #ff6b6b; color: white; padding: 10px; border-radius: 8px; margin-bottom: 20px; }
|
|
.success-message { background: var(--primary); color: white; padding: 10px; border-radius: 8px; margin-bottom: 20px; }
|
|
.form-group { margin-bottom: 20px; }
|
|
label { display: block; margin-bottom: 8px; color: var(--text-soft); }
|
|
textarea { width: 100%; padding: 12px; background: var(--surface-light); border: 1px solid var(--border); border-radius: 12px; color: var(--text); min-height: 150px; resize: vertical; font-size: 1rem; }
|
|
.btn { background: var(--gradient); border: none; border-radius: 40px; padding: 12px 30px; color: white; font-weight: 600; cursor: pointer; transition: 0.2s; width: 100%; }
|
|
.btn:hover { transform: scale(1.02); }
|
|
.footer-links { margin-top: 20px; text-align: center; }
|
|
.footer-links a { color: var(--text-hint); text-decoration: none; margin: 0 10px; }
|
|
.footer-links a:hover { color: var(--accent); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<div class="header">
|
|
<div class="logo">lv8girl<span>绿坝娘</span></div>
|
|
<button class="theme-toggle" id="themeToggle">🌓</button>
|
|
</div>
|
|
<div class="card">
|
|
<h2>发送私信给 {{.Receiver.Username}}</h2>
|
|
{{if .Error}}<div class="error-message">{{.Error}}</div>{{end}}
|
|
{{if .Success}}<div class="success-message">{{.Success}}</div>{{end}}
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<label>内容</label>
|
|
<textarea name="content" placeholder="请输入私信内容..."></textarea>
|
|
</div>
|
|
<button type="submit" class="btn">发送</button>
|
|
</form>
|
|
<div class="footer-links">
|
|
<a href="/">返回首页</a>
|
|
<a href="/messages">私信列表</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
const themeToggle = document.getElementById('themeToggle');
|
|
themeToggle.addEventListener('click', () => {
|
|
document.body.classList.toggle('dark-mode');
|
|
themeToggle.textContent = document.body.classList.contains('dark-mode') ? '☀️' : '🌓';
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|