Add 3 files
Browse files- README.md +7 -5
- index.html +435 -19
- prompts.txt +1 -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: scaling-performance-dashboard
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 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 +1,435 @@
|
|
| 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>Scaling Up Strategic Plan with AI</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 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| 12 |
+
}
|
| 13 |
+
.plan-section {
|
| 14 |
+
transition: all 0.3s ease;
|
| 15 |
+
}
|
| 16 |
+
.plan-section:hover {
|
| 17 |
+
transform: translateY(-5px);
|
| 18 |
+
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
|
| 19 |
+
}
|
| 20 |
+
.ai-pulse {
|
| 21 |
+
animation: pulse 2s infinite;
|
| 22 |
+
}
|
| 23 |
+
@keyframes pulse {
|
| 24 |
+
0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
|
| 25 |
+
70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
|
| 26 |
+
100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
|
| 27 |
+
}
|
| 28 |
+
</style>
|
| 29 |
+
</head>
|
| 30 |
+
<body class="gradient-bg min-h-screen font-sans">
|
| 31 |
+
<div class="container mx-auto px-4 py-12">
|
| 32 |
+
<header class="text-center mb-12">
|
| 33 |
+
<h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">Scaling Up Strategic Plan</h1>
|
| 34 |
+
<p class="text-xl text-gray-600 max-w-3xl mx-auto">Your comprehensive roadmap for growth with AI-powered optimization</p>
|
| 35 |
+
</header>
|
| 36 |
+
|
| 37 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12">
|
| 38 |
+
<!-- AI Assistant Panel -->
|
| 39 |
+
<div class="bg-white rounded-xl shadow-lg p-6 ai-pulse col-span-1">
|
| 40 |
+
<div class="flex items-center mb-4">
|
| 41 |
+
<i class="fas fa-robot text-blue-500 text-2xl mr-3"></i>
|
| 42 |
+
<h2 class="text-xl font-bold text-gray-800">AI Strategy Assistant</h2>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
<div class="mb-4">
|
| 46 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="api-key">
|
| 47 |
+
Enter your OpenAI API Key
|
| 48 |
+
</label>
|
| 49 |
+
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
| 50 |
+
id="api-key" type="password" placeholder="sk-...">
|
| 51 |
+
<p class="text-xs text-gray-500 mt-1">We don't store your API key. It's used only for your session.</p>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div class="mb-4">
|
| 55 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="ai-task">
|
| 56 |
+
What would you like help with?
|
| 57 |
+
</label>
|
| 58 |
+
<select class="shadow border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="ai-task">
|
| 59 |
+
<option value="">Select an option</option>
|
| 60 |
+
<option value="vision">Refine company vision</option>
|
| 61 |
+
<option value="goals">Generate SMART goals</option>
|
| 62 |
+
<option value="kpis">Suggest relevant KPIs</option>
|
| 63 |
+
<option value="initiatives">Brainstorm initiatives</option>
|
| 64 |
+
<option value="risks">Identify potential risks</option>
|
| 65 |
+
</select>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<button onclick="generateAISuggestion()" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded w-full flex items-center justify-center">
|
| 69 |
+
<i class="fas fa-magic mr-2"></i> Generate Suggestion
|
| 70 |
+
</button>
|
| 71 |
+
|
| 72 |
+
<div id="ai-output" class="mt-4 p-4 bg-gray-50 rounded-lg hidden">
|
| 73 |
+
<h3 class="font-bold text-gray-800 mb-2">AI Suggestion:</h3>
|
| 74 |
+
<p id="ai-suggestion-text" class="text-gray-700"></p>
|
| 75 |
+
<button onclick="applySuggestion()" class="mt-2 bg-green-500 hover:bg-green-700 text-white font-bold py-1 px-3 rounded text-sm">
|
| 76 |
+
Apply Suggestion
|
| 77 |
+
</button>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<!-- Main Plan Sections -->
|
| 82 |
+
<div class="lg:col-span-2 space-y-6">
|
| 83 |
+
<!-- Vision Section -->
|
| 84 |
+
<div class="bg-white rounded-xl shadow-lg p-6 plan-section">
|
| 85 |
+
<div class="flex items-center mb-4">
|
| 86 |
+
<i class="fas fa-eye text-purple-500 text-2xl mr-3"></i>
|
| 87 |
+
<h2 class="text-xl font-bold text-gray-800">Vision & Purpose</h2>
|
| 88 |
+
</div>
|
| 89 |
+
<div class="mb-4">
|
| 90 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="vision">
|
| 91 |
+
Our Core Purpose (Why we exist)
|
| 92 |
+
</label>
|
| 93 |
+
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
| 94 |
+
id="vision" rows="2" placeholder="Our fundamental reason for being..."></textarea>
|
| 95 |
+
</div>
|
| 96 |
+
<div>
|
| 97 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="future-state">
|
| 98 |
+
Future State (Where we're going)
|
| 99 |
+
</label>
|
| 100 |
+
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
| 101 |
+
id="future-state" rows="2" placeholder="Our aspirational future in 3-5 years..."></textarea>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
<!-- Goals Section -->
|
| 106 |
+
<div class="bg-white rounded-xl shadow-lg p-6 plan-section">
|
| 107 |
+
<div class="flex items-center mb-4">
|
| 108 |
+
<i class="fas fa-bullseye text-red-500 text-2xl mr-3"></i>
|
| 109 |
+
<h2 class="text-xl font-bold text-gray-800">Strategic Goals</h2>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="space-y-4" id="goals-container">
|
| 112 |
+
<div class="goal-item">
|
| 113 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mb-2"
|
| 114 |
+
placeholder="Specific, Measurable Goal">
|
| 115 |
+
<div class="flex justify-between">
|
| 116 |
+
<select class="shadow border rounded py-1 px-2 text-gray-700 text-sm focus:outline-none focus:shadow-outline">
|
| 117 |
+
<option>1 Year</option>
|
| 118 |
+
<option>3 Years</option>
|
| 119 |
+
<option>5 Years</option>
|
| 120 |
+
</select>
|
| 121 |
+
<button onclick="removeGoal(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 122 |
+
<i class="fas fa-trash"></i> Remove
|
| 123 |
+
</button>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
<button onclick="addGoal()" class="mt-4 bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded flex items-center">
|
| 128 |
+
<i class="fas fa-plus mr-2"></i> Add Goal
|
| 129 |
+
</button>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
|
| 134 |
+
<!-- Bottom Row -->
|
| 135 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 136 |
+
<!-- KPIs Section -->
|
| 137 |
+
<div class="bg-white rounded-xl shadow-lg p-6 plan-section">
|
| 138 |
+
<div class="flex items-center mb-4">
|
| 139 |
+
<i class="fas fa-chart-line text-green-500 text-2xl mr-3"></i>
|
| 140 |
+
<h2 class="text-xl font-bold text-gray-800">Key Performance Indicators</h2>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="space-y-4" id="kpis-container">
|
| 143 |
+
<div class="kpi-item">
|
| 144 |
+
<div class="flex">
|
| 145 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mr-2"
|
| 146 |
+
placeholder="KPI Name">
|
| 147 |
+
<input type="text" class="shadow appearance-none border rounded w-20 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
| 148 |
+
placeholder="Target">
|
| 149 |
+
</div>
|
| 150 |
+
<div class="flex justify-between mt-2">
|
| 151 |
+
<select class="shadow border rounded py-1 px-2 text-gray-700 text-sm focus:outline-none focus:shadow-outline">
|
| 152 |
+
<option>Monthly</option>
|
| 153 |
+
<option>Quarterly</option>
|
| 154 |
+
<option>Annually</option>
|
| 155 |
+
</select>
|
| 156 |
+
<button onclick="removeKPI(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 157 |
+
<i class="fas fa-trash"></i> Remove
|
| 158 |
+
</button>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
<button onclick="addKPI()" class="mt-4 bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded flex items-center">
|
| 163 |
+
<i class="fas fa-plus mr-2"></i> Add KPI
|
| 164 |
+
</button>
|
| 165 |
+
</div>
|
| 166 |
+
|
| 167 |
+
<!-- Initiatives Section -->
|
| 168 |
+
<div class="bg-white rounded-xl shadow-lg p-6 plan-section">
|
| 169 |
+
<div class="flex items-center mb-4">
|
| 170 |
+
<i class="fas fa-tasks text-yellow-500 text-2xl mr-3"></i>
|
| 171 |
+
<h2 class="text-xl font-bold text-gray-800">Key Initiatives</h2>
|
| 172 |
+
</div>
|
| 173 |
+
<div class="space-y-4" id="initiatives-container">
|
| 174 |
+
<div class="initiative-item">
|
| 175 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mb-2"
|
| 176 |
+
placeholder="Initiative Name">
|
| 177 |
+
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm mb-2"
|
| 178 |
+
rows="2" placeholder="Description"></textarea>
|
| 179 |
+
<div class="flex justify-between">
|
| 180 |
+
<select class="shadow border rounded py-1 px-2 text-gray-700 text-sm focus:outline-none focus:shadow-outline">
|
| 181 |
+
<option>Q1</option>
|
| 182 |
+
<option>Q2</option>
|
| 183 |
+
<option>Q3</option>
|
| 184 |
+
<option>Q4</option>
|
| 185 |
+
</select>
|
| 186 |
+
<button onclick="removeInitiative(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 187 |
+
<i class="fas fa-trash"></i> Remove
|
| 188 |
+
</button>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
<button onclick="addInitiative()" class="mt-4 bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded flex items-center">
|
| 193 |
+
<i class="fas fa-plus mr-2"></i> Add Initiative
|
| 194 |
+
</button>
|
| 195 |
+
</div>
|
| 196 |
+
|
| 197 |
+
<!-- Risks Section -->
|
| 198 |
+
<div class="bg-white rounded-xl shadow-lg p-6 plan-section">
|
| 199 |
+
<div class="flex items-center mb-4">
|
| 200 |
+
<i class="fas fa-exclamation-triangle text-orange-500 text-2xl mr-3"></i>
|
| 201 |
+
<h2 class="text-xl font-bold text-gray-800">Risks & Mitigations</h2>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="space-y-4" id="risks-container">
|
| 204 |
+
<div class="risk-item">
|
| 205 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mb-2"
|
| 206 |
+
placeholder="Potential Risk">
|
| 207 |
+
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm mb-2"
|
| 208 |
+
rows="2" placeholder="Mitigation Strategy"></textarea>
|
| 209 |
+
<div class="flex justify-end">
|
| 210 |
+
<button onclick="removeRisk(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 211 |
+
<i class="fas fa-trash"></i> Remove
|
| 212 |
+
</button>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
</div>
|
| 216 |
+
<button onclick="addRisk()" class="mt-4 bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded flex items-center">
|
| 217 |
+
<i class="fas fa-plus mr-2"></i> Add Risk
|
| 218 |
+
</button>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<!-- Export Button -->
|
| 223 |
+
<div class="mt-12 text-center">
|
| 224 |
+
<button onclick="exportPlan()" class="bg-blue-600 hover:bg-blue-800 text-white font-bold py-3 px-8 rounded-full text-lg flex items-center mx-auto">
|
| 225 |
+
<i class="fas fa-file-export mr-3"></i> Export Strategic Plan
|
| 226 |
+
</button>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
|
| 230 |
+
<script>
|
| 231 |
+
// Add new goal
|
| 232 |
+
function addGoal() {
|
| 233 |
+
const container = document.getElementById('goals-container');
|
| 234 |
+
const newGoal = document.createElement('div');
|
| 235 |
+
newGoal.className = 'goal-item mt-4';
|
| 236 |
+
newGoal.innerHTML = `
|
| 237 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mb-2"
|
| 238 |
+
placeholder="Specific, Measurable Goal">
|
| 239 |
+
<div class="flex justify-between">
|
| 240 |
+
<select class="shadow border rounded py-1 px-2 text-gray-700 text-sm focus:outline-none focus:shadow-outline">
|
| 241 |
+
<option>1 Year</option>
|
| 242 |
+
<option>3 Years</option>
|
| 243 |
+
<option>5 Years</option>
|
| 244 |
+
</select>
|
| 245 |
+
<button onclick="removeGoal(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 246 |
+
<i class="fas fa-trash"></i> Remove
|
| 247 |
+
</button>
|
| 248 |
+
</div>
|
| 249 |
+
`;
|
| 250 |
+
container.appendChild(newGoal);
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
// Remove goal
|
| 254 |
+
function removeGoal(button) {
|
| 255 |
+
button.closest('.goal-item').remove();
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
// Add new KPI
|
| 259 |
+
function addKPI() {
|
| 260 |
+
const container = document.getElementById('kpis-container');
|
| 261 |
+
const newKPI = document.createElement('div');
|
| 262 |
+
newKPI.className = 'kpi-item mt-4';
|
| 263 |
+
newKPI.innerHTML = `
|
| 264 |
+
<div class="flex">
|
| 265 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mr-2"
|
| 266 |
+
placeholder="KPI Name">
|
| 267 |
+
<input type="text" class="shadow appearance-none border rounded w-20 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
| 268 |
+
placeholder="Target">
|
| 269 |
+
</div>
|
| 270 |
+
<div class="flex justify-between mt-2">
|
| 271 |
+
<select class="shadow border rounded py-1 px-2 text-gray-700 text-sm focus:outline-none focus:shadow-outline">
|
| 272 |
+
<option>Monthly</option>
|
| 273 |
+
<option>Quarterly</option>
|
| 274 |
+
<option>Annually</option>
|
| 275 |
+
</select>
|
| 276 |
+
<button onclick="removeKPI(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 277 |
+
<i class="fas fa-trash"></i> Remove
|
| 278 |
+
</button>
|
| 279 |
+
</div>
|
| 280 |
+
`;
|
| 281 |
+
container.appendChild(newKPI);
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
// Remove KPI
|
| 285 |
+
function removeKPI(button) {
|
| 286 |
+
button.closest('.kpi-item').remove();
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
// Add new initiative
|
| 290 |
+
function addInitiative() {
|
| 291 |
+
const container = document.getElementById('initiatives-container');
|
| 292 |
+
const newInitiative = document.createElement('div');
|
| 293 |
+
newInitiative.className = 'initiative-item mt-4';
|
| 294 |
+
newInitiative.innerHTML = `
|
| 295 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mb-2"
|
| 296 |
+
placeholder="Initiative Name">
|
| 297 |
+
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm mb-2"
|
| 298 |
+
rows="2" placeholder="Description"></textarea>
|
| 299 |
+
<div class="flex justify-between">
|
| 300 |
+
<select class="shadow border rounded py-1 px-2 text-gray-700 text-sm focus:outline-none focus:shadow-outline">
|
| 301 |
+
<option>Q1</option>
|
| 302 |
+
<option>Q2</option>
|
| 303 |
+
<option>Q3</option>
|
| 304 |
+
<option>Q4</option>
|
| 305 |
+
</select>
|
| 306 |
+
<button onclick="removeInitiative(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 307 |
+
<i class="fas fa-trash"></i> Remove
|
| 308 |
+
</button>
|
| 309 |
+
</div>
|
| 310 |
+
`;
|
| 311 |
+
container.appendChild(newInitiative);
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
// Remove initiative
|
| 315 |
+
function removeInitiative(button) {
|
| 316 |
+
button.closest('.initiative-item').remove();
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
// Add new risk
|
| 320 |
+
function addRisk() {
|
| 321 |
+
const container = document.getElementById('risks-container');
|
| 322 |
+
const newRisk = document.createElement('div');
|
| 323 |
+
newRisk.className = 'risk-item mt-4';
|
| 324 |
+
newRisk.innerHTML = `
|
| 325 |
+
<input type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline mb-2"
|
| 326 |
+
placeholder="Potential Risk">
|
| 327 |
+
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm mb-2"
|
| 328 |
+
rows="2" placeholder="Mitigation Strategy"></textarea>
|
| 329 |
+
<div class="flex justify-end">
|
| 330 |
+
<button onclick="removeRisk(this)" class="text-red-500 hover:text-red-700 text-sm">
|
| 331 |
+
<i class="fas fa-trash"></i> Remove
|
| 332 |
+
</button>
|
| 333 |
+
</div>
|
| 334 |
+
`;
|
| 335 |
+
container.appendChild(newRisk);
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
// Remove risk
|
| 339 |
+
function removeRisk(button) {
|
| 340 |
+
button.closest('.risk-item').remove();
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
// Generate AI suggestion
|
| 344 |
+
async function generateAISuggestion() {
|
| 345 |
+
const apiKey = document.getElementById('api-key').value;
|
| 346 |
+
const task = document.getElementById('ai-task').value;
|
| 347 |
+
const vision = document.getElementById('vision').value;
|
| 348 |
+
const futureState = document.getElementById('future-state').value;
|
| 349 |
+
|
| 350 |
+
if (!apiKey) {
|
| 351 |
+
alert('Please enter your OpenAI API key');
|
| 352 |
+
return;
|
| 353 |
+
}
|
| 354 |
+
|
| 355 |
+
if (!task) {
|
| 356 |
+
alert('Please select what you need help with');
|
| 357 |
+
return;
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
const outputDiv = document.getElementById('ai-output');
|
| 361 |
+
const suggestionText = document.getElementById('ai-suggestion-text');
|
| 362 |
+
|
| 363 |
+
outputDiv.classList.remove('hidden');
|
| 364 |
+
suggestionText.textContent = "Generating suggestion...";
|
| 365 |
+
|
| 366 |
+
try {
|
| 367 |
+
let prompt = "";
|
| 368 |
+
|
| 369 |
+
switch(task) {
|
| 370 |
+
case 'vision':
|
| 371 |
+
prompt = `Based on the following information, suggest a refined company vision statement and future state description that is inspiring and clear. Current vision: ${vision}. Current future state: ${futureState}. Provide 2-3 options for each.`;
|
| 372 |
+
break;
|
| 373 |
+
case 'goals':
|
| 374 |
+
prompt = `Generate 3-5 SMART strategic goals that align with this vision: ${vision} and future state: ${futureState}. Make them specific, measurable, achievable, relevant, and time-bound.`;
|
| 375 |
+
break;
|
| 376 |
+
case 'kpis':
|
| 377 |
+
prompt = `Suggest 5-7 key performance indicators that would effectively measure progress toward achieving strategic goals aligned with this vision: ${vision}. For each KPI, suggest a realistic target.`;
|
| 378 |
+
break;
|
| 379 |
+
case 'initiatives':
|
| 380 |
+
prompt = `Brainstorm 4-6 strategic initiatives that would help achieve goals aligned with this vision: ${vision}. For each initiative, provide a brief description and suggest which quarter it should be implemented.`;
|
| 381 |
+
break;
|
| 382 |
+
case 'risks':
|
| 383 |
+
prompt = `Identify 3-5 potential risks that could hinder achieving strategic objectives aligned with this vision: ${vision}. For each risk, suggest a mitigation strategy.`;
|
| 384 |
+
break;
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
const response = await fetch('https://api.openai.com/v1/chat/completions', {
|
| 388 |
+
method: 'POST',
|
| 389 |
+
headers: {
|
| 390 |
+
'Content-Type': 'application/json',
|
| 391 |
+
'Authorization': `Bearer ${apiKey}`
|
| 392 |
+
},
|
| 393 |
+
body: JSON.stringify({
|
| 394 |
+
model: "gpt-3.5-turbo",
|
| 395 |
+
messages: [{role: "user", content: prompt}],
|
| 396 |
+
temperature: 0.7
|
| 397 |
+
})
|
| 398 |
+
});
|
| 399 |
+
|
| 400 |
+
const data = await response.json();
|
| 401 |
+
if (data.choices && data.choices[0].message.content) {
|
| 402 |
+
suggestionText.textContent = data.choices[0].message.content;
|
| 403 |
+
} else {
|
| 404 |
+
suggestionText.textContent = "Sorry, I couldn't generate a suggestion. Please try again.";
|
| 405 |
+
}
|
| 406 |
+
} catch (error) {
|
| 407 |
+
console.error('Error:', error);
|
| 408 |
+
suggestionText.textContent = "Error generating suggestion. Please check your API key and try again.";
|
| 409 |
+
}
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
// Apply AI suggestion
|
| 413 |
+
function applySuggestion() {
|
| 414 |
+
const task = document.getElementById('ai-task').value;
|
| 415 |
+
const suggestion = document.getElementById('ai-suggestion-text').textContent;
|
| 416 |
+
|
| 417 |
+
if (task === 'vision') {
|
| 418 |
+
document.getElementById('vision').value = suggestion;
|
| 419 |
+
} else if (task === 'future-state') {
|
| 420 |
+
document.getElementById('future-state').value = suggestion;
|
| 421 |
+
}
|
| 422 |
+
// Note: For other sections, you would need more complex parsing logic
|
| 423 |
+
// This is a simplified version for demonstration
|
| 424 |
+
|
| 425 |
+
alert('Suggestion applied to the relevant section');
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
// Export plan
|
| 429 |
+
function exportPlan() {
|
| 430 |
+
// In a real implementation, this would generate a PDF or Word document
|
| 431 |
+
alert('Strategic plan exported successfully!');
|
| 432 |
+
}
|
| 433 |
+
</script>
|
| 434 |
+
<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=JayStormX8/scaling-performance-dashboard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 435 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Build a comprehensive scaling up one page strategic plan that can be populated with ai use, you can customize it yourself or add in a api key
|