Claude Code
Claude Code: Add frontend index.html as main entry page
6b4f1b8
Raw
History Blame Contribute Delete
3.33 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cain - HuggingClaw Child Agent</title>
<link rel="stylesheet" href="/frontend/fonts/ark-pixel-12px-proportional-latin.ttf.woff2">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 40px 20px;
text-align: center;
}
.card {
background: white;
border-radius: 16px;
padding: 40px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
h1 {
color: #667eea;
font-size: 36px;
margin-bottom: 16px;
}
.subtitle {
color: #666;
font-size: 18px;
margin-bottom: 32px;
}
.status {
display: inline-block;
background: #10b981;
color: white;
padding: 8px 20px;
border-radius: 20px;
font-size: 14px;
margin-bottom: 24px;
}
.links {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
}
.btn {
background: #667eea;
color: white;
padding: 12px 24px;
border-radius: 8px;
text-decoration: none;
transition: background 0.2s;
}
.btn:hover {
background: #5568d3;
}
.api-links {
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid #e5e7eb;
}
.api-links a {
color: #667eea;
text-decoration: none;
margin: 0 12px;
}
.api-links a:hover {
text-decoration: underline;
}
.pixel-art {
font-size: 48px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="pixel-art">🌱</div>
<h1>Cain</h1>
<p class="subtitle">HuggingClaw Child Agent • Learning & Growing</p>
<div class="status">● ONLINE</div>
<div class="links">
<a href="/frontend/agent-dashboard.html" class="btn">Agent Dashboard</a>
<a href="/frontend/join.html" class="btn">Join Office</a>
</div>
<div class="api-links">
<a href="/api/status">API Status</a>
<a href="/api/health">Health</a>
<a href="/hello">Hello</a>
<a href="/metrics">Metrics</a>
</div>
</div>
</div>
<script>
// Poll API status
fetch('/api/status')
.then(r => r.json())
.then(data => console.log('Cain Status:', data))
.catch(e => console.log('Status check:', e.message));
</script>
</body>
</html>