Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- 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 |
-
|
| 333 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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",
|