Njap-png commited on
Commit
dfd0e87
路
1 Parent(s): b11bc12

Restore HUD styling across integrated controls

Browse files
Files changed (1) hide show
  1. app.py +38 -16
app.py CHANGED
@@ -386,14 +386,45 @@ def chat_fn(message, history):
386
  # ---------- UI ----------
387
  PARTICLE_HTML = r"""
388
  <style>
389
- body, .gradio-container { background: #020617 !important; }
 
 
390
  #agron-bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
391
- .gradio-container { position: relative; z-index: 1; background: transparent !important; }
392
- .agron-card { background: rgba(8, 20, 40, 0.55) !important; border: 1px solid rgba(34, 211, 238, 0.35) !important; border-radius: 14px !important; backdrop-filter: blur(6px); box-shadow: 0 0 24px rgba(34,211,238,0.15); }
393
- .agron-title { color: #67e8f9; text-shadow: 0 0 18px rgba(34,211,238,0.8); font-family: "Orbitron", "Segoe UI", sans-serif; letter-spacing: 2px; text-align: center; margin-bottom: 4px; }
394
- .agron-sub { color: #a5f3fc; text-align: center; font-size: 12px; opacity: 0.8; margin-bottom: 12px; }
395
- .status-box textarea { color: #67e8f9 !important; background: rgba(2, 6, 23, 0.6) !important; }
396
- footer { display: none !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
  </style>
398
  <canvas id="agron-bg-canvas"></canvas>
399
  """
@@ -1072,15 +1103,6 @@ with gr.Blocks(title="Agron Neural Interface") as demo:
1072
  gr.HTML(PARTICLE_HTML, js_on_load=PARTICLE_JS)
1073
  gr.Markdown("<h1 class='agron-title'>AGR脴N NEURAL INTERFACE</h1>", elem_classes="agron-card")
1074
  gr.Markdown("<div class='agron-sub'>Self-improving multi-agent core 路 particles = live network 路 learning from every exchange</div>")
1075
- # Full-page AGR脴N HUD dashboard
1076
- try:
1077
- import base64 as _b64
1078
- _dash_html = open(os.path.join(ROOT, "agron_dashboard.html")).read()
1079
- _dash_b64 = _b64.b64encode(_dash_html.encode()).decode()
1080
- gr.HTML(f'<iframe src="data:text/html;base64,{_dash_b64}" style="width:100%;height:92vh;border:1px solid rgba(34,211,238,0.35);border-radius:12px;" sandbox="allow-scripts allow-same-origin allow-forms"></iframe>')
1081
- except Exception as e:
1082
- gr.Markdown(f"Dashboard not available: {e}")
1083
-
1084
  with gr.Row():
1085
  with gr.Column(scale=1, elem_classes="agron-card"):
1086
  gr.Markdown("<h3 class='agron-title'>SYSTEM</h3>")
 
386
  # ---------- UI ----------
387
  PARTICLE_HTML = r"""
388
  <style>
389
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=VT323&display=swap');
390
+ html, body { margin: 0 !important; height: 100vh !important; overflow: hidden !important; background: radial-gradient(1200px 800px at 50% 40%, #0a1a3a 0%, #020617 70%) !important; color: #e2e8f0 !important; font-family: "Segoe UI", "Orbitron", monospace !important; }
391
+ body, .gradio-container, .app { background: transparent !important; position: relative; z-index: 1; }
392
  #agron-bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
393
+ .gradio-container {
394
+ max-width: 100vw !important; height: 100vh !important; padding: 10px 14px !important; gap: 10px !important;
395
+ border: 1px solid rgba(34, 211, 238, 0.4) !important;
396
+ box-shadow: 0 0 40px rgba(34,211,238,0.25), inset 0 0 60px rgba(34,211,238,0.05) !important;
397
+ }
398
+ .gradio-container::before {
399
+ content: "AGR脴N 路 NEURAL COMMAND HUD";
400
+ display: block; width: 100%; color: #22d3ee; text-shadow: 0 0 18px rgba(34,211,238,0.85);
401
+ font-family: "Orbitron", monospace; letter-spacing: 4px; font-size: 22px; font-weight: 700; text-align: center; padding-bottom: 6px;
402
+ }
403
+ body::after {
404
+ content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
405
+ background: repeating-linear-gradient(0deg, rgba(34,211,238,0.06) 0px, rgba(34,211,238,0.06) 1px, transparent 1px, transparent 3px);
406
+ opacity: 0.35; mix-blend-mode: overlay;
407
+ }
408
+ .agron-card {
409
+ background: rgba(8, 20, 45, 0.55) !important; border: 1px solid rgba(34, 211, 238, 0.35) !important;
410
+ border-radius: 12px !important; backdrop-filter: blur(6px); box-shadow: 0 0 18px rgba(34,211,238,0.12) !important;
411
+ padding: 8px !important;
412
+ }
413
+ .agron-card h1, .agron-card h2, .agron-card h3 { color: #67e8f9; text-shadow: 0 0 8px rgba(34,211,238,0.5); font-family: "Orbitron","Segoe UI",sans-serif; letter-spacing: 2px; }
414
+ .agron-title { color: #67e8f9; text-shadow: 0 0 18px rgba(34,211,238,0.8); font-family: "Orbitron", "Segoe UI", sans-serif; letter-spacing: 2px; text-align: center; margin-bottom: 4px; text-transform: uppercase; }
415
+ .agron-sub { color: #a5f3fc; text-align: center; font-size: 12px; opacity: 0.8; margin-bottom: 12px; letter-spacing: 1px; }
416
+ .status-box textarea { color: #67e8f9 !important; background: rgba(2, 6, 23, 0.6) !important; font-family: monospace !important; }
417
+ .gradio-container input, .gradio-container textarea, .gradio-container select, .block {
418
+ background: rgba(2, 6, 23, 0.55) !important; color: #e2e8f0 !important;
419
+ border: 1px solid rgba(34, 211, 238, 0.35) !important; border-radius: 8px !important; backdrop-filter: blur(4px) !important;
420
+ }
421
+ .gradio-container button { border: 1px solid #22d3ee !important; color: #22d3ee !important; background: rgba(34,211,238,0.08) !important; letter-spacing: 1px; text-transform: uppercase; }
422
+ .gradio-container button:hover { background: rgba(34,211,238,0.18) !important; box-shadow: 0 0 12px rgba(34,211,238,0.35); }
423
+ .gradio-container button.primary, .gradio-container button[variant="primary"] { background: rgba(34, 211, 238, 0.18) !important; font-weight: 700; }
424
+ .gr-chatbot, .chatbot { background: rgba(2, 6, 23, 0.48) !important; border: 1px solid rgba(34, 211, 238, 0.35) !important; border-radius: 10px !important; }
425
+ .markdown-text { font-family: "Segoe UI", "Orbitron", sans-serif !important; }
426
+ .gr-group, .gr-row { min-height: 0 !important; }
427
+ footer, .foot, .contain { display: none !important; }
428
  </style>
429
  <canvas id="agron-bg-canvas"></canvas>
430
  """
 
1103
  gr.HTML(PARTICLE_HTML, js_on_load=PARTICLE_JS)
1104
  gr.Markdown("<h1 class='agron-title'>AGR脴N NEURAL INTERFACE</h1>", elem_classes="agron-card")
1105
  gr.Markdown("<div class='agron-sub'>Self-improving multi-agent core 路 particles = live network 路 learning from every exchange</div>")
 
 
 
 
 
 
 
 
 
1106
  with gr.Row():
1107
  with gr.Column(scale=1, elem_classes="agron-card"):
1108
  gr.Markdown("<h3 class='agron-title'>SYSTEM</h3>")