create a game for employees to develop their skills - Initial Deployment
Browse files- README.md +7 -5
- index.html +0 -19
- prompts.txt +49 -0
- skillsgame.html +122 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: skills
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="utf-8" />
|
| 5 |
-
<meta name="viewport" content="width=device-width" />
|
| 6 |
-
<title>My static Space</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css" />
|
| 8 |
-
</head>
|
| 9 |
-
<body>
|
| 10 |
-
<div class="card">
|
| 11 |
-
<h1>Welcome to your static Space!</h1>
|
| 12 |
-
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
| 13 |
-
<p>
|
| 14 |
-
Also don't forget to check the
|
| 15 |
-
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
| 16 |
-
</p>
|
| 17 |
-
</div>
|
| 18 |
-
</body>
|
| 19 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prompts.txt
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
singup page for students and doctors, using Glassmorphism style
|
| 2 |
+
create ice coffee website
|
| 3 |
+
remove menues, make ice fall into coffee glass
|
| 4 |
+
make ice cubes falling into a glass of coffe, make it a landing page
|
| 5 |
+
where is it?
|
| 6 |
+
add a glass of coffe or milkshake
|
| 7 |
+
let the ice cubes fill the glass and once filled let them fall on sides
|
| 8 |
+
web tech (HTML/CSS) + the right animation approach. Pick based on how realistic/interactive you want it:
|
| 9 |
+
|
| 10 |
+
Simple, high-quality hero with no interaction → Looping video
|
| 11 |
+
|
| 12 |
+
Format: MP4 (H.264) + WebM (VP9) sources (6–8s loop, <3–5 MB)
|
| 13 |
+
|
| 14 |
+
Pros: Easiest, looks most realistic (splash, bubbles)
|
| 15 |
+
|
| 16 |
+
Notes: Transparent backgrounds work only with WebM alpha (Chrome/Edge). For Safari, use a non-alpha MP4 or design around a solid/light background.
|
| 17 |
+
|
| 18 |
+
Crisp UI, vector look, lightweight → Lottie
|
| 19 |
+
|
| 20 |
+
Stack: After Effects → Bodymovin (Lottie JSON) → <lottie-player> or a React Lottie component
|
| 21 |
+
|
| 22 |
+
Pros: Tiny files, sharp on all DPIs, controllable via JS
|
| 23 |
+
|
| 24 |
+
Notes: Best for stylized/2D ice cubes, not photoreal water physics.
|
| 25 |
+
|
| 26 |
+
Interactive/physics (cubes bounce/splash on scroll/hover) → JavaScript
|
| 27 |
+
|
| 28 |
+
2D physics: Canvas + Matter.js (fast, simpler)
|
| 29 |
+
|
| 30 |
+
3D realism: Three.js (+ cannon-es for physics) or preload a GLTF with baked animation
|
| 31 |
+
|
| 32 |
+
Pros: Real interactivity
|
| 33 |
+
|
| 34 |
+
Notes: Heavier; more engineering and performance tuning.
|
| 35 |
+
|
| 36 |
+
Designer-friendly interactive vectors → Rive
|
| 37 |
+
|
| 38 |
+
Pros: Tiny, timeline + state machine interactivity
|
| 39 |
+
|
| 40 |
+
Notes: Best for stylized assets, not photoreal fluids.
|
| 41 |
+
|
| 42 |
+
My recommendation for a landing page hero (balance of quality + effort)
|
| 43 |
+
|
| 44 |
+
If you want it to look real: Pre-render a short video (Blender/C4D) of ice cubes dropping into tea/coffee → export MP4 + WebM; autoplay muted, loop, playsinline. Add a still poster image.
|
| 45 |
+
|
| 46 |
+
If you want lightweight & easily controllable (and a stylized look): Lottie.
|
| 47 |
+
|
| 48 |
+
If you later need click/scroll interactions (e.g., cubes fall as user scrolls), layer GSAP (ScrollTrigger) for timelines, or go Canvas/Three.js if you need physics.
|
| 49 |
+
create a game for employees to develop their skills
|
skillsgame.html
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Skills Development Game</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
|
| 10 |
+
<style>
|
| 11 |
+
body {
|
| 12 |
+
font-family: 'Poppins', sans-serif;
|
| 13 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 14 |
+
min-height: 100vh;
|
| 15 |
+
}
|
| 16 |
+
.game-card {
|
| 17 |
+
backdrop-filter: blur(16px) saturate(180%);
|
| 18 |
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
| 19 |
+
background-color: rgba(255, 255, 255, 0.15);
|
| 20 |
+
border-radius: 12px;
|
| 21 |
+
border: 1px solid rgba(255, 255, 255, 0.125);
|
| 22 |
+
}
|
| 23 |
+
.skill-bubble {
|
| 24 |
+
transition: all 0.3s ease;
|
| 25 |
+
cursor: pointer;
|
| 26 |
+
}
|
| 27 |
+
.skill-bubble:hover {
|
| 28 |
+
transform: scale(1.1);
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
</head>
|
| 32 |
+
<body class="text-white">
|
| 33 |
+
<div class="container mx-auto px-4 py-12">
|
| 34 |
+
<div class="text-center mb-12">
|
| 35 |
+
<h1 class="text-4xl font-bold mb-4">Skill Builder Challenge</h1>
|
| 36 |
+
<p class="text-xl opacity-80">Develop your professional skills through interactive challenges</p>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 40 |
+
<!-- Communication Card -->
|
| 41 |
+
<div class="game-card p-6">
|
| 42 |
+
<div class="flex items-center mb-4">
|
| 43 |
+
<div class="w-12 h-12 rounded-full bg-purple-200 flex items-center justify-center mr-4">
|
| 44 |
+
<i data-feather="message-circle" class="text-purple-700"></i>
|
| 45 |
+
</div>
|
| 46 |
+
<h3 class="text-xl font-semibold">Communication</h3>
|
| 47 |
+
</div>
|
| 48 |
+
<p class="mb-6 opacity-80">Improve your verbal and written communication skills.</p>
|
| 49 |
+
<div class="flex flex-wrap gap-3 mb-6">
|
| 50 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Active Listening</div>
|
| 51 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Presentation</div>
|
| 52 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Feedback</div>
|
| 53 |
+
</div>
|
| 54 |
+
<button class="w-full py-3 rounded-lg bg-white text-purple-700 font-medium hover:bg-opacity-90 transition">Start Challenge</button>
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
<!-- Problem Solving Card -->
|
| 58 |
+
<div class="game-card p-6">
|
| 59 |
+
<div class="flex items-center mb-4">
|
| 60 |
+
<div class="w-12 h-12 rounded-full bg-blue-200 flex items-center justify-center mr-4">
|
| 61 |
+
<i data-feather="code" class="text-blue-700"></i>
|
| 62 |
+
</div>
|
| 63 |
+
<h3 class="text-xl font-semibold">Problem Solving</h3>
|
| 64 |
+
</div>
|
| 65 |
+
<p class="mb-6 opacity-80">Enhance your critical thinking and analytical abilities.</p>
|
| 66 |
+
<div class="flex flex-wrap gap-3 mb-6">
|
| 67 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Analysis</div>
|
| 68 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Decision Making</div>
|
| 69 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Creativity</div>
|
| 70 |
+
</div>
|
| 71 |
+
<button class="w-full py-3 rounded-lg bg-white text-blue-700 font-medium hover:bg-opacity-90 transition">Start Challenge</button>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<!-- Teamwork Card -->
|
| 75 |
+
<div class="game-card p-6">
|
| 76 |
+
<div class="flex items-center mb-4">
|
| 77 |
+
<div class="w-12 h-12 rounded-full bg-green-200 flex items-center justify-center mr-4">
|
| 78 |
+
<i data-feather="users" class="text-green-700"></i>
|
| 79 |
+
</div>
|
| 80 |
+
<h3 class="text-xl font-semibold">Teamwork</h3>
|
| 81 |
+
</div>
|
| 82 |
+
<p class="mb-6 opacity-80">Build collaboration and leadership capabilities.</p>
|
| 83 |
+
<div class="flex flex-wrap gap-3 mb-6">
|
| 84 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Collaboration</div>
|
| 85 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Conflict Resolution</div>
|
| 86 |
+
<div class="skill-bubble px-4 py-2 bg-white bg-opacity-20 rounded-full">Delegation</div>
|
| 87 |
+
</div>
|
| 88 |
+
<button class="w-full py-3 rounded-lg bg-white text-green-700 font-medium hover:bg-opacity-90 transition">Start Challenge</button>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<div class="mt-12 text-center">
|
| 93 |
+
<p class="mb-4 opacity-80">Track your progress and unlock achievements</p>
|
| 94 |
+
<div class="flex justify-center gap-4">
|
| 95 |
+
<div class="w-16 h-16 rounded-full bg-yellow-400 bg-opacity-20 flex items-center justify-center">
|
| 96 |
+
<i data-feather="award" class="text-yellow-400"></i>
|
| 97 |
+
</div>
|
| 98 |
+
<div class="w-16 h-16 rounded-full bg-red-400 bg-opacity-20 flex items-center justify-center">
|
| 99 |
+
<i data-feather="bar-chart-2" class="text-red-400"></i>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="w-16 h-16 rounded-full bg-purple-400 bg-opacity-20 flex items-center justify-center">
|
| 102 |
+
<i data-feather="trending-up" class="text-purple-400"></i>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 109 |
+
<script>
|
| 110 |
+
feather.replace();
|
| 111 |
+
|
| 112 |
+
// Game functionality would be added here
|
| 113 |
+
document.querySelectorAll('.skill-bubble').forEach(bubble => {
|
| 114 |
+
bubble.addEventListener('click', function() {
|
| 115 |
+
this.classList.toggle('bg-opacity-40');
|
| 116 |
+
this.classList.toggle('ring-2');
|
| 117 |
+
this.classList.toggle('ring-white');
|
| 118 |
+
});
|
| 119 |
+
});
|
| 120 |
+
</script>
|
| 121 |
+
</body>
|
| 122 |
+
</html>
|