Spaces:
Running
Running
Upload 9 files
Browse files- src/views/StudentView.js +11 -12
src/views/StudentView.js
CHANGED
|
@@ -215,7 +215,7 @@ export async function renderStudentView() {
|
|
| 215 |
</div>
|
| 216 |
</div>
|
| 217 |
|
| 218 |
-
<!--Evolution Prompt--
|
| 219 |
${canEvolve ? `
|
| 220 |
<div id="evolution-prompt" class="absolute top-full mt-2 pointer-events-auto animate-bounce z-50">
|
| 221 |
<div class="flex flex-col items-center">
|
|
@@ -228,10 +228,9 @@ export async function renderStudentView() {
|
|
| 228 |
</button>
|
| 229 |
</div>
|
| 230 |
</div>
|
| 231 |
-
` : ''
|
| 232 |
-
}
|
| 233 |
|
| 234 |
-
<
|
| 235 |
<div class="opacity-0 group-hover:opacity-100 transition-opacity duration-300 bg-gray-900/90 backdrop-blur text-xs text-slate-300 p-3 rounded-xl border border-slate-700 mt-6 text-left pointer-events-auto shadow-2xl min-w-[120px]">
|
| 236 |
<div class="font-bold text-white text-sm mb-1 text-center border-b border-gray-700 pb-1">${monster.name}</div>
|
| 237 |
<div class="space-y-1 mt-1">
|
|
@@ -240,20 +239,20 @@ export async function renderStudentView() {
|
|
| 240 |
<div class="flex justify-between"><span>⚔️ 任務:</span> <span class="text-yellow-400 font-bold">${totalCompleted}</span></div>
|
| 241 |
</div>
|
| 242 |
</div>
|
| 243 |
-
</div
|
| 244 |
|
| 245 |
<style>
|
| 246 |
@keyframes breathe {
|
| 247 |
-
0
|
| 248 |
-
50% {transform: translateY(-3px); filter: brightness(1.1); }
|
| 249 |
}
|
| 250 |
@keyframes walk-float {
|
| 251 |
-
0
|
| 252 |
-
25% {transform: translateX(-10px) rotate(-2deg) scale(${currentScale}); }
|
| 253 |
-
|
| 254 |
}
|
| 255 |
</style>
|
| 256 |
-
|
| 257 |
};
|
| 258 |
|
| 259 |
// Inject Initial Monster UI
|
|
@@ -290,7 +289,7 @@ export async function renderStudentView() {
|
|
| 290 |
|
| 291 |
// Accordion Layout
|
| 292 |
return `
|
| 293 |
-
|
| 294 |
<header class="flex justify-end items-center mb-6 sticky top-0 bg-slate-900/95 backdrop-blur z-20 py-4 px-2 -mx-2 border-b border-gray-800">
|
| 295 |
<div class="flex flex-col items-end">
|
| 296 |
<div class="flex items-center space-x-2">
|
|
|
|
| 215 |
</div>
|
| 216 |
</div>
|
| 217 |
|
| 218 |
+
<!-- Evolution Prompt -->
|
| 219 |
${canEvolve ? `
|
| 220 |
<div id="evolution-prompt" class="absolute top-full mt-2 pointer-events-auto animate-bounce z-50">
|
| 221 |
<div class="flex flex-col items-center">
|
|
|
|
| 228 |
</button>
|
| 229 |
</div>
|
| 230 |
</div>
|
| 231 |
+
` : ''}
|
|
|
|
| 232 |
|
| 233 |
+
<!-- Stats Tooltip -->
|
| 234 |
<div class="opacity-0 group-hover:opacity-100 transition-opacity duration-300 bg-gray-900/90 backdrop-blur text-xs text-slate-300 p-3 rounded-xl border border-slate-700 mt-6 text-left pointer-events-auto shadow-2xl min-w-[120px]">
|
| 235 |
<div class="font-bold text-white text-sm mb-1 text-center border-b border-gray-700 pb-1">${monster.name}</div>
|
| 236 |
<div class="space-y-1 mt-1">
|
|
|
|
| 239 |
<div class="flex justify-between"><span>⚔️ 任務:</span> <span class="text-yellow-400 font-bold">${totalCompleted}</span></div>
|
| 240 |
</div>
|
| 241 |
</div>
|
| 242 |
+
</div>
|
| 243 |
|
| 244 |
<style>
|
| 245 |
@keyframes breathe {
|
| 246 |
+
0%, 100% { transform: translateY(0); filter: brightness(1); }
|
| 247 |
+
50% { transform: translateY(-3px); filter: brightness(1.1); }
|
| 248 |
}
|
| 249 |
@keyframes walk-float {
|
| 250 |
+
0%, 100% { transform: translateX(0) scale(${currentScale}); }
|
| 251 |
+
25% { transform: translateX(-10px) rotate(-2deg) scale(${currentScale}); }
|
| 252 |
+
75% { transform: translateX(10px) rotate(2deg) scale(${currentScale}); }
|
| 253 |
}
|
| 254 |
</style>
|
| 255 |
+
`;
|
| 256 |
};
|
| 257 |
|
| 258 |
// Inject Initial Monster UI
|
|
|
|
| 289 |
|
| 290 |
// Accordion Layout
|
| 291 |
return `
|
| 292 |
+
<div class="min-h-screen p-4 pb-32 max-w-md mx-auto sm:max-w-4xl pt-24 sm:pt-4">
|
| 293 |
<header class="flex justify-end items-center mb-6 sticky top-0 bg-slate-900/95 backdrop-blur z-20 py-4 px-2 -mx-2 border-b border-gray-800">
|
| 294 |
<div class="flex flex-col items-end">
|
| 295 |
<div class="flex items-center space-x-2">
|