Add 2 files
Browse files- README.md +7 -5
- index.html +659 -19
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: mvp-builder-for-students
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: blue
|
| 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 +1,659 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Trendsetter Tycoon</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@keyframes pulse {
|
| 11 |
+
0%, 100% { transform: scale(1); }
|
| 12 |
+
50% { transform: scale(1.05); }
|
| 13 |
+
}
|
| 14 |
+
.trend-card:hover {
|
| 15 |
+
animation: pulse 0.5s ease-in-out;
|
| 16 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 17 |
+
}
|
| 18 |
+
.progress-bar {
|
| 19 |
+
transition: width 0.5s ease-in-out;
|
| 20 |
+
}
|
| 21 |
+
.creation-area {
|
| 22 |
+
background-image: radial-gradient(circle at 1px 1px, #e5e7eb 1px, transparent 0);
|
| 23 |
+
background-size: 20px 20px;
|
| 24 |
+
}
|
| 25 |
+
.chart-container {
|
| 26 |
+
min-height: 200px;
|
| 27 |
+
}
|
| 28 |
+
.draggable-item {
|
| 29 |
+
cursor: grab;
|
| 30 |
+
transition: transform 0.1s ease;
|
| 31 |
+
}
|
| 32 |
+
.draggable-item:active {
|
| 33 |
+
cursor: grabbing;
|
| 34 |
+
transform: scale(1.05);
|
| 35 |
+
}
|
| 36 |
+
.drop-zone {
|
| 37 |
+
transition: all 0.3s ease;
|
| 38 |
+
}
|
| 39 |
+
.drop-zone.highlight {
|
| 40 |
+
background-color: rgba(167, 139, 250, 0.2);
|
| 41 |
+
border: 2px dashed #8b5cf6;
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
</head>
|
| 45 |
+
<body class="bg-gray-50 font-sans">
|
| 46 |
+
<div class="container mx-auto px-4 py-6 max-w-6xl">
|
| 47 |
+
<!-- Header -->
|
| 48 |
+
<header class="flex justify-between items-center mb-8">
|
| 49 |
+
<div class="flex items-center space-x-4">
|
| 50 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white text-2xl font-bold">
|
| 51 |
+
TT
|
| 52 |
+
</div>
|
| 53 |
+
<h1 class="text-3xl font-bold text-gray-800">Trendsetter Tycoon</h1>
|
| 54 |
+
</div>
|
| 55 |
+
<div class="flex items-center space-x-6">
|
| 56 |
+
<div class="flex items-center space-x-2 bg-white px-4 py-2 rounded-full shadow">
|
| 57 |
+
<i class="fas fa-bolt text-yellow-500"></i>
|
| 58 |
+
<span class="font-bold text-gray-700" id="buzz-points">250</span>
|
| 59 |
+
</div>
|
| 60 |
+
<div class="flex items-center space-x-2 bg-white px-4 py-2 rounded-full shadow">
|
| 61 |
+
<i class="fas fa-users text-blue-500"></i>
|
| 62 |
+
<span class="font-bold text-gray-700" id="followers">1,250</span>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="relative">
|
| 65 |
+
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full cursor-pointer">
|
| 66 |
+
<div class="absolute -bottom-1 -right-1 w-5 h-5 bg-green-500 rounded-full border-2 border-white"></div>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</header>
|
| 70 |
+
|
| 71 |
+
<!-- Main Game Area -->
|
| 72 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 73 |
+
<!-- Left Column - School Feed -->
|
| 74 |
+
<div class="lg:col-span-1 bg-white rounded-xl shadow-lg overflow-hidden">
|
| 75 |
+
<div class="bg-gradient-to-r from-purple-600 to-blue-500 p-4 text-white">
|
| 76 |
+
<h2 class="text-xl font-bold flex items-center">
|
| 77 |
+
<i class="fas fa-school mr-2"></i> School Feed
|
| 78 |
+
</h2>
|
| 79 |
+
<p class="text-sm opacity-90">Discover the latest trends and unmet desires</p>
|
| 80 |
+
</div>
|
| 81 |
+
<div class="p-4 space-y-4 overflow-y-auto" style="max-height: 500px;">
|
| 82 |
+
<div class="trend-card bg-gray-50 p-4 rounded-lg border border-gray-200 cursor-pointer hover:bg-purple-50 transition">
|
| 83 |
+
<div class="flex items-start space-x-3">
|
| 84 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-red-400 to-pink-500 flex items-center justify-center text-white">
|
| 85 |
+
<i class="fas fa-fire"></i>
|
| 86 |
+
</div>
|
| 87 |
+
<div>
|
| 88 |
+
<h3 class="font-bold text-gray-800">Sarcastic Memes</h3>
|
| 89 |
+
<p class="text-sm text-gray-600">Students are loving ironic, self-deprecating humor. Engagement up 120% this week.</p>
|
| 90 |
+
<div class="flex items-center mt-2 text-xs text-gray-500">
|
| 91 |
+
<span class="mr-3"><i class="fas fa-heart text-red-400 mr-1"></i> 342</span>
|
| 92 |
+
<span><i class="fas fa-share-alt text-blue-400 mr-1"></i> 128</span>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<div class="trend-card bg-gray-50 p-4 rounded-lg border border-gray-200 cursor-pointer hover:bg-purple-50 transition">
|
| 99 |
+
<div class="flex items-start space-x-3">
|
| 100 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-blue-400 to-cyan-500 flex items-center justify-center text-white">
|
| 101 |
+
<i class="fas fa-arrow-trend-up"></i>
|
| 102 |
+
</div>
|
| 103 |
+
<div>
|
| 104 |
+
<h3 class="font-bold text-gray-800">Minimalist Stickers</h3>
|
| 105 |
+
<p class="text-sm text-gray-600">Simple, clean designs are gaining traction. Current designs feel too busy.</p>
|
| 106 |
+
<div class="flex items-center mt-2 text-xs text-gray-500">
|
| 107 |
+
<span class="mr-3"><i class="fas fa-heart text-red-400 mr-1"></i> 215</span>
|
| 108 |
+
<span><i class="fas fa-share-alt text-blue-400 mr-1"></i> 87</span>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<div class="trend-card bg-gray-50 p-4 rounded-lg border border-gray-200 cursor-pointer hover:bg-purple-50 transition">
|
| 115 |
+
<div class="flex items-start space-x-3">
|
| 116 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-green-400 to-emerald-500 flex items-center justify-center text-white">
|
| 117 |
+
<i class="fas fa-leaf"></i>
|
| 118 |
+
</div>
|
| 119 |
+
<div>
|
| 120 |
+
<h3 class="font-bold text-gray-800">Eco-Friendly</h3>
|
| 121 |
+
<p class="text-sm text-gray-600">Sustainability is hot right now. Products with green messaging get 2x engagement.</p>
|
| 122 |
+
<div class="flex items-center mt-2 text-xs text-gray-500">
|
| 123 |
+
<span class="mr-3"><i class="fas fa-heart text-red-400 mr-1"></i> 298</span>
|
| 124 |
+
<span><i class="fas fa-share-alt text-blue-400 mr-1"></i> 143</span>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<div class="trend-card bg-gray-50 p-4 rounded-lg border border-gray-200 cursor-pointer hover:bg-purple-50 transition">
|
| 131 |
+
<div class="flex items-start space-x-3">
|
| 132 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-yellow-400 to-orange-500 flex items-center justify-center text-white">
|
| 133 |
+
<i class="fas fa-dog"></i>
|
| 134 |
+
</div>
|
| 135 |
+
<div>
|
| 136 |
+
<h3 class="font-bold text-gray-800">Pet Content</h3>
|
| 137 |
+
<p class="text-sm text-gray-600">Dog videos still dominate, but cat content is making a comeback with Gen Z.</p>
|
| 138 |
+
<div class="flex items-center mt-2 text-xs text-gray-500">
|
| 139 |
+
<span class="mr-3"><i class="fas fa-heart text-red-400 mr-1"></i> 512</span>
|
| 140 |
+
<span><i class="fas fa-share-alt text-blue-400 mr-1"></i> 231</span>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div class="trend-card bg-gray-50 p-4 rounded-lg border border-gray-200 cursor-pointer hover:bg-purple-50 transition">
|
| 147 |
+
<div class="flex items-start space-x-3">
|
| 148 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-purple-400 to-indigo-500 flex items-center justify-center text-white">
|
| 149 |
+
<i class="fas fa-music"></i>
|
| 150 |
+
</div>
|
| 151 |
+
<div>
|
| 152 |
+
<h3 class="font-bold text-gray-800">Nostalgia Wave</h3>
|
| 153 |
+
<p class="text-sm text-gray-600">Early 2000s aesthetics are trending hard. Think frosted tips and flip phones.</p>
|
| 154 |
+
<div class="flex items-center mt-2 text-xs text-gray-500">
|
| 155 |
+
<span class="mr-3"><i class="fas fa-heart text-red-400 mr-1"></i> 187</span>
|
| 156 |
+
<span><i class="fas fa-share-alt text-blue-400 mr-1"></i> 92</span>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
<div class="p-4 bg-gray-50 border-t border-gray-200">
|
| 163 |
+
<button id="analyze-trends" class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg font-medium transition flex items-center justify-center">
|
| 164 |
+
<i class="fas fa-chart-line mr-2"></i> Analyze Trends (10 Buzz)
|
| 165 |
+
</button>
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
<!-- Middle Column - Creation Area -->
|
| 170 |
+
<div class="lg:col-span-1 bg-white rounded-xl shadow-lg overflow-hidden">
|
| 171 |
+
<div class="bg-gradient-to-r from-pink-500 to-rose-500 p-4 text-white">
|
| 172 |
+
<h2 class="text-xl font-bold flex items-center">
|
| 173 |
+
<i class="fas fa-magic mr-2"></i> Trend Creation
|
| 174 |
+
</h2>
|
| 175 |
+
<p class="text-sm opacity-90">Build your MVP and test your hypothesis</p>
|
| 176 |
+
</div>
|
| 177 |
+
<div class="p-4 creation-area min-h-[500px]">
|
| 178 |
+
<div class="mb-4">
|
| 179 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Trend Hypothesis</label>
|
| 180 |
+
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="E.g. 'Students will love sarcastic cat meme stickers'">
|
| 181 |
+
</div>
|
| 182 |
+
|
| 183 |
+
<div class="mb-4">
|
| 184 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Trend Type</label>
|
| 185 |
+
<div class="grid grid-cols-3 gap-2">
|
| 186 |
+
<button class="py-2 px-3 bg-gray-100 hover:bg-purple-100 border border-gray-200 rounded-md text-sm font-medium transition flex items-center justify-center">
|
| 187 |
+
<i class="fas fa-sticky-note mr-1 text-yellow-500"></i> Stickers
|
| 188 |
+
</button>
|
| 189 |
+
<button class="py-2 px-3 bg-gray-100 hover:bg-purple-100 border border-gray-200 rounded-md text-sm font-medium transition flex items-center justify-center">
|
| 190 |
+
<i class="fas fa-tshirt mr-1 text-blue-500"></i> Fashion
|
| 191 |
+
</button>
|
| 192 |
+
<button class="py-2 px-3 bg-gray-100 hover:bg-purple-100 border border-gray-200 rounded-md text-sm font-medium transition flex items-center justify-center">
|
| 193 |
+
<i class="fas fa-mobile mr-1 text-green-500"></i> App Feature
|
| 194 |
+
</button>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<div class="mb-4">
|
| 199 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Design Elements</label>
|
| 200 |
+
<div class="grid grid-cols-4 gap-2 mb-3">
|
| 201 |
+
<div class="draggable-item p-2 bg-gray-100 rounded-md text-center cursor-move" draggable="true">
|
| 202 |
+
<i class="fas fa-cat text-2xl text-orange-400"></i>
|
| 203 |
+
<p class="text-xs mt-1">Cat</p>
|
| 204 |
+
</div>
|
| 205 |
+
<div class="draggable-item p-2 bg-gray-100 rounded-md text-center cursor-move" draggable="true">
|
| 206 |
+
<i class="fas fa-dog text-2xl text-brown-400"></i>
|
| 207 |
+
<p class="text-xs mt-1">Dog</p>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="draggable-item p-2 bg-gray-100 rounded-md text-center cursor-move" draggable="true">
|
| 210 |
+
<i class="fas fa-font text-2xl text-purple-400"></i>
|
| 211 |
+
<p class="text-xs mt-1">Text</p>
|
| 212 |
+
</div>
|
| 213 |
+
<div class="draggable-item p-2 bg-gray-100 rounded-md text-center cursor-move" draggable="true">
|
| 214 |
+
<i class="fas fa-image text-2xl text-blue-400"></i>
|
| 215 |
+
<p class="text-xs mt-1">Image</p>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
</div>
|
| 219 |
+
|
| 220 |
+
<div class="mb-4">
|
| 221 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">MVP Canvas</label>
|
| 222 |
+
<div id="drop-zone" class="drop-zone bg-white border-2 border-dashed border-gray-300 rounded-md p-4 min-h-[200px] flex items-center justify-center">
|
| 223 |
+
<p class="text-gray-400">Drag elements here to create your MVP</p>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
|
| 227 |
+
<div class="flex space-x-3">
|
| 228 |
+
<button id="test-mvp" class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg font-medium transition flex items-center justify-center">
|
| 229 |
+
<i class="fas fa-rocket mr-2"></i> Test MVP (50 Buzz)
|
| 230 |
+
</button>
|
| 231 |
+
<button class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-lg font-medium transition">
|
| 232 |
+
<i class="fas fa-redo"></i>
|
| 233 |
+
</button>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
|
| 238 |
+
<!-- Right Column - Analytics & Results -->
|
| 239 |
+
<div class="lg:col-span-1 bg-white rounded-xl shadow-lg overflow-hidden">
|
| 240 |
+
<div class="bg-gradient-to-r from-indigo-500 to-blue-500 p-4 text-white">
|
| 241 |
+
<h2 class="text-xl font-bold flex items-center">
|
| 242 |
+
<i class="fas fa-chart-bar mr-2"></i> Trend Analytics
|
| 243 |
+
</h2>
|
| 244 |
+
<p class="text-sm opacity-90">Measure engagement and iterate</p>
|
| 245 |
+
</div>
|
| 246 |
+
<div class="p-4 space-y-4">
|
| 247 |
+
<div class="bg-gray-50 p-4 rounded-lg border border-gray-200">
|
| 248 |
+
<h3 class="font-bold text-gray-800 mb-2">Current Trend: Sarcastic Cat Memes</h3>
|
| 249 |
+
<div class="space-y-3">
|
| 250 |
+
<div>
|
| 251 |
+
<div class="flex justify-between text-sm mb-1">
|
| 252 |
+
<span>Engagement Rate</span>
|
| 253 |
+
<span>68%</span>
|
| 254 |
+
</div>
|
| 255 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 256 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 68%"></div>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
<div>
|
| 260 |
+
<div class="flex justify-between text-sm mb-1">
|
| 261 |
+
<span>Virality Score</span>
|
| 262 |
+
<span>4.2/5</span>
|
| 263 |
+
</div>
|
| 264 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 265 |
+
<div class="bg-purple-500 h-2 rounded-full" style="width: 84%"></div>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
<div>
|
| 269 |
+
<div class="flex justify-between text-sm mb-1">
|
| 270 |
+
<span>Market Saturation</span>
|
| 271 |
+
<span>32%</span>
|
| 272 |
+
</div>
|
| 273 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 274 |
+
<div class="bg-yellow-500 h-2 rounded-full" style="width: 32%"></div>
|
| 275 |
+
</div>
|
| 276 |
+
</div>
|
| 277 |
+
</div>
|
| 278 |
+
</div>
|
| 279 |
+
|
| 280 |
+
<div class="bg-gray-50 p-4 rounded-lg border border-gray-200">
|
| 281 |
+
<h3 class="font-bold text-gray-800 mb-3">Audience Feedback</h3>
|
| 282 |
+
<div class="space-y-3">
|
| 283 |
+
<div class="flex items-start space-x-2">
|
| 284 |
+
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-500">
|
| 285 |
+
<i class="fas fa-thumbs-up"></i>
|
| 286 |
+
</div>
|
| 287 |
+
<div>
|
| 288 |
+
<p class="text-sm font-medium">Positive (72%)</p>
|
| 289 |
+
<p class="text-xs text-gray-500">"This is so me lol" "Cat memes never get old"</p>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
<div class="flex items-start space-x-2">
|
| 293 |
+
<div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-500">
|
| 294 |
+
<i class="fas fa-meh"></i>
|
| 295 |
+
</div>
|
| 296 |
+
<div>
|
| 297 |
+
<p class="text-sm font-medium">Neutral (18%)</p>
|
| 298 |
+
<p class="text-xs text-gray-500">"It's okay I guess" "Seen better"</p>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
<div class="flex items-start space-x-2">
|
| 302 |
+
<div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center text-red-500">
|
| 303 |
+
<i class="fas fa-thumbs-down"></i>
|
| 304 |
+
</div>
|
| 305 |
+
<div>
|
| 306 |
+
<p class="text-sm font-medium">Negative (10%)</p>
|
| 307 |
+
<p class="text-xs text-gray-500">"Overdone" "Try something new"</p>
|
| 308 |
+
</div>
|
| 309 |
+
</div>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
|
| 313 |
+
<div class="bg-gray-50 p-4 rounded-lg border border-gray-200 chart-container">
|
| 314 |
+
<h3 class="font-bold text-gray-800 mb-3">Growth Metrics</h3>
|
| 315 |
+
<div class="bg-white p-2 rounded border border-gray-200">
|
| 316 |
+
<!-- Placeholder for chart -->
|
| 317 |
+
<div class="flex items-center justify-center h-32 text-gray-400">
|
| 318 |
+
<i class="fas fa-chart-line text-3xl mr-2"></i>
|
| 319 |
+
<span>Engagement chart will appear here</span>
|
| 320 |
+
</div>
|
| 321 |
+
</div>
|
| 322 |
+
</div>
|
| 323 |
+
|
| 324 |
+
<div class="grid grid-cols-2 gap-3">
|
| 325 |
+
<button id="pivot-trend" class="bg-yellow-500 hover:bg-yellow-600 text-white py-2 px-4 rounded-lg font-medium transition text-sm">
|
| 326 |
+
<i class="fas fa-random mr-1"></i> Pivot (30 Buzz)
|
| 327 |
+
</button>
|
| 328 |
+
<button id="scale-trend" class="bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg font-medium transition text-sm">
|
| 329 |
+
<i class="fas fa-expand mr-1"></i> Scale (100 Buzz)
|
| 330 |
+
</button>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
</div>
|
| 334 |
+
</div>
|
| 335 |
+
|
| 336 |
+
<!-- Competitor Section -->
|
| 337 |
+
<div class="mt-8 bg-white rounded-xl shadow-lg overflow-hidden">
|
| 338 |
+
<div class="bg-gradient-to-r from-gray-700 to-gray-900 p-4 text-white">
|
| 339 |
+
<h2 class="text-xl font-bold flex items-center">
|
| 340 |
+
<i class="fas fa-trophy mr-2"></i> Trendsetter Leaderboard
|
| 341 |
+
</h2>
|
| 342 |
+
<p class="text-sm opacity-90">Compete against other trendsetters in your school</p>
|
| 343 |
+
</div>
|
| 344 |
+
<div class="p-4">
|
| 345 |
+
<div class="overflow-x-auto">
|
| 346 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 347 |
+
<thead class="bg-gray-50">
|
| 348 |
+
<tr>
|
| 349 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rank</th>
|
| 350 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Trendsetter</th>
|
| 351 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current Trend</th>
|
| 352 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Followers</th>
|
| 353 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engagement</th>
|
| 354 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Buzz</th>
|
| 355 |
+
</tr>
|
| 356 |
+
</thead>
|
| 357 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 358 |
+
<tr class="bg-purple-50">
|
| 359 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">1</td>
|
| 360 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 361 |
+
<div class="flex items-center">
|
| 362 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 363 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
|
| 364 |
+
</div>
|
| 365 |
+
<div class="ml-4">
|
| 366 |
+
<div class="text-sm font-medium text-gray-900">Alex Rivera</div>
|
| 367 |
+
<div class="text-sm text-gray-500">@trendking</div>
|
| 368 |
+
</div>
|
| 369 |
+
</div>
|
| 370 |
+
</td>
|
| 371 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vintage Tech Memes</td>
|
| 372 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5,420</td>
|
| 373 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 374 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
|
| 375 |
+
89%
|
| 376 |
+
</span>
|
| 377 |
+
</td>
|
| 378 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,250</td>
|
| 379 |
+
</tr>
|
| 380 |
+
<tr>
|
| 381 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2</td>
|
| 382 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 383 |
+
<div class="flex items-center">
|
| 384 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 385 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
|
| 386 |
+
</div>
|
| 387 |
+
<div class="ml-4">
|
| 388 |
+
<div class="text-sm font-medium text-gray-900">You</div>
|
| 389 |
+
<div class="text-sm text-gray-500">@trendsetter</div>
|
| 390 |
+
</div>
|
| 391 |
+
</div>
|
| 392 |
+
</td>
|
| 393 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarcastic Cat Memes</td>
|
| 394 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,250</td>
|
| 395 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 396 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
|
| 397 |
+
72%
|
| 398 |
+
</span>
|
| 399 |
+
</td>
|
| 400 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">250</td>
|
| 401 |
+
</tr>
|
| 402 |
+
<tr>
|
| 403 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">3</td>
|
| 404 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 405 |
+
<div class="flex items-center">
|
| 406 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 407 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
|
| 408 |
+
</div>
|
| 409 |
+
<div class="ml-4">
|
| 410 |
+
<div class="text-sm font-medium text-gray-900">Jamie Chen</div>
|
| 411 |
+
<div class="text-sm text-gray-500">@viralqueen</div>
|
| 412 |
+
</div>
|
| 413 |
+
</div>
|
| 414 |
+
</td>
|
| 415 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">DIY Fashion Hacks</td>
|
| 416 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4,150</td>
|
| 417 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 418 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
|
| 419 |
+
65%
|
| 420 |
+
</span>
|
| 421 |
+
</td>
|
| 422 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">980</td>
|
| 423 |
+
</tr>
|
| 424 |
+
<tr>
|
| 425 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">4</td>
|
| 426 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 427 |
+
<div class="flex items-center">
|
| 428 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 429 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/75.jpg" alt="">
|
| 430 |
+
</div>
|
| 431 |
+
<div class="ml-4">
|
| 432 |
+
<div class="text-sm font-medium text-gray-900">Marcus Lee</div>
|
| 433 |
+
<div class="text-sm text-gray-500">@meme_lord</div>
|
| 434 |
+
</div>
|
| 435 |
+
</div>
|
| 436 |
+
</td>
|
| 437 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Teacher Memes</td>
|
| 438 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3,780</td>
|
| 439 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 440 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
|
| 441 |
+
58%
|
| 442 |
+
</span>
|
| 443 |
+
</td>
|
| 444 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">750</td>
|
| 445 |
+
</tr>
|
| 446 |
+
</tbody>
|
| 447 |
+
</table>
|
| 448 |
+
</div>
|
| 449 |
+
</div>
|
| 450 |
+
</div>
|
| 451 |
+
|
| 452 |
+
<!-- Tutorial Modal -->
|
| 453 |
+
<div id="tutorial-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 454 |
+
<div class="bg-white rounded-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto">
|
| 455 |
+
<div class="p-6">
|
| 456 |
+
<div class="flex justify-between items-center mb-4">
|
| 457 |
+
<h3 class="text-2xl font-bold text-gray-800">Welcome to Trendsetter Tycoon!</h3>
|
| 458 |
+
<button id="close-tutorial" class="text-gray-500 hover:text-gray-700">
|
| 459 |
+
<i class="fas fa-times"></i>
|
| 460 |
+
</button>
|
| 461 |
+
</div>
|
| 462 |
+
|
| 463 |
+
<div class="space-y-4">
|
| 464 |
+
<div class="flex items-start space-x-4">
|
| 465 |
+
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600 mt-1">
|
| 466 |
+
<i class="fas fa-school"></i>
|
| 467 |
+
</div>
|
| 468 |
+
<div>
|
| 469 |
+
<h4 class="font-bold text-gray-800">School Feed</h4>
|
| 470 |
+
<p class="text-gray-600">Discover current trends and unmet desires in your school's social network. Analyze data to form hypotheses about what might go viral next.</p>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
|
| 474 |
+
<div class="flex items-start space-x-4">
|
| 475 |
+
<div class="w-10 h-10 rounded-full bg-pink-100 flex items-center justify-center text-pink-600 mt-1">
|
| 476 |
+
<i class="fas fa-magic"></i>
|
| 477 |
+
</div>
|
| 478 |
+
<div>
|
| 479 |
+
<h4 class="font-bold text-gray-800">Trend Creation</h4>
|
| 480 |
+
<p class="text-gray-600">Build your Minimum Viable Product (MVP) by combining design elements. Use your limited Buzz Points wisely to test your hypothesis.</p>
|
| 481 |
+
</div>
|
| 482 |
+
</div>
|
| 483 |
+
|
| 484 |
+
<div class="flex items-start space-x-4">
|
| 485 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mt-1">
|
| 486 |
+
<i class="fas fa-chart-line"></i>
|
| 487 |
+
</div>
|
| 488 |
+
<div>
|
| 489 |
+
<h4 class="font-bold text-gray-800">Trend Analytics</h4>
|
| 490 |
+
<p class="text-gray-600">Measure engagement metrics and audience feedback. Learn from the data to decide whether to pivot your idea or scale it to more students.</p>
|
| 491 |
+
</div>
|
| 492 |
+
</div>
|
| 493 |
+
|
| 494 |
+
<div class="flex items-start space-x-4">
|
| 495 |
+
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600 mt-1">
|
| 496 |
+
<i class="fas fa-trophy"></i>
|
| 497 |
+
</div>
|
| 498 |
+
<div>
|
| 499 |
+
<h4 class="font-bold text-gray-800">Become #1</h4>
|
| 500 |
+
<p class="text-gray-600">Compete against other trendsetters in your school. Gain followers, increase your reputation, and dethrone the current Trend King!</p>
|
| 501 |
+
</div>
|
| 502 |
+
</div>
|
| 503 |
+
</div>
|
| 504 |
+
|
| 505 |
+
<div class="mt-6">
|
| 506 |
+
<button id="start-playing" class="w-full bg-purple-600 hover:bg-purple-700 text-white py-3 px-4 rounded-lg font-bold transition">
|
| 507 |
+
Start Playing!
|
| 508 |
+
</button>
|
| 509 |
+
</div>
|
| 510 |
+
</div>
|
| 511 |
+
</div>
|
| 512 |
+
</div>
|
| 513 |
+
</div>
|
| 514 |
+
|
| 515 |
+
<script>
|
| 516 |
+
// Tutorial Modal
|
| 517 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 518 |
+
// Show tutorial modal on first visit
|
| 519 |
+
const tutorialModal = document.getElementById('tutorial-modal');
|
| 520 |
+
const closeTutorial = document.getElementById('close-tutorial');
|
| 521 |
+
const startPlaying = document.getElementById('start-playing');
|
| 522 |
+
|
| 523 |
+
// Check if user has seen tutorial before
|
| 524 |
+
if(!localStorage.getItem('tutorialSeen')) {
|
| 525 |
+
tutorialModal.classList.remove('hidden');
|
| 526 |
+
localStorage.setItem('tutorialSeen', 'true');
|
| 527 |
+
}
|
| 528 |
+
|
| 529 |
+
closeTutorial.addEventListener('click', function() {
|
| 530 |
+
tutorialModal.classList.add('hidden');
|
| 531 |
+
});
|
| 532 |
+
|
| 533 |
+
startPlaying.addEventListener('click', function() {
|
| 534 |
+
tutorialModal.classList.add('hidden');
|
| 535 |
+
});
|
| 536 |
+
|
| 537 |
+
// Drag and drop functionality
|
| 538 |
+
const draggableItems = document.querySelectorAll('.draggable-item');
|
| 539 |
+
const dropZone = document.getElementById('drop-zone');
|
| 540 |
+
|
| 541 |
+
draggableItems.forEach(item => {
|
| 542 |
+
item.addEventListener('dragstart', function(e) {
|
| 543 |
+
e.dataTransfer.setData('text/plain', item.innerHTML);
|
| 544 |
+
setTimeout(() => {
|
| 545 |
+
item.classList.add('opacity-0');
|
| 546 |
+
}, 0);
|
| 547 |
+
});
|
| 548 |
+
|
| 549 |
+
item.addEventListener('dragend', function() {
|
| 550 |
+
item.classList.remove('opacity-0');
|
| 551 |
+
});
|
| 552 |
+
});
|
| 553 |
+
|
| 554 |
+
dropZone.addEventListener('dragover', function(e) {
|
| 555 |
+
e.preventDefault();
|
| 556 |
+
this.classList.add('highlight');
|
| 557 |
+
});
|
| 558 |
+
|
| 559 |
+
dropZone.addEventListener('dragleave', function() {
|
| 560 |
+
this.classList.remove('highlight');
|
| 561 |
+
});
|
| 562 |
+
|
| 563 |
+
dropZone.addEventListener('drop', function(e) {
|
| 564 |
+
e.preventDefault();
|
| 565 |
+
this.classList.remove('highlight');
|
| 566 |
+
const data = e.dataTransfer.getData('text/plain');
|
| 567 |
+
|
| 568 |
+
// Create a new element in the drop zone
|
| 569 |
+
const newElement = document.createElement('div');
|
| 570 |
+
newElement.className = 'inline-block p-2 bg-gray-100 rounded-md m-1';
|
| 571 |
+
newElement.innerHTML = data;
|
| 572 |
+
|
| 573 |
+
this.innerHTML = '';
|
| 574 |
+
this.appendChild(newElement);
|
| 575 |
+
this.classList.add('flex', 'items-center', 'justify-center');
|
| 576 |
+
});
|
| 577 |
+
|
| 578 |
+
// Button interactions
|
| 579 |
+
const buzzPointsElement = document.getElementById('buzz-points');
|
| 580 |
+
const followersElement = document.getElementById('followers');
|
| 581 |
+
let buzzPoints = 250;
|
| 582 |
+
let followers = 1250;
|
| 583 |
+
|
| 584 |
+
document.getElementById('analyze-trends').addEventListener('click', function() {
|
| 585 |
+
if(buzzPoints >= 10) {
|
| 586 |
+
buzzPoints -= 10;
|
| 587 |
+
buzzPointsElement.textContent = buzzPoints;
|
| 588 |
+
|
| 589 |
+
// Simulate finding a new trend
|
| 590 |
+
const schoolFeed = document.querySelector('.trend-card:last-child');
|
| 591 |
+
schoolFeed.scrollIntoView({ behavior: 'smooth' });
|
| 592 |
+
|
| 593 |
+
// Show notification
|
| 594 |
+
alert('New trend discovered: "90s Throwback Challenge" added to School Feed!');
|
| 595 |
+
} else {
|
| 596 |
+
alert('Not enough Buzz Points! Try testing one of your existing trends to earn more.');
|
| 597 |
+
}
|
| 598 |
+
});
|
| 599 |
+
|
| 600 |
+
document.getElementById('test-mvp').addEventListener('click', function() {
|
| 601 |
+
if(buzzPoints >= 50) {
|
| 602 |
+
buzzPoints -= 50;
|
| 603 |
+
buzzPointsElement.textContent = buzzPoints;
|
| 604 |
+
|
| 605 |
+
// Simulate testing MVP
|
| 606 |
+
const analyticsSection = document.querySelector('.bg-gray-50');
|
| 607 |
+
analyticsSection.scrollIntoView({ behavior: 'smooth' });
|
| 608 |
+
|
| 609 |
+
// Update analytics with random data
|
| 610 |
+
document.querySelector('.bg-green-500').style.width = Math.floor(Math.random() * 30 + 50) + '%';
|
| 611 |
+
document.querySelector('.bg-purple-500').style.width = Math.floor(Math.random() * 30 + 50) + '%';
|
| 612 |
+
document.querySelector('.bg-yellow-500').style.width = Math.floor(Math.random() * 30) + '%';
|
| 613 |
+
|
| 614 |
+
// Random outcome
|
| 615 |
+
if(Math.random() > 0.3) {
|
| 616 |
+
// Success
|
| 617 |
+
const gain = Math.floor(Math.random() * 100 + 50);
|
| 618 |
+
followers += gain;
|
| 619 |
+
followersElement.textContent = followers.toLocaleString();
|
| 620 |
+
|
| 621 |
+
alert(`Success! Your trend is gaining traction. +${gain} followers!`);
|
| 622 |
+
} else {
|
| 623 |
+
// Failure
|
| 624 |
+
alert('Your trend didn't resonate with the test audience. Check the feedback and consider pivoting.');
|
| 625 |
+
}
|
| 626 |
+
} else {
|
| 627 |
+
alert('Not enough Buzz Points! Analyze more trends or wait for your Buzz to recharge.');
|
| 628 |
+
}
|
| 629 |
+
});
|
| 630 |
+
|
| 631 |
+
document.getElementById('pivot-trend').addEventListener('click', function() {
|
| 632 |
+
if(buzzPoints >= 30) {
|
| 633 |
+
buzzPoints -= 30;
|
| 634 |
+
buzzPointsElement.textContent = buzzPoints;
|
| 635 |
+
|
| 636 |
+
alert('Trend pivoted! Try testing your new version with a different audience.');
|
| 637 |
+
} else {
|
| 638 |
+
alert('Not enough Buzz Points to pivot!');
|
| 639 |
+
}
|
| 640 |
+
});
|
| 641 |
+
|
| 642 |
+
document.getElementById('scale-trend').addEventListener('click', function() {
|
| 643 |
+
if(buzzPoints >= 100) {
|
| 644 |
+
buzzPoints -= 100;
|
| 645 |
+
buzzPointsElement.textContent = buzzPoints;
|
| 646 |
+
|
| 647 |
+
const gain = Math.floor(Math.random() * 300 + 200);
|
| 648 |
+
followers += gain;
|
| 649 |
+
followersElement.textContent = followers.toLocaleString();
|
| 650 |
+
|
| 651 |
+
alert(`Scaling successful! Your trend is going viral. +${gain} followers!`);
|
| 652 |
+
} else {
|
| 653 |
+
alert('Not enough Buzz Points to scale! Build up more momentum first.');
|
| 654 |
+
}
|
| 655 |
+
});
|
| 656 |
+
});
|
| 657 |
+
</script>
|
| 658 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LukasBe/mvp-builder-for-students" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 659 |
+
</html>
|