Spaces:
Sleeping

byte-vortex commited on
Commit
8c792b2
·
verified ·
1 Parent(s): 9a7deef

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. ui/renderers.py +0 -51
ui/renderers.py CHANGED
@@ -454,54 +454,3 @@ def _mystery_goal_line(active_mystery, count: int) -> str:
454
  return "**Mystery:** Every known clue is awake. Keep exploring for rare surprises."
455
  remaining = active_mystery.required_discoveries - count
456
  return f"**Mystery:** {remaining} clue discoveries until **{active_mystery.name}** — {active_mystery.clue}"
457
-
458
-
459
- import os
460
- import base64
461
-
462
- # 1. Find exactly where renderers.py lives in the system
463
- HERE = os.path.dirname(os.path.abspath(__file__))
464
-
465
- # 2. Go up one level (..) to the root, then into assets/images/Myco.png
466
- IMAGE_PATH = os.path.abspath(os.path.join(HERE, "..", "assets", "images", "Myco.png"))
467
-
468
- def myco_footer_panel() -> str:
469
- """Render a polished, low-profile footer panel featuring the glowing moon."""
470
-
471
- # Read and encode the image so Gradio doesn't block the local file
472
- img_src = ""
473
- if os.path.exists(IMAGE_PATH):
474
- with open(IMAGE_PATH, "rb") as image_file:
475
- encoded_string = base64.b64encode(image_file.read()).decode("utf-8")
476
- img_src = f"data:image/png;base64,{encoded_string}"
477
- else:
478
- print(f"WARNING: Image still not found at {IMAGE_PATH}")
479
-
480
- return f"""
481
- <div class="myco-hero footer-variant">
482
- <div class="home-moon">🌙</div>
483
- <div class="myco-footer-content">
484
- <div class="myco-mascot-badge">
485
- <span class="myco-mascot">🍄</span>
486
- <span class="eyebrow">Mystery Forest Adventure</span>
487
- </div>
488
-
489
- <div class="myco-footer-media">
490
- <img src="{img_src}" alt="Myco the mushroom companion" class="footer-hero-img" />
491
- </div>
492
-
493
- <div class="myco-footer-body">
494
- <p>Follow an AI mushroom companion through a glowing forest. Every discovery starts with Myco's intuition.</p>
495
- </div>
496
-
497
- <div class="myco-footer-nav">
498
- <a href="#play" class="footer-link">Play Game</a>
499
- <a href="#lore" class="footer-link">Forest Lore</a>
500
- <a href="#community" class="footer-link">Community</a>
501
- </div>
502
-
503
- <p class="myco-copyright"><span style="font-size: 0.8em;">&copy; 2026 Myco Game. Built with intuition.</span></p>
504
- </div>
505
- </div>
506
- """
507
-
 
454
  return "**Mystery:** Every known clue is awake. Keep exploring for rare surprises."
455
  remaining = active_mystery.required_discoveries - count
456
  return f"**Mystery:** {remaining} clue discoveries until **{active_mystery.name}** — {active_mystery.clue}"