File size: 3,332 Bytes
6b4f1b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!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>