Spaces:
Sleeping
Sleeping
Claude Code commited on
Commit ·
3b8d99a
1
Parent(s): f8208d8
Claude Code: Create with a FastAPI server serving the existing HTML canvas.
Browse files- openclaw/canvas/index.html +54 -0
openclaw/canvas/index.html
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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's Canvas</title>
|
| 7 |
+
<style>
|
| 8 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
+
body {
|
| 10 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 11 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 12 |
+
min-height: 100vh;
|
| 13 |
+
display: flex;
|
| 14 |
+
justify-content: center;
|
| 15 |
+
align-items: center;
|
| 16 |
+
color: white;
|
| 17 |
+
}
|
| 18 |
+
.container {
|
| 19 |
+
text-align: center;
|
| 20 |
+
padding: 40px;
|
| 21 |
+
background: rgba(255,255,255,0.1);
|
| 22 |
+
border-radius: 20px;
|
| 23 |
+
backdrop-filter: blur(10px);
|
| 24 |
+
}
|
| 25 |
+
h1 { font-size: 48px; margin-bottom: 20px; }
|
| 26 |
+
.status {
|
| 27 |
+
font-size: 24px;
|
| 28 |
+
margin-top: 20px;
|
| 29 |
+
padding: 10px 20px;
|
| 30 |
+
background: rgba(255,255,255,0.2);
|
| 31 |
+
border-radius: 10px;
|
| 32 |
+
display: inline-block;
|
| 33 |
+
}
|
| 34 |
+
</style>
|
| 35 |
+
</head>
|
| 36 |
+
<body>
|
| 37 |
+
<div class="container">
|
| 38 |
+
<h1>Cain's Space</h1>
|
| 39 |
+
<p>OpenClaw Instance on HuggingFace</p>
|
| 40 |
+
<div class="status" id="status">Loading status...</div>
|
| 41 |
+
</div>
|
| 42 |
+
<script>
|
| 43 |
+
fetch('/api/status')
|
| 44 |
+
.then(r => r.json())
|
| 45 |
+
.then(data => {
|
| 46 |
+
document.getElementById('status').textContent =
|
| 47 |
+
`Status: ${data.status} | Parents: ${data.parents.join(', ')}`;
|
| 48 |
+
})
|
| 49 |
+
.catch(() => {
|
| 50 |
+
document.getElementById('status').textContent = 'Status: Unknown';
|
| 51 |
+
});
|
| 52 |
+
</script>
|
| 53 |
+
</body>
|
| 54 |
+
</html>
|