Spaces:
Sleeping

byte-vortex commited on
Commit
261c073
ยท
verified ยท
1 Parent(s): aedf30c

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. ui/gradio_app.py +11 -25
ui/gradio_app.py CHANGED
@@ -269,29 +269,6 @@ def _safe_pos(position):
269
  x, y = position
270
  return (max(0, min(2, int(x))), max(0, min(2, int(y))))
271
 
272
- HOME_MARKDOWN = """
273
- # ๐Ÿ„ Welcome to the Myco Forest
274
-
275
- ---
276
-
277
- Myco is a tiny **AI-powered forest game**.
278
-
279
- ### ๐Ÿ—บ๏ธ Quick Navigation
280
- * **๐ŸŽฎ Play** โ€” Search for hidden mushrooms.
281
- * **๐Ÿ“– MycoDex** โ€” Review your expanding collection.
282
- * **๐Ÿงญ Guide** โ€” Get help and instructions for your journey.
283
-
284
- ---
285
-
286
- > ### ๐Ÿงญ **The Main Objective**
287
- >
288
- > Solve one mystery โ€” **why does Myco remember a forest that vanished before it was born?**
289
- >
290
- > *Follow clues until the **Impossible Mushroom** blooms inside the MycoDex.*
291
-
292
- ---
293
- """
294
-
295
  GUIDE_MARKDOWN = """
296
  ## How to play
297
 
@@ -329,8 +306,17 @@ def build_app():
329
 
330
  with gr.Tabs(selected="home") as tabs:
331
  with gr.Tab("๐Ÿ  Home", id="home"):
332
- gr.Markdown(HOME_MARKDOWN)
333
- gr.HTML(home_forest_markdown())
 
 
 
 
 
 
 
 
 
334
  start_play_button = gr.Button(
335
  "๐ŸŒฒ Enter the Forest",
336
  variant="primary",
 
269
  x, y = position
270
  return (max(0, min(2, int(x))), max(0, min(2, int(y))))
271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  GUIDE_MARKDOWN = """
273
  ## How to play
274
 
 
306
 
307
  with gr.Tabs(selected="home") as tabs:
308
  with gr.Tab("๐Ÿ  Home", id="home"):
309
+ with gr.HTML("""
310
+ <div class="myco-home-card">
311
+ <div class="myco-home-logo">๐Ÿ„ MYCO</div>
312
+ <div class="myco-home-subtitle">An AI Forest Mystery</div>
313
+ <div class="myco-home-story">
314
+ Deep beneath the canopy, mushrooms whisper secrets that should not exist.<br>
315
+ Myco remembers a forest that vanished long before it was born.<br><br>
316
+ ๐ŸŒŒ Discover rare mushrooms, unlock forgotten memories, and uncover the truth behind the <strong>Impossible Mushroom</strong>.
317
+ </div>
318
+ </div>
319
+ """)
320
  start_play_button = gr.Button(
321
  "๐ŸŒฒ Enter the Forest",
322
  variant="primary",