Files
memind/test.html
T
john 6f89a9a236 feat: add test HTML page with centered card layout and alert button
Co-authored-by: aider (deepseek/deepseek-chat) <aider@aider.chat>
2026-06-29 23:28:48 +08:00

108 lines
2.7 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>测试页面 - TKMind</title>
<style>
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.card {
background: #ffffff;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
max-width: 480px;
width: 100%;
padding: 2.5rem 2rem;
text-align: center;
transition: transform 0.2s ease;
}
.card:hover {
transform: translateY(-2px);
}
h1 {
font-size: 1.75rem;
font-weight: 600;
color: #1a1a2e;
margin-bottom: 0.5rem;
}
.subheading {
font-size: 1rem;
color: #6b7280;
margin-bottom: 1.5rem;
}
p {
font-size: 0.95rem;
line-height: 1.6;
color: #374151;
margin-bottom: 2rem;
}
.btn {
display: inline-block;
background: #4f46e5;
color: #ffffff;
border: none;
border-radius: 8px;
padding: 0.75rem 2rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
background: #4338ca;
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn:active {
transform: scale(0.97);
}
.footer {
margin-top: 2rem;
font-size: 0.8rem;
color: #9ca3af;
}
@media (max-width: 480px) {
.card {
padding: 1.5rem 1rem;
}
h1 {
font-size: 1.4rem;
}
}
</style>
</head>
<body>
<div class="card">
<h1>Hello, John! 👋</h1>
<div class="subheading">欢迎来到 TKMind 测试页面</div>
<p>
这是一个简洁的测试页面,用于验证 TKMind 平台的基本渲染能力。
您可以点击下方按钮触发一个简单的 JavaScript 弹窗,确认页面交互功能正常。
</p>
<button class="btn" onclick="alert('测试成功!')">点击测试</button>
<div class="footer" id="dateFooter"></div>
</div>
<script>
(function() {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0');
const day = String(now.getDate()).padStart(2, '0');
document.getElementById('dateFooter').textContent = year + '-' + month + '-' + day;
})();
</script>
</body>
</html>