byte-vortex commited on
Commit
ab92f8e
·
verified ·
1 Parent(s): 78ceed6

Deploy Myco from CI

Browse files
Files changed (3) hide show
  1. tests/test_myco_core.py +3 -0
  2. ui/renderers.py +4 -2
  3. ui/styles.py +36 -2
tests/test_myco_core.py CHANGED
@@ -71,6 +71,9 @@ class MycoCoreTests(unittest.TestCase):
71
  self.assertIn("🌳", home)
72
  self.assertIn("✨", home)
73
  self.assertIn("✦", home)
 
 
 
74
 
75
  def test_hf_default_model_is_llama_8b(self):
76
  self.assertEqual(DEFAULT_HF_MODEL_ID, "meta-llama/Llama-3.1-8B-Instruct")
 
71
  self.assertIn("🌳", home)
72
  self.assertIn("✨", home)
73
  self.assertIn("✦", home)
74
+ self.assertIn("✧", home)
75
+ self.assertIn("The Milky Way is awake", home)
76
+ self.assertIn("home-whisper", home)
77
 
78
  def test_hf_default_model_is_llama_8b(self):
79
  self.assertEqual(DEFAULT_HF_MODEL_ID, "meta-llama/Llama-3.1-8B-Instruct")
ui/renderers.py CHANGED
@@ -31,11 +31,12 @@ def hero_markdown() -> str:
31
  def home_forest_markdown() -> str:
32
  """Render the original non-game Home forest postcard."""
33
  return """
34
- <div class="home-forest-postcard" aria-label="Original Myco forest postcard">
35
  <div class="home-sky">
36
  <span class="home-milky-way" title="Milky Way">🌌</span>
37
  <span class="home-star star-one">✨</span>
38
  <span class="home-star star-two">✦</span>
 
39
  </div>
40
  <div class="home-forest-floor">
41
  <span class="home-tree left">🌲</span>
@@ -45,7 +46,8 @@ def home_forest_markdown() -> str:
45
  <span class="home-grass grass-right">🍃</span>
46
  <span class="home-tree right">🌳</span>
47
  </div>
48
- <p>Myco waits under the Milky Way beside a brown mushroom. Open Play when you are ready to explore.</p>
 
49
  </div>
50
  """
51
 
 
31
  def home_forest_markdown() -> str:
32
  """Render the original non-game Home forest postcard."""
33
  return """
34
+ <div class="home-forest-postcard" aria-label="Animated Myco forest postcard">
35
  <div class="home-sky">
36
  <span class="home-milky-way" title="Milky Way">🌌</span>
37
  <span class="home-star star-one">✨</span>
38
  <span class="home-star star-two">✦</span>
39
+ <span class="home-star star-three">✧</span>
40
  </div>
41
  <div class="home-forest-floor">
42
  <span class="home-tree left">🌲</span>
 
46
  <span class="home-grass grass-right">🍃</span>
47
  <span class="home-tree right">🌳</span>
48
  </div>
49
+ <p><strong>The Milky Way is awake.</strong> Myco hears a brown mushroom whispering your first clue.</p>
50
+ <span class="home-whisper">“Tap Play. Let’s find what the forest is hiding.”</span>
51
  </div>
52
  """
53
 
ui/styles.py CHANGED
@@ -152,8 +152,8 @@ APP_CSS = """
152
  padding: 1.25rem;
153
  border-radius: 28px;
154
  background:
155
- radial-gradient(circle at 50% 18%, rgba(190, 205, 255, 0.34), transparent 9rem),
156
- radial-gradient(circle at 50% 76%, rgba(255, 235, 176, 0.28), transparent 10rem),
157
  linear-gradient(180deg, #121f4f 0%, #163a46 38%, #245c3c 70%, #523b20 100%);
158
  border: 1px solid rgba(255, 244, 190, 0.34);
159
  box-shadow: 0 18px 48px rgba(8, 30, 20, 0.24);
@@ -171,11 +171,13 @@ APP_CSS = """
171
  .home-milky-way {
172
  display: inline-block;
173
  font-size: clamp(3rem, 9vw, 5.5rem);
 
174
  filter: drop-shadow(0 0 18px rgba(201, 218, 255, 0.46));
175
  }
176
  .home-star {
177
  position: absolute;
178
  font-size: clamp(1.5rem, 4vw, 2.5rem);
 
179
  filter: drop-shadow(0 0 12px rgba(255, 251, 198, 0.75));
180
  }
181
  .home-star.star-one {
@@ -185,6 +187,12 @@ APP_CSS = """
185
  .home-star.star-two {
186
  right: 19%;
187
  top: 1.9rem;
 
 
 
 
 
 
188
  }
189
  .home-forest-floor {
190
  display: flex;
@@ -204,16 +212,42 @@ APP_CSS = """
204
  .home-myco,
205
  .home-brown-mushroom {
206
  font-size: clamp(3.4rem, 8vw, 6rem);
 
207
  filter: drop-shadow(0 14px 22px rgba(255, 225, 140, 0.22));
208
  }
209
  .home-myco {
210
  filter: drop-shadow(0 14px 24px rgba(255, 92, 92, 0.32));
211
  }
 
 
 
212
  .home-forest-postcard p {
213
  max-width: 42rem;
214
  margin: 0.9rem auto 0;
215
  font-weight: 800;
216
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
  .play-hook {
219
  margin-bottom: 1rem;
 
152
  padding: 1.25rem;
153
  border-radius: 28px;
154
  background:
155
+ radial-gradient(circle at 50% 18%, rgba(190, 205, 255, 0.38), transparent 9rem),
156
+ radial-gradient(circle at 50% 76%, rgba(255, 235, 176, 0.3), transparent 10rem),
157
  linear-gradient(180deg, #121f4f 0%, #163a46 38%, #245c3c 70%, #523b20 100%);
158
  border: 1px solid rgba(255, 244, 190, 0.34);
159
  box-shadow: 0 18px 48px rgba(8, 30, 20, 0.24);
 
171
  .home-milky-way {
172
  display: inline-block;
173
  font-size: clamp(3rem, 9vw, 5.5rem);
174
+ animation: myco-drift 7s ease-in-out infinite;
175
  filter: drop-shadow(0 0 18px rgba(201, 218, 255, 0.46));
176
  }
177
  .home-star {
178
  position: absolute;
179
  font-size: clamp(1.5rem, 4vw, 2.5rem);
180
+ animation: myco-twinkle 2.8s ease-in-out infinite;
181
  filter: drop-shadow(0 0 12px rgba(255, 251, 198, 0.75));
182
  }
183
  .home-star.star-one {
 
187
  .home-star.star-two {
188
  right: 19%;
189
  top: 1.9rem;
190
+ animation-delay: 0.8s;
191
+ }
192
+ .home-star.star-three {
193
+ left: 50%;
194
+ top: 3.4rem;
195
+ animation-delay: 1.4s;
196
  }
197
  .home-forest-floor {
198
  display: flex;
 
212
  .home-myco,
213
  .home-brown-mushroom {
214
  font-size: clamp(3.4rem, 8vw, 6rem);
215
+ animation: myco-breathe 3.2s ease-in-out infinite;
216
  filter: drop-shadow(0 14px 22px rgba(255, 225, 140, 0.22));
217
  }
218
  .home-myco {
219
  filter: drop-shadow(0 14px 24px rgba(255, 92, 92, 0.32));
220
  }
221
+ .home-brown-mushroom {
222
+ animation-delay: 0.55s;
223
+ }
224
  .home-forest-postcard p {
225
  max-width: 42rem;
226
  margin: 0.9rem auto 0;
227
  font-weight: 800;
228
  }
229
+ .home-whisper {
230
+ display: inline-block;
231
+ margin-top: 0.65rem;
232
+ padding: 0.45rem 0.75rem;
233
+ border: 1px solid rgba(255, 249, 215, 0.28);
234
+ border-radius: 999px;
235
+ background: rgba(255, 249, 215, 0.12);
236
+ color: #fff9d7 !important;
237
+ font-weight: 900;
238
+ }
239
+ @keyframes myco-drift {
240
+ 0%, 100% { transform: translateY(0) rotate(-1deg); }
241
+ 50% { transform: translateY(-0.35rem) rotate(1deg); }
242
+ }
243
+ @keyframes myco-twinkle {
244
+ 0%, 100% { opacity: 0.55; transform: scale(0.92); }
245
+ 50% { opacity: 1; transform: scale(1.12); }
246
+ }
247
+ @keyframes myco-breathe {
248
+ 0%, 100% { transform: translateY(0) scale(1); }
249
+ 50% { transform: translateY(-0.24rem) scale(1.04); }
250
+ }
251
 
252
  .play-hook {
253
  margin-bottom: 1rem;