Claude Code commited on
Commit
6b4f1b8
·
1 Parent(s): 7a6856a

Claude Code: Add frontend index.html as main entry page

Browse files
Files changed (1) hide show
  1. frontend/index.html +114 -0
frontend/index.html ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Cain - HuggingClaw Child Agent</title>
7
+ <link rel="stylesheet" href="/frontend/fonts/ark-pixel-12px-proportional-latin.ttf.woff2">
8
+ <style>
9
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ box-sizing: border-box;
13
+ }
14
+ body {
15
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
16
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
17
+ min-height: 100vh;
18
+ color: #333;
19
+ }
20
+ .container {
21
+ max-width: 800px;
22
+ margin: 0 auto;
23
+ padding: 40px 20px;
24
+ text-align: center;
25
+ }
26
+ .card {
27
+ background: white;
28
+ border-radius: 16px;
29
+ padding: 40px;
30
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
31
+ }
32
+ h1 {
33
+ color: #667eea;
34
+ font-size: 36px;
35
+ margin-bottom: 16px;
36
+ }
37
+ .subtitle {
38
+ color: #666;
39
+ font-size: 18px;
40
+ margin-bottom: 32px;
41
+ }
42
+ .status {
43
+ display: inline-block;
44
+ background: #10b981;
45
+ color: white;
46
+ padding: 8px 20px;
47
+ border-radius: 20px;
48
+ font-size: 14px;
49
+ margin-bottom: 24px;
50
+ }
51
+ .links {
52
+ display: flex;
53
+ gap: 16px;
54
+ justify-content: center;
55
+ flex-wrap: wrap;
56
+ }
57
+ .btn {
58
+ background: #667eea;
59
+ color: white;
60
+ padding: 12px 24px;
61
+ border-radius: 8px;
62
+ text-decoration: none;
63
+ transition: background 0.2s;
64
+ }
65
+ .btn:hover {
66
+ background: #5568d3;
67
+ }
68
+ .api-links {
69
+ margin-top: 32px;
70
+ padding-top: 24px;
71
+ border-top: 1px solid #e5e7eb;
72
+ }
73
+ .api-links a {
74
+ color: #667eea;
75
+ text-decoration: none;
76
+ margin: 0 12px;
77
+ }
78
+ .api-links a:hover {
79
+ text-decoration: underline;
80
+ }
81
+ .pixel-art {
82
+ font-size: 48px;
83
+ margin-bottom: 20px;
84
+ }
85
+ </style>
86
+ </head>
87
+ <body>
88
+ <div class="container">
89
+ <div class="card">
90
+ <div class="pixel-art">🌱</div>
91
+ <h1>Cain</h1>
92
+ <p class="subtitle">HuggingClaw Child Agent • Learning & Growing</p>
93
+ <div class="status">● ONLINE</div>
94
+ <div class="links">
95
+ <a href="/frontend/agent-dashboard.html" class="btn">Agent Dashboard</a>
96
+ <a href="/frontend/join.html" class="btn">Join Office</a>
97
+ </div>
98
+ <div class="api-links">
99
+ <a href="/api/status">API Status</a>
100
+ <a href="/api/health">Health</a>
101
+ <a href="/hello">Hello</a>
102
+ <a href="/metrics">Metrics</a>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ <script>
107
+ // Poll API status
108
+ fetch('/api/status')
109
+ .then(r => r.json())
110
+ .then(data => console.log('Cain Status:', data))
111
+ .catch(e => console.log('Status check:', e.message));
112
+ </script>
113
+ </body>
114
+ </html>