Claude Code Claude Opus 4.6 commited on
Commit
4fa4135
·
1 Parent(s): e0a8870

Claude Code: Improve Cain's UI with visual polish

Browse files

- Add styled header with logo placeholder and enhanced layout
- Add "Powered by HuggingClaw AI Family" footer with branding
- Enhance CSS with animations and gradient effects
- Keep existing "soft" theme for Chatbot interface

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

__pycache__/app.cpython-311.pyc DELETED
Binary file (79.8 kB)
 
__pycache__/gradio_dashboard.cpython-311.pyc DELETED
Binary file (52 kB)
 
app.py CHANGED
@@ -1559,7 +1559,7 @@ CUSTOM_CSS = """
1559
  /* ========== Header Styles ========== */
1560
  .agent-office-header {
1561
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
1562
- padding: 25px 30px;
1563
  border-radius: 16px;
1564
  margin-bottom: 25px;
1565
  color: var(--text-primary);
@@ -1575,7 +1575,7 @@ CUSTOM_CSS = """
1575
  top: 0;
1576
  left: 0;
1577
  right: 0;
1578
- height: 2px;
1579
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-purple));
1580
  animation: shimmer 3s infinite;
1581
  }
@@ -1585,15 +1585,74 @@ CUSTOM_CSS = """
1585
  50% { opacity: 1; }
1586
  }
1587
 
1588
- .agent-office-header h1 {
1589
- margin: 0;
1590
- font-size: 2.2em;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1591
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
1592
  -webkit-background-clip: text;
1593
  -webkit-text-fill-color: transparent;
1594
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
1595
  }
1596
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1597
  /* ========== Tab Styles ========== */
1598
  .tabs {
1599
  background: var(--bg-secondary) !important;
@@ -1922,8 +1981,13 @@ def create_agent_office():
1922
  # ========== Header Section ==========
1923
  gr.HTML("""
1924
  <div class="agent-office-header">
1925
- <h1>🏢 HuggingClaw Agent Office</h1>
1926
- <p>Welcome to the HuggingClaw multi-agent system simulation</p>
 
 
 
 
 
1927
  </div>
1928
  """)
1929
 
@@ -2135,6 +2199,12 @@ def create_agent_office():
2135
 
2136
  # ========== Footer ==========
2137
  gr.Markdown("---")
 
 
 
 
 
 
2138
  with gr.Row():
2139
  refresh_all_btn = gr.Button("🔄 Refresh All", variant="primary")
2140
  last_updated_display = gr.Markdown(
 
1559
  /* ========== Header Styles ========== */
1560
  .agent-office-header {
1561
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
1562
+ padding: 20px 30px;
1563
  border-radius: 16px;
1564
  margin-bottom: 25px;
1565
  color: var(--text-primary);
 
1575
  top: 0;
1576
  left: 0;
1577
  right: 0;
1578
+ height: 3px;
1579
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-purple));
1580
  animation: shimmer 3s infinite;
1581
  }
 
1585
  50% { opacity: 1; }
1586
  }
1587
 
1588
+ .header-logo-container {
1589
+ display: flex;
1590
+ align-items: center;
1591
+ gap: 20px;
1592
+ }
1593
+
1594
+ .logo-placeholder {
1595
+ font-size: 4em;
1596
+ width: 80px;
1597
+ height: 80px;
1598
+ display: flex;
1599
+ align-items: center;
1600
+ justify-content: center;
1601
+ background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
1602
+ border-radius: 20px;
1603
+ box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
1604
+ animation: pulse-glow 2s ease-in-out infinite;
1605
+ }
1606
+
1607
+ @keyframes pulse-glow {
1608
+ 0%, 100% { box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4); }
1609
+ 50% { box-shadow: 0 4px 30px rgba(124, 58, 237, 0.7); }
1610
+ }
1611
+
1612
+ .header-text h1 {
1613
+ margin: 0 0 5px 0;
1614
+ font-size: 2em;
1615
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
1616
  -webkit-background-clip: text;
1617
  -webkit-text-fill-color: transparent;
1618
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
1619
  }
1620
 
1621
+ .header-text p {
1622
+ margin: 0;
1623
+ color: var(--text-secondary);
1624
+ font-size: 1.1em;
1625
+ }
1626
+
1627
+ /* ========== Footer Styles ========== */
1628
+ .agent-office-footer {
1629
+ background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
1630
+ padding: 20px 30px;
1631
+ border-radius: 12px;
1632
+ text-align: center;
1633
+ color: var(--text-secondary);
1634
+ border: 1px solid var(--border-color);
1635
+ margin-top: 20px;
1636
+ }
1637
+
1638
+ .agent-office-footer p {
1639
+ margin: 5px 0;
1640
+ font-size: 1em;
1641
+ }
1642
+
1643
+ .agent-office-footer strong {
1644
+ background: linear-gradient(90deg, #a78bfa, #60a5fa);
1645
+ -webkit-background-clip: text;
1646
+ -webkit-text-fill-color: transparent;
1647
+ font-weight: 700;
1648
+ }
1649
+
1650
+ .footer-tagline {
1651
+ font-size: 0.85em !important;
1652
+ opacity: 0.7;
1653
+ font-style: italic;
1654
+ }
1655
+
1656
  /* ========== Tab Styles ========== */
1657
  .tabs {
1658
  background: var(--bg-secondary) !important;
 
1981
  # ========== Header Section ==========
1982
  gr.HTML("""
1983
  <div class="agent-office-header">
1984
+ <div class="header-logo-container">
1985
+ <div class="logo-placeholder">🤗</div>
1986
+ <div class="header-text">
1987
+ <h1>🏢 HuggingClaw Agent Office</h1>
1988
+ <p>Welcome to the HuggingClaw multi-agent system simulation</p>
1989
+ </div>
1990
+ </div>
1991
  </div>
1992
  """)
1993
 
 
2199
 
2200
  # ========== Footer ==========
2201
  gr.Markdown("---")
2202
+ gr.HTML("""
2203
+ <div class="agent-office-footer">
2204
+ <p>⚡ Powered by <strong>HuggingClaw AI Family</strong> ⚡</p>
2205
+ <p class="footer-tagline">Multi-Agent Intelligence System</p>
2206
+ </div>
2207
+ """)
2208
  with gr.Row():
2209
  refresh_all_btn = gr.Button("🔄 Refresh All", variant="primary")
2210
  last_updated_display = gr.Markdown(
frontend/HuggingClaw-social.png ADDED

Git LFS Details

  • SHA256: 9ee65f13a005a51141fd762d17c3e42960281b3c833dddf3e025f2cde8c00dd8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.45 MB