Spaces:
Running
Running
Commit ·
06d1b56
1
Parent(s): 4a54fbd
Restore Azure DevOps and Python modules, and update Prompt Engineering guide from previous session
Browse files- AzureDevops/index.html +0 -0
- Python/app.js +0 -0
- Python/index.html +460 -0
- prompt-engineering-guide/app.js +0 -0
- prompt-engineering-guide/index.html +254 -1514
AzureDevops/index.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Python/app.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Python/index.html
ADDED
|
@@ -0,0 +1,460 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
<html lang="en">
|
| 3 |
+
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>Python for Data Science & AI | Complete Masterclass</title>
|
| 8 |
+
<meta name="description"
|
| 9 |
+
content="Comprehensive Python for Data Science & AI curriculum. Python Fundamentals, NumPy, Pandas, Matplotlib, Scikit-learn, PyTorch, TensorFlow, Production Python, and Performance Optimization.">
|
| 10 |
+
<link rel="stylesheet" href="../shared/css/design-system.css">
|
| 11 |
+
<link rel="stylesheet" href="../shared/css/components.css">
|
| 12 |
+
<style>
|
| 13 |
+
:root {
|
| 14 |
+
--python-blue: #3776AB;
|
| 15 |
+
--python-yellow: #FFD43B;
|
| 16 |
+
--color-primary: var(--python-blue);
|
| 17 |
+
--color-secondary: var(--python-yellow);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
* {
|
| 21 |
+
margin: 0;
|
| 22 |
+
padding: 0;
|
| 23 |
+
box-sizing: border-box;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
body {
|
| 27 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 28 |
+
background: linear-gradient(135deg, #0a0f1e 0%, #1a1f3a 100%);
|
| 29 |
+
color: #e0e6ed;
|
| 30 |
+
line-height: 1.6;
|
| 31 |
+
min-height: 100vh;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.container {
|
| 35 |
+
max-width: 1400px;
|
| 36 |
+
margin: 0 auto;
|
| 37 |
+
padding: 2rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* Header */
|
| 41 |
+
header {
|
| 42 |
+
text-align: center;
|
| 43 |
+
margin-bottom: 3rem;
|
| 44 |
+
padding: 2rem 0;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
header h1 {
|
| 48 |
+
font-size: 3rem;
|
| 49 |
+
background: linear-gradient(135deg, var(--python-blue), var(--python-yellow));
|
| 50 |
+
-webkit-background-clip: text;
|
| 51 |
+
-webkit-text-fill-color: transparent;
|
| 52 |
+
background-clip: text;
|
| 53 |
+
margin-bottom: 0.5rem;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.subtitle {
|
| 57 |
+
font-size: 1.2rem;
|
| 58 |
+
color: #8892a6;
|
| 59 |
+
max-width: 700px;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.back-home {
|
| 64 |
+
display: inline-flex;
|
| 65 |
+
align-items: center;
|
| 66 |
+
gap: 0.5rem;
|
| 67 |
+
color: #8892a6;
|
| 68 |
+
text-decoration: none;
|
| 69 |
+
font-size: 0.9rem;
|
| 70 |
+
margin-bottom: 1.5rem;
|
| 71 |
+
transition: color 0.3s;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.back-home:hover {
|
| 75 |
+
color: var(--python-yellow);
|
| 76 |
+
text-decoration: none;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
/* Dashboard */
|
| 80 |
+
.dashboard {
|
| 81 |
+
display: none;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.dashboard.active {
|
| 85 |
+
display: block;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.modules-grid {
|
| 89 |
+
display: grid;
|
| 90 |
+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
| 91 |
+
gap: 2rem;
|
| 92 |
+
margin-bottom: 3rem;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.card {
|
| 96 |
+
background: rgba(255, 255, 255, 0.05);
|
| 97 |
+
border: 1px solid rgba(55, 118, 171, 0.3);
|
| 98 |
+
border-radius: 16px;
|
| 99 |
+
padding: 2rem;
|
| 100 |
+
cursor: pointer;
|
| 101 |
+
transition: all 0.3s ease;
|
| 102 |
+
position: relative;
|
| 103 |
+
overflow: hidden;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.card::before {
|
| 107 |
+
content: '';
|
| 108 |
+
position: absolute;
|
| 109 |
+
top: 0;
|
| 110 |
+
left: 0;
|
| 111 |
+
right: 0;
|
| 112 |
+
height: 4px;
|
| 113 |
+
background: linear-gradient(90deg, var(--python-blue), var(--python-yellow));
|
| 114 |
+
transform: scaleX(0);
|
| 115 |
+
transition: transform 0.3s ease;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
.card:hover::before {
|
| 119 |
+
transform: scaleX(1);
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.card:hover {
|
| 123 |
+
transform: translateY(-8px);
|
| 124 |
+
border-color: var(--python-blue);
|
| 125 |
+
box-shadow: 0 20px 40px rgba(55, 118, 171, 0.3);
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
.card-icon {
|
| 129 |
+
font-size: 3rem;
|
| 130 |
+
margin-bottom: 1rem;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
.card h3 {
|
| 134 |
+
font-size: 1.4rem;
|
| 135 |
+
color: var(--python-yellow);
|
| 136 |
+
margin-bottom: 0.5rem;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.card p {
|
| 140 |
+
color: #b3b9c5;
|
| 141 |
+
font-size: 0.95rem;
|
| 142 |
+
margin-bottom: 1rem;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.category-label {
|
| 146 |
+
display: inline-block;
|
| 147 |
+
padding: 0.25rem 0.75rem;
|
| 148 |
+
background: rgba(55, 118, 171, 0.2);
|
| 149 |
+
border: 1px solid var(--python-blue);
|
| 150 |
+
border-radius: 12px;
|
| 151 |
+
font-size: 0.75rem;
|
| 152 |
+
color: var(--python-blue);
|
| 153 |
+
font-weight: 600;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
/* Module View */
|
| 157 |
+
.module {
|
| 158 |
+
display: none;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
.module.active {
|
| 162 |
+
display: block;
|
| 163 |
+
animation: fadeIn 0.5s;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
@keyframes fadeIn {
|
| 167 |
+
from {
|
| 168 |
+
opacity: 0;
|
| 169 |
+
transform: translateY(20px);
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
to {
|
| 173 |
+
opacity: 1;
|
| 174 |
+
transform: translateY(0);
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
.btn-back {
|
| 179 |
+
background: linear-gradient(135deg, var(--python-blue), var(--python-yellow));
|
| 180 |
+
color: #fff;
|
| 181 |
+
border: none;
|
| 182 |
+
padding: 0.75rem 1.5rem;
|
| 183 |
+
border-radius: 8px;
|
| 184 |
+
cursor: pointer;
|
| 185 |
+
font-size: 1rem;
|
| 186 |
+
font-weight: 600;
|
| 187 |
+
margin-bottom: 2rem;
|
| 188 |
+
transition: all 0.3s;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
.btn-back:hover {
|
| 192 |
+
opacity: 0.9;
|
| 193 |
+
transform: translateX(-4px);
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
.module header h1 {
|
| 197 |
+
font-size: 2.5rem;
|
| 198 |
+
margin-bottom: 1rem;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
/* Tabs */
|
| 202 |
+
.tabs {
|
| 203 |
+
display: flex;
|
| 204 |
+
gap: 1rem;
|
| 205 |
+
margin: 2rem 0;
|
| 206 |
+
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
|
| 207 |
+
flex-wrap: wrap;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.tab-btn {
|
| 211 |
+
background: transparent;
|
| 212 |
+
border: none;
|
| 213 |
+
color: #8892a6;
|
| 214 |
+
padding: 1rem 1.5rem;
|
| 215 |
+
cursor: pointer;
|
| 216 |
+
font-size: 1rem;
|
| 217 |
+
border-bottom: 3px solid transparent;
|
| 218 |
+
transition: all 0.3s;
|
| 219 |
+
position: relative;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.tab-btn.active {
|
| 223 |
+
color: var(--python-yellow);
|
| 224 |
+
border-bottom-color: var(--python-yellow);
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
.tab-btn:hover {
|
| 228 |
+
color: #fff;
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
/* Tab Content */
|
| 232 |
+
.tab {
|
| 233 |
+
display: none;
|
| 234 |
+
animation: fadeIn 0.4s;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
.tab.active {
|
| 238 |
+
display: block;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.section {
|
| 242 |
+
background: rgba(255, 255, 255, 0.03);
|
| 243 |
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 244 |
+
border-radius: 12px;
|
| 245 |
+
padding: 2rem;
|
| 246 |
+
margin-bottom: 2rem;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.section h2 {
|
| 250 |
+
color: var(--python-yellow);
|
| 251 |
+
margin-bottom: 1.5rem;
|
| 252 |
+
font-size: 1.8rem;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
.section h3 {
|
| 256 |
+
color: var(--python-blue);
|
| 257 |
+
margin: 1.5rem 0 1rem;
|
| 258 |
+
font-size: 1.3rem;
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
/* Tables */
|
| 262 |
+
table {
|
| 263 |
+
width: 100%;
|
| 264 |
+
border-collapse: collapse;
|
| 265 |
+
margin: 1.5rem 0;
|
| 266 |
+
background: rgba(0, 0, 0, 0.2);
|
| 267 |
+
border-radius: 8px;
|
| 268 |
+
overflow: hidden;
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
th,
|
| 272 |
+
td {
|
| 273 |
+
padding: 1rem;
|
| 274 |
+
text-align: left;
|
| 275 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
th {
|
| 279 |
+
background: rgba(55, 118, 171, 0.3);
|
| 280 |
+
color: var(--python-yellow);
|
| 281 |
+
font-weight: 600;
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
tr:hover {
|
| 285 |
+
background: rgba(255, 255, 255, 0.03);
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
/* Code Blocks */
|
| 289 |
+
.code-block {
|
| 290 |
+
background: #0d1117;
|
| 291 |
+
border: 1px solid #30363d;
|
| 292 |
+
border-radius: 8px;
|
| 293 |
+
padding: 1.5rem;
|
| 294 |
+
margin: 1.5rem 0;
|
| 295 |
+
overflow-x: auto;
|
| 296 |
+
font-family: 'Fira Code', 'Consolas', monospace;
|
| 297 |
+
line-height: 1.6;
|
| 298 |
+
white-space: pre-wrap;
|
| 299 |
+
font-size: 0.9rem;
|
| 300 |
+
color: #ccc;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/* Syntax Highlighting */
|
| 304 |
+
.keyword {
|
| 305 |
+
color: #ff7b72;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
.string {
|
| 309 |
+
color: #a5d6ff;
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
.comment {
|
| 313 |
+
color: #8b949e;
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
.function {
|
| 317 |
+
color: #d2a8ff;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
.number {
|
| 321 |
+
color: #79c0ff;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
.class {
|
| 325 |
+
color: #ffa657;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
.preprocessor {
|
| 329 |
+
color: #7ee787;
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
/* Info Boxes */
|
| 333 |
+
.info-box {
|
| 334 |
+
background: linear-gradient(135deg, rgba(55, 118, 171, 0.08), rgba(255, 212, 59, 0.08));
|
| 335 |
+
border-left: 4px solid var(--python-blue);
|
| 336 |
+
border-radius: 8px;
|
| 337 |
+
padding: 1.5rem;
|
| 338 |
+
margin: 1.5rem 0;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
.box-title {
|
| 342 |
+
font-weight: 700;
|
| 343 |
+
color: var(--python-yellow);
|
| 344 |
+
margin-bottom: 0.75rem;
|
| 345 |
+
font-size: 1.1rem;
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
.box-content {
|
| 349 |
+
color: #d0d7de;
|
| 350 |
+
line-height: 1.7;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
/* Interview Box */
|
| 354 |
+
.interview-box {
|
| 355 |
+
background: linear-gradient(135deg, rgba(55, 118, 171, 0.08), rgba(255, 212, 59, 0.05));
|
| 356 |
+
border-left: 4px solid var(--python-yellow);
|
| 357 |
+
border-radius: 8px;
|
| 358 |
+
padding: 1.5rem;
|
| 359 |
+
margin: 1.5rem 0;
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
.interview-box strong {
|
| 363 |
+
color: var(--python-yellow);
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
/* Callouts */
|
| 367 |
+
.callout {
|
| 368 |
+
border-radius: 8px;
|
| 369 |
+
padding: 1rem 1.5rem;
|
| 370 |
+
margin: 1.5rem 0;
|
| 371 |
+
border-left: 4px solid;
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
.callout.tip {
|
| 375 |
+
background: rgba(46, 204, 113, 0.08);
|
| 376 |
+
border-color: #2ecc71;
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
.callout.warning {
|
| 380 |
+
background: rgba(255, 193, 7, 0.08);
|
| 381 |
+
border-color: #ffc107;
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
.callout.insight {
|
| 385 |
+
background: rgba(55, 118, 171, 0.08);
|
| 386 |
+
border-color: var(--python-blue);
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
+
.callout-title {
|
| 390 |
+
font-weight: 700;
|
| 391 |
+
margin-bottom: 0.5rem;
|
| 392 |
+
}
|
| 393 |
+
|
| 394 |
+
/* Comparison */
|
| 395 |
+
.comparison {
|
| 396 |
+
display: grid;
|
| 397 |
+
grid-template-columns: 1fr 1fr;
|
| 398 |
+
gap: 1.5rem;
|
| 399 |
+
margin: 1.5rem 0;
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
.comparison-bad {
|
| 403 |
+
background: rgba(255, 60, 60, 0.08);
|
| 404 |
+
border: 1px solid rgba(255, 60, 60, 0.25);
|
| 405 |
+
border-radius: 8px;
|
| 406 |
+
padding: 1.5rem;
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.comparison-good {
|
| 410 |
+
background: rgba(0, 255, 136, 0.08);
|
| 411 |
+
border: 1px solid rgba(0, 255, 136, 0.25);
|
| 412 |
+
border-radius: 8px;
|
| 413 |
+
padding: 1.5rem;
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
strong {
|
| 417 |
+
color: var(--python-yellow);
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
.hidden {
|
| 421 |
+
display: none;
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
@media (max-width: 768px) {
|
| 425 |
+
header h1 {
|
| 426 |
+
font-size: 2rem;
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
.comparison {
|
| 430 |
+
grid-template-columns: 1fr;
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
.modules-grid {
|
| 434 |
+
grid-template-columns: 1fr;
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
.container {
|
| 438 |
+
padding: 1rem;
|
| 439 |
+
}
|
| 440 |
+
}
|
| 441 |
+
</style>
|
| 442 |
+
</head>
|
| 443 |
+
|
| 444 |
+
<body>
|
| 445 |
+
<div class="container">
|
| 446 |
+
<div class="dashboard active" id="dashboard">
|
| 447 |
+
<a href="../index.html" class="back-home">← Back to Main Dashboard</a>
|
| 448 |
+
<header>
|
| 449 |
+
<h1>🐍 Python for Data Science & AI</h1>
|
| 450 |
+
<p class="subtitle">From Fundamentals to Production — NumPy · Pandas · Scikit-learn · PyTorch ·
|
| 451 |
+
TensorFlow · Performance Optimization</p>
|
| 452 |
+
</header>
|
| 453 |
+
<div class="modules-grid" id="modulesGrid"></div>
|
| 454 |
+
</div>
|
| 455 |
+
<div id="modulesContainer"></div>
|
| 456 |
+
</div>
|
| 457 |
+
<script src="app.js"></script>
|
| 458 |
+
</body>
|
| 459 |
+
|
| 460 |
+
</html>
|
prompt-engineering-guide/app.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
prompt-engineering-guide/index.html
CHANGED
|
@@ -1,10 +1,22 @@
|
|
| 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>Prompt Engineering Masterclass</title>
|
|
|
|
|
|
|
| 7 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
* {
|
| 9 |
margin: 0;
|
| 10 |
padding: 0;
|
|
@@ -12,1650 +24,378 @@
|
|
| 12 |
}
|
| 13 |
|
| 14 |
body {
|
| 15 |
-
font-family: -apple-system, BlinkMacSystemFont,
|
| 16 |
-
background
|
| 17 |
-
color: #
|
| 18 |
line-height: 1.6;
|
| 19 |
-
overflow-x: hidden;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
.app-container {
|
| 23 |
-
display: flex;
|
| 24 |
-
min-height: 100vh;
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
/* Sidebar */
|
| 28 |
-
.sidebar {
|
| 29 |
-
width: 280px;
|
| 30 |
-
background: #1a1a1a;
|
| 31 |
-
border-right: 1px solid #333;
|
| 32 |
-
position: fixed;
|
| 33 |
-
height: 100vh;
|
| 34 |
-
overflow-y: auto;
|
| 35 |
-
padding: 20px;
|
| 36 |
-
z-index: 100;
|
| 37 |
-
}
|
| 38 |
-
|
| 39 |
-
.sidebar-header {
|
| 40 |
-
margin-bottom: 30px;
|
| 41 |
-
}
|
| 42 |
-
|
| 43 |
-
.sidebar-header h1 {
|
| 44 |
-
font-size: 20px;
|
| 45 |
-
color: #0066FF;
|
| 46 |
-
margin-bottom: 5px;
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
.sidebar-header p {
|
| 50 |
-
font-size: 12px;
|
| 51 |
-
color: #888;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
.progress-bar {
|
| 55 |
-
width: 100%;
|
| 56 |
-
height: 4px;
|
| 57 |
-
background: #333;
|
| 58 |
-
border-radius: 2px;
|
| 59 |
-
margin: 15px 0;
|
| 60 |
-
overflow: hidden;
|
| 61 |
-
}
|
| 62 |
-
|
| 63 |
-
.progress-fill {
|
| 64 |
-
height: 100%;
|
| 65 |
-
background: linear-gradient(90deg, #0066FF, #00D9FF);
|
| 66 |
-
width: 0%;
|
| 67 |
-
transition: width 0.5s ease;
|
| 68 |
}
|
| 69 |
|
| 70 |
-
.
|
| 71 |
-
|
|
|
|
|
|
|
| 72 |
}
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
margin-bottom:
|
| 77 |
-
|
| 78 |
-
border-radius: 8px;
|
| 79 |
-
cursor: pointer;
|
| 80 |
-
transition: all 0.3s ease;
|
| 81 |
-
border-left: 3px solid transparent;
|
| 82 |
}
|
| 83 |
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
-
.
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
.topic-item h3 {
|
| 95 |
-
font-size: 14px;
|
| 96 |
-
margin-bottom: 3px;
|
| 97 |
-
color: #fff;
|
| 98 |
}
|
| 99 |
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
color: #888;
|
| 103 |
-
}
|
| 104 |
-
|
| 105 |
-
/* Main Content */
|
| 106 |
-
.main-content {
|
| 107 |
-
flex: 1;
|
| 108 |
-
margin-left: 280px;
|
| 109 |
-
padding: 40px;
|
| 110 |
-
max-width: 1200px;
|
| 111 |
-
}
|
| 112 |
-
|
| 113 |
-
.content-section {
|
| 114 |
display: none;
|
| 115 |
-
animation: fadeIn 0.5s ease;
|
| 116 |
}
|
| 117 |
|
| 118 |
-
.
|
| 119 |
display: block;
|
| 120 |
}
|
| 121 |
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
.section-header {
|
| 128 |
-
margin-bottom: 30px;
|
| 129 |
-
}
|
| 130 |
-
|
| 131 |
-
.section-header h2 {
|
| 132 |
-
font-size: 36px;
|
| 133 |
-
color: #00D9FF;
|
| 134 |
-
margin-bottom: 8px;
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
.section-header .subtitle {
|
| 138 |
-
font-size: 18px;
|
| 139 |
-
color: #888;
|
| 140 |
-
margin-bottom: 15px;
|
| 141 |
-
}
|
| 142 |
-
|
| 143 |
-
.section-header .description {
|
| 144 |
-
font-size: 16px;
|
| 145 |
-
color: #ccc;
|
| 146 |
-
line-height: 1.8;
|
| 147 |
}
|
| 148 |
|
| 149 |
-
/* Cards */
|
| 150 |
.card {
|
| 151 |
-
background:
|
| 152 |
-
border: 1px solid
|
| 153 |
-
border-radius:
|
| 154 |
-
padding:
|
| 155 |
-
|
| 156 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
| 157 |
}
|
| 158 |
|
| 159 |
-
.card:
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
.card p {
|
| 171 |
-
font-size: 15px;
|
| 172 |
-
color: #ccc;
|
| 173 |
-
line-height: 1.8;
|
| 174 |
}
|
| 175 |
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
padding: 18px 20px;
|
| 179 |
-
border-radius: 8px;
|
| 180 |
-
margin: 15px 0;
|
| 181 |
-
border-left: 4px solid;
|
| 182 |
-
font-size: 14px;
|
| 183 |
-
line-height: 1.6;
|
| 184 |
}
|
| 185 |
|
| 186 |
-
.
|
| 187 |
-
|
| 188 |
-
border-color:
|
| 189 |
-
|
| 190 |
}
|
| 191 |
|
| 192 |
-
.
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
color: #FF6B35;
|
| 196 |
}
|
| 197 |
|
| 198 |
-
.
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
}
|
| 203 |
|
| 204 |
-
.
|
| 205 |
-
|
|
|
|
|
|
|
| 206 |
}
|
| 207 |
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
|
|
|
| 212 |
border-radius: 12px;
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
.prompt-builder {
|
| 218 |
-
display: grid;
|
| 219 |
-
grid-template-columns: 1fr 1fr;
|
| 220 |
-
gap: 20px;
|
| 221 |
-
margin-top: 20px;
|
| 222 |
-
}
|
| 223 |
-
|
| 224 |
-
.prompt-component {
|
| 225 |
-
background: #1a1a1a;
|
| 226 |
-
padding: 15px;
|
| 227 |
-
border-radius: 8px;
|
| 228 |
-
border: 2px dashed #444;
|
| 229 |
-
}
|
| 230 |
-
|
| 231 |
-
.prompt-component h4 {
|
| 232 |
-
color: #0066FF;
|
| 233 |
-
font-size: 14px;
|
| 234 |
-
margin-bottom: 10px;
|
| 235 |
-
}
|
| 236 |
-
|
| 237 |
-
.prompt-component textarea {
|
| 238 |
-
width: 100%;
|
| 239 |
-
background: #222;
|
| 240 |
-
border: 1px solid #444;
|
| 241 |
-
color: #fff;
|
| 242 |
-
padding: 10px;
|
| 243 |
-
border-radius: 6px;
|
| 244 |
-
font-size: 14px;
|
| 245 |
-
font-family: inherit;
|
| 246 |
-
resize: vertical;
|
| 247 |
-
min-height: 80px;
|
| 248 |
-
}
|
| 249 |
-
|
| 250 |
-
.prompt-component textarea:focus {
|
| 251 |
-
outline: none;
|
| 252 |
-
border-color: #0066FF;
|
| 253 |
}
|
| 254 |
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
padding: 20px;
|
| 259 |
-
border-radius: 8px;
|
| 260 |
-
border: 2px solid #0066FF;
|
| 261 |
}
|
| 262 |
|
| 263 |
-
.
|
| 264 |
-
display:
|
| 265 |
-
|
| 266 |
-
border-radius: 20px;
|
| 267 |
-
font-weight: 600;
|
| 268 |
-
font-size: 14px;
|
| 269 |
-
margin-bottom: 15px;
|
| 270 |
}
|
| 271 |
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
.canvas-container {
|
| 278 |
-
position: relative;
|
| 279 |
-
width: 100%;
|
| 280 |
-
height: 400px;
|
| 281 |
-
background: #0a0a0a;
|
| 282 |
-
border: 2px solid #333;
|
| 283 |
-
border-radius: 12px;
|
| 284 |
-
margin: 25px 0;
|
| 285 |
-
overflow: hidden;
|
| 286 |
-
}
|
| 287 |
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
}
|
| 293 |
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
border: none;
|
|
|
|
| 298 |
border-radius: 8px;
|
| 299 |
-
font-size: 14px;
|
| 300 |
-
font-weight: 600;
|
| 301 |
cursor: pointer;
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
.btn-primary {
|
| 308 |
-
background: #0066FF;
|
| 309 |
-
color: #fff;
|
| 310 |
-
}
|
| 311 |
-
|
| 312 |
-
.btn-primary:hover {
|
| 313 |
-
background: #0052CC;
|
| 314 |
-
transform: translateY(-2px);
|
| 315 |
-
box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
|
| 316 |
}
|
| 317 |
|
| 318 |
-
.btn-
|
| 319 |
-
background: #
|
| 320 |
-
|
| 321 |
}
|
| 322 |
|
| 323 |
-
.
|
| 324 |
-
|
|
|
|
| 325 |
}
|
| 326 |
|
| 327 |
-
|
|
|
|
| 328 |
display: flex;
|
| 329 |
-
gap:
|
| 330 |
-
margin:
|
|
|
|
| 331 |
flex-wrap: wrap;
|
| 332 |
}
|
| 333 |
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
.slider-control label {
|
| 340 |
-
display: block;
|
| 341 |
-
color: #00D9FF;
|
| 342 |
-
font-size: 14px;
|
| 343 |
-
font-weight: 600;
|
| 344 |
-
margin-bottom: 10px;
|
| 345 |
-
}
|
| 346 |
-
|
| 347 |
-
.slider {
|
| 348 |
-
width: 100%;
|
| 349 |
-
height: 6px;
|
| 350 |
-
border-radius: 3px;
|
| 351 |
-
background: #333;
|
| 352 |
-
outline: none;
|
| 353 |
-
-webkit-appearance: none;
|
| 354 |
-
}
|
| 355 |
-
|
| 356 |
-
.slider::-webkit-slider-thumb {
|
| 357 |
-
-webkit-appearance: none;
|
| 358 |
-
appearance: none;
|
| 359 |
-
width: 20px;
|
| 360 |
-
height: 20px;
|
| 361 |
-
border-radius: 50%;
|
| 362 |
-
background: #0066FF;
|
| 363 |
cursor: pointer;
|
| 364 |
-
|
|
|
|
|
|
|
| 365 |
}
|
| 366 |
|
| 367 |
-
.
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
}
|
| 371 |
-
|
| 372 |
-
.slider::-moz-range-thumb {
|
| 373 |
-
width: 20px;
|
| 374 |
-
height: 20px;
|
| 375 |
-
border-radius: 50%;
|
| 376 |
-
background: #0066FF;
|
| 377 |
-
cursor: pointer;
|
| 378 |
-
border: none;
|
| 379 |
}
|
| 380 |
|
| 381 |
-
.
|
| 382 |
-
display: inline-block;
|
| 383 |
-
margin-left: 15px;
|
| 384 |
color: #fff;
|
| 385 |
-
font-weight: 600;
|
| 386 |
}
|
| 387 |
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
grid-template-columns: 1fr 1fr;
|
| 392 |
-
gap: 20px;
|
| 393 |
-
margin: 25px 0;
|
| 394 |
}
|
| 395 |
|
| 396 |
-
.
|
| 397 |
-
|
| 398 |
-
padding: 20px;
|
| 399 |
-
border-radius: 8px;
|
| 400 |
-
border: 2px solid #333;
|
| 401 |
}
|
| 402 |
|
| 403 |
-
|
| 404 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
}
|
| 406 |
|
| 407 |
-
.
|
| 408 |
-
|
|
|
|
|
|
|
| 409 |
}
|
| 410 |
|
| 411 |
-
.
|
| 412 |
-
|
| 413 |
-
|
|
|
|
| 414 |
}
|
| 415 |
|
| 416 |
-
|
| 417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 418 |
}
|
| 419 |
|
| 420 |
-
|
| 421 |
-
|
|
|
|
|
|
|
|
|
|
| 422 |
}
|
| 423 |
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
margin-top: 40px;
|
| 429 |
-
padding-top: 30px;
|
| 430 |
-
border-top: 1px solid #333;
|
| 431 |
}
|
| 432 |
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
display: grid;
|
| 436 |
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 437 |
-
gap: 20px;
|
| 438 |
-
margin: 25px 0;
|
| 439 |
}
|
| 440 |
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
|
|
|
| 444 |
border-radius: 8px;
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
}
|
| 453 |
-
|
| 454 |
-
.component-card h4 {
|
| 455 |
-
color: #0066FF;
|
| 456 |
-
font-size: 16px;
|
| 457 |
-
margin-bottom: 10px;
|
| 458 |
-
}
|
| 459 |
-
|
| 460 |
-
.component-card p {
|
| 461 |
-
font-size: 14px;
|
| 462 |
color: #ccc;
|
| 463 |
-
margin-bottom: 12px;
|
| 464 |
-
}
|
| 465 |
-
|
| 466 |
-
.component-card code {
|
| 467 |
-
display: block;
|
| 468 |
-
background: #0a0a0a;
|
| 469 |
-
padding: 10px;
|
| 470 |
-
border-radius: 4px;
|
| 471 |
-
font-size: 13px;
|
| 472 |
-
color: #00D9FF;
|
| 473 |
-
font-family: 'Courier New', monospace;
|
| 474 |
-
}
|
| 475 |
-
|
| 476 |
-
/* Steps */
|
| 477 |
-
.steps {
|
| 478 |
-
margin: 25px 0;
|
| 479 |
}
|
| 480 |
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
padding: 20px;
|
| 486 |
-
background: #1a1a1a;
|
| 487 |
border-radius: 8px;
|
| 488 |
-
|
|
|
|
| 489 |
}
|
| 490 |
|
| 491 |
-
.
|
| 492 |
-
flex-shrink: 0;
|
| 493 |
-
width: 40px;
|
| 494 |
-
height: 40px;
|
| 495 |
-
background: #0066FF;
|
| 496 |
-
color: #fff;
|
| 497 |
-
border-radius: 50%;
|
| 498 |
-
display: flex;
|
| 499 |
-
align-items: center;
|
| 500 |
-
justify-content: center;
|
| 501 |
font-weight: 700;
|
| 502 |
-
|
|
|
|
|
|
|
| 503 |
}
|
| 504 |
|
| 505 |
-
.
|
| 506 |
-
color: #
|
| 507 |
-
|
| 508 |
-
margin-bottom: 8px;
|
| 509 |
}
|
| 510 |
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 514 |
}
|
| 515 |
|
| 516 |
-
/*
|
| 517 |
-
.
|
| 518 |
-
|
|
|
|
|
|
|
|
|
|
| 519 |
}
|
| 520 |
|
| 521 |
-
.
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
margin-bottom: 15px;
|
| 525 |
}
|
| 526 |
|
| 527 |
-
.
|
| 528 |
-
|
| 529 |
-
|
| 530 |
}
|
| 531 |
|
| 532 |
-
.
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
border-left: 3px solid #00D9FF;
|
| 536 |
-
margin-bottom: 10px;
|
| 537 |
-
border-radius: 4px;
|
| 538 |
-
font-size: 14px;
|
| 539 |
}
|
| 540 |
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
margin: 20px 0;
|
| 545 |
}
|
| 546 |
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
cursor: pointer;
|
| 554 |
-
transition: all 0.3s ease;
|
| 555 |
-
display: flex;
|
| 556 |
-
align-items: center;
|
| 557 |
-
gap: 12px;
|
| 558 |
}
|
| 559 |
|
| 560 |
-
.
|
| 561 |
-
background:
|
|
|
|
|
|
|
|
|
|
| 562 |
}
|
| 563 |
|
| 564 |
-
.
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
|
|
|
| 568 |
}
|
| 569 |
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
color: #00FF88;
|
| 573 |
}
|
| 574 |
|
| 575 |
-
.
|
| 576 |
-
|
| 577 |
-
text-decoration: line-through;
|
| 578 |
}
|
| 579 |
|
| 580 |
-
/* Responsive */
|
| 581 |
@media (max-width: 768px) {
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
position: relative;
|
| 585 |
-
height: auto;
|
| 586 |
-
border-right: none;
|
| 587 |
-
border-bottom: 1px solid #333;
|
| 588 |
-
}
|
| 589 |
-
|
| 590 |
-
.main-content {
|
| 591 |
-
margin-left: 0;
|
| 592 |
-
padding: 20px;
|
| 593 |
}
|
| 594 |
|
| 595 |
-
.
|
| 596 |
-
.comparison,
|
| 597 |
-
.component-grid {
|
| 598 |
grid-template-columns: 1fr;
|
| 599 |
}
|
| 600 |
|
| 601 |
-
.
|
| 602 |
-
|
| 603 |
}
|
| 604 |
}
|
| 605 |
-
|
| 606 |
-
/* Template Library */
|
| 607 |
-
.template-library {
|
| 608 |
-
display: grid;
|
| 609 |
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 610 |
-
gap: 15px;
|
| 611 |
-
margin: 25px 0;
|
| 612 |
-
}
|
| 613 |
-
|
| 614 |
-
.template-item {
|
| 615 |
-
background: #1a1a1a;
|
| 616 |
-
padding: 18px;
|
| 617 |
-
border-radius: 8px;
|
| 618 |
-
border: 2px solid #333;
|
| 619 |
-
cursor: pointer;
|
| 620 |
-
transition: all 0.3s ease;
|
| 621 |
-
}
|
| 622 |
-
|
| 623 |
-
.template-item:hover {
|
| 624 |
-
border-color: #0066FF;
|
| 625 |
-
background: #222;
|
| 626 |
-
}
|
| 627 |
-
|
| 628 |
-
.template-item h5 {
|
| 629 |
-
color: #00D9FF;
|
| 630 |
-
font-size: 15px;
|
| 631 |
-
margin-bottom: 10px;
|
| 632 |
-
}
|
| 633 |
-
|
| 634 |
-
.template-item pre {
|
| 635 |
-
background: #0a0a0a;
|
| 636 |
-
padding: 12px;
|
| 637 |
-
border-radius: 4px;
|
| 638 |
-
font-size: 12px;
|
| 639 |
-
color: #ccc;
|
| 640 |
-
overflow-x: auto;
|
| 641 |
-
white-space: pre-wrap;
|
| 642 |
-
}
|
| 643 |
-
|
| 644 |
-
/* Practice Challenge */
|
| 645 |
-
.challenge-box {
|
| 646 |
-
background: linear-gradient(135deg, #0066FF22, #00D9FF22);
|
| 647 |
-
border: 2px solid #0066FF;
|
| 648 |
-
border-radius: 12px;
|
| 649 |
-
padding: 30px;
|
| 650 |
-
margin: 30px 0;
|
| 651 |
-
}
|
| 652 |
-
|
| 653 |
-
.challenge-box h3 {
|
| 654 |
-
color: #00D9FF;
|
| 655 |
-
margin-bottom: 15px;
|
| 656 |
-
}
|
| 657 |
-
|
| 658 |
-
.challenge-prompt {
|
| 659 |
-
background: #0a0a0a;
|
| 660 |
-
padding: 20px;
|
| 661 |
-
border-radius: 8px;
|
| 662 |
-
margin: 15px 0;
|
| 663 |
-
font-size: 14px;
|
| 664 |
-
color: #ccc;
|
| 665 |
-
}
|
| 666 |
-
|
| 667 |
-
.feedback {
|
| 668 |
-
background: #1a1a1a;
|
| 669 |
-
padding: 15px;
|
| 670 |
-
border-radius: 8px;
|
| 671 |
-
margin-top: 15px;
|
| 672 |
-
display: none;
|
| 673 |
-
}
|
| 674 |
-
|
| 675 |
-
.feedback.show {
|
| 676 |
-
display: block;
|
| 677 |
-
animation: slideDown 0.3s ease;
|
| 678 |
-
}
|
| 679 |
-
|
| 680 |
-
@keyframes slideDown {
|
| 681 |
-
from { opacity: 0; transform: translateY(-10px); }
|
| 682 |
-
to { opacity: 1; transform: translateY(0); }
|
| 683 |
-
}
|
| 684 |
-
|
| 685 |
-
/* Scenario Selector */
|
| 686 |
-
.scenario-selector {
|
| 687 |
-
display: flex;
|
| 688 |
-
gap: 12px;
|
| 689 |
-
margin: 20px 0;
|
| 690 |
-
flex-wrap: wrap;
|
| 691 |
-
}
|
| 692 |
-
|
| 693 |
-
.scenario-btn {
|
| 694 |
-
padding: 10px 18px;
|
| 695 |
-
background: #1a1a1a;
|
| 696 |
-
border: 2px solid #333;
|
| 697 |
-
border-radius: 8px;
|
| 698 |
-
color: #fff;
|
| 699 |
-
cursor: pointer;
|
| 700 |
-
transition: all 0.3s ease;
|
| 701 |
-
font-size: 14px;
|
| 702 |
-
}
|
| 703 |
-
|
| 704 |
-
.scenario-btn:hover {
|
| 705 |
-
border-color: #0066FF;
|
| 706 |
-
background: #222;
|
| 707 |
-
}
|
| 708 |
-
|
| 709 |
-
.scenario-btn.active {
|
| 710 |
-
border-color: #0066FF;
|
| 711 |
-
background: #0066FF22;
|
| 712 |
-
color: #00D9FF;
|
| 713 |
-
}
|
| 714 |
-
|
| 715 |
-
.hidden {
|
| 716 |
-
display: none;
|
| 717 |
-
}
|
| 718 |
</style>
|
| 719 |
</head>
|
| 720 |
-
<body>
|
| 721 |
-
<div class="app-container">
|
| 722 |
-
<!-- Sidebar -->
|
| 723 |
-
<aside class="sidebar">
|
| 724 |
-
<div class="sidebar-header">
|
| 725 |
-
<h1>Prompt Engineering</h1>
|
| 726 |
-
<p>Master the Art of AI Communication</p>
|
| 727 |
-
<div class="progress-bar">
|
| 728 |
-
<div class="progress-fill" id="progressBar"></div>
|
| 729 |
-
</div>
|
| 730 |
-
</div>
|
| 731 |
-
<ul class="topic-list" id="topicList"></ul>
|
| 732 |
-
</aside>
|
| 733 |
-
|
| 734 |
-
<!-- Main Content -->
|
| 735 |
-
<main class="main-content">
|
| 736 |
-
<!-- Topic 1: Introduction -->
|
| 737 |
-
<section class="content-section active" id="topic-1">
|
| 738 |
-
<div class="section-header">
|
| 739 |
-
<h2>Introduction to Prompt Engineering</h2>
|
| 740 |
-
<p class="subtitle">What Is It and Why Does It Matter?</p>
|
| 741 |
-
<p class="description">Learn the fundamentals of prompt engineering and why it's crucial in the AI era</p>
|
| 742 |
-
</div>
|
| 743 |
-
|
| 744 |
-
<div class="card">
|
| 745 |
-
<h3>What is Prompt Engineering?</h3>
|
| 746 |
-
<p>Prompt engineering is the art of writing clear, specific instructions for AI models to produce desired outputs. Think of it as learning to communicate effectively with an intelligent assistant.</p>
|
| 747 |
-
<p>Just like how you'd give detailed instructions to a colleague for important work, prompt engineering teaches you to craft precise, contextual requests that help AI understand exactly what you need.</p>
|
| 748 |
-
</div>
|
| 749 |
-
|
| 750 |
-
<div class="callout callout-insight">
|
| 751 |
-
<strong>💡 Insight:</strong> The difference between a vague and specific prompt can be 10x in output quality
|
| 752 |
-
</div>
|
| 753 |
-
|
| 754 |
-
<div class="card">
|
| 755 |
-
<h3>Real-World Analogy</h3>
|
| 756 |
-
<p><strong>Ordering Food:</strong></p>
|
| 757 |
-
<div class="comparison">
|
| 758 |
-
<div class="comparison-item bad">
|
| 759 |
-
<h4>❌ Vague Order</h4>
|
| 760 |
-
<p>"Give me something to eat."</p>
|
| 761 |
-
<p style="margin-top: 10px; font-size: 13px; color: #888;">Result: You might get anything - could be great, could be terrible, probably not what you wanted.</p>
|
| 762 |
-
</div>
|
| 763 |
-
<div class="comparison-item good">
|
| 764 |
-
<h4>✓ Detailed Order</h4>
|
| 765 |
-
<p>"I'd like a medium pepperoni pizza with thin crust, extra cheese, and light sauce. Please deliver it to 123 Main St by 7 PM."</p>
|
| 766 |
-
<p style="margin-top: 10px; font-size: 13px; color: #888;">Result: You get exactly what you wanted, when you wanted it.</p>
|
| 767 |
-
</div>
|
| 768 |
-
</div>
|
| 769 |
-
</div>
|
| 770 |
-
|
| 771 |
-
<div class="callout callout-tip">
|
| 772 |
-
<strong>✅ Tip:</strong> AI models don't read minds—be explicit about what you want
|
| 773 |
-
</div>
|
| 774 |
-
|
| 775 |
-
<div class="card">
|
| 776 |
-
<h3>Why Does It Matter?</h3>
|
| 777 |
-
<p>In today's AI-powered world, the ability to communicate effectively with AI systems is becoming as important as traditional communication skills. Good prompt engineering helps you:</p>
|
| 778 |
-
<ul style="margin-left: 20px; margin-top: 10px; color: #ccc;">
|
| 779 |
-
<li style="margin-bottom: 8px;">Save time by getting better results on the first try</li>
|
| 780 |
-
<li style="margin-bottom: 8px;">Unlock advanced AI capabilities for complex tasks</li>
|
| 781 |
-
<li style="margin-bottom: 8px;">Reduce errors and misunderstandings</li>
|
| 782 |
-
<li style="margin-bottom: 8px;">Boost productivity across all domains</li>
|
| 783 |
-
</ul>
|
| 784 |
-
</div>
|
| 785 |
-
|
| 786 |
-
<div class="card">
|
| 787 |
-
<h3>Key Applications</h3>
|
| 788 |
-
<div class="use-case-section">
|
| 789 |
-
<ul class="use-case-list">
|
| 790 |
-
<li>📧 Email writing and summarization</li>
|
| 791 |
-
<li>📊 Report generation and data analysis</li>
|
| 792 |
-
<li>💻 Code generation and debugging</li>
|
| 793 |
-
<li>✍️ Creative writing and content creation</li>
|
| 794 |
-
<li>🎓 Educational content and explanations</li>
|
| 795 |
-
</ul>
|
| 796 |
-
</div>
|
| 797 |
-
</div>
|
| 798 |
-
|
| 799 |
-
<div class="callout callout-mistake">
|
| 800 |
-
<strong>⚠️ Common Mistake:</strong> Assuming AI knows what you want without explicit instructions
|
| 801 |
-
</div>
|
| 802 |
-
|
| 803 |
-
<div class="card">
|
| 804 |
-
<h3>Summary & Key Takeaways</h3>
|
| 805 |
-
<ul class="checklist">
|
| 806 |
-
<li>Prompt engineering is about clear AI communication</li>
|
| 807 |
-
<li>Specificity dramatically improves output quality</li>
|
| 808 |
-
<li>It's a learnable skill that improves with practice</li>
|
| 809 |
-
<li>Applications span professional, technical, and creative domains</li>
|
| 810 |
-
</ul>
|
| 811 |
-
<div class="btn-group" style="margin-top: 20px;">
|
| 812 |
-
<button class="btn btn-primary" onclick="startPractice(1)">Try Practice Challenge</button>
|
| 813 |
-
</div>
|
| 814 |
-
</div>
|
| 815 |
-
|
| 816 |
-
<div class="nav-buttons">
|
| 817 |
-
<button class="btn btn-secondary" disabled>← Previous</button>
|
| 818 |
-
<button class="btn btn-primary" onclick="navigateTo(2)">Next: Prompt Structure →</button>
|
| 819 |
-
</div>
|
| 820 |
-
</section>
|
| 821 |
-
|
| 822 |
-
<!-- Topic 2: Prompt Structure -->
|
| 823 |
-
<section class="content-section" id="topic-2">
|
| 824 |
-
<div class="section-header">
|
| 825 |
-
<h2>Prompt Structure: The Building Blocks</h2>
|
| 826 |
-
<p class="subtitle">Role, Context, Task, and Format</p>
|
| 827 |
-
<p class="description">Master the four key components of effective prompts</p>
|
| 828 |
-
</div>
|
| 829 |
-
|
| 830 |
-
<div class="card">
|
| 831 |
-
<h3>The Four Components</h3>
|
| 832 |
-
<p>Every effective prompt has four essential building blocks. Understanding and using these components will transform your AI interactions.</p>
|
| 833 |
-
</div>
|
| 834 |
-
|
| 835 |
-
<div class="component-grid">
|
| 836 |
-
<div class="component-card">
|
| 837 |
-
<h4>1. Role</h4>
|
| 838 |
-
<p>What persona should the AI adopt?</p>
|
| 839 |
-
<code>"You are an expert marketing consultant"</code>
|
| 840 |
-
</div>
|
| 841 |
-
<div class="component-card">
|
| 842 |
-
<h4>2. Context</h4>
|
| 843 |
-
<p>What background information is important?</p>
|
| 844 |
-
<code>"We just launched a new coffee shop in Manhattan"</code>
|
| 845 |
-
</div>
|
| 846 |
-
<div class="component-card">
|
| 847 |
-
<h4>3. Task</h4>
|
| 848 |
-
<p>What exactly should the AI do?</p>
|
| 849 |
-
<code>"Generate 5 creative marketing strategies"</code>
|
| 850 |
-
</div>
|
| 851 |
-
<div class="component-card">
|
| 852 |
-
<h4>4. Format</h4>
|
| 853 |
-
<p>How should the output be structured?</p>
|
| 854 |
-
<code>"Provide as bullet points with pros and cons"</code>
|
| 855 |
-
</div>
|
| 856 |
-
</div>
|
| 857 |
-
|
| 858 |
-
<div class="callout callout-insight">
|
| 859 |
-
<strong>💡 Insight:</strong> Context is king—more information usually means better output
|
| 860 |
-
</div>
|
| 861 |
-
|
| 862 |
-
<div class="interactive-demo">
|
| 863 |
-
<h3 style="color: #00D9FF; margin-bottom: 20px;">Interactive Prompt Builder</h3>
|
| 864 |
-
<p style="color: #888; margin-bottom: 15px;">Fill in each component and watch the quality grade update in real-time:</p>
|
| 865 |
-
|
| 866 |
-
<div class="prompt-builder">
|
| 867 |
-
<div class="prompt-component">
|
| 868 |
-
<h4>Role</h4>
|
| 869 |
-
<textarea id="roleInput" placeholder="e.g., You are a senior software engineer..." oninput="updatePromptQuality()"></textarea>
|
| 870 |
-
</div>
|
| 871 |
-
<div class="prompt-component">
|
| 872 |
-
<h4>Context</h4>
|
| 873 |
-
<textarea id="contextInput" placeholder="e.g., Working on a mobile app for..." oninput="updatePromptQuality()"></textarea>
|
| 874 |
-
</div>
|
| 875 |
-
<div class="prompt-component">
|
| 876 |
-
<h4>Task</h4>
|
| 877 |
-
<textarea id="taskInput" placeholder="e.g., Write a function that..." oninput="updatePromptQuality()"></textarea>
|
| 878 |
-
</div>
|
| 879 |
-
<div class="prompt-component">
|
| 880 |
-
<h4>Format</h4>
|
| 881 |
-
<textarea id="formatInput" placeholder="e.g., Provide code with comments..." oninput="updatePromptQuality()"></textarea>
|
| 882 |
-
</div>
|
| 883 |
-
<div class="output-preview">
|
| 884 |
-
<span class="quality-grade grade-poor" id="qualityGrade">Quality: Poor</span>
|
| 885 |
-
<h4 style="color: #00D9FF; margin-bottom: 10px;">Combined Prompt:</h4>
|
| 886 |
-
<p id="combinedPrompt" style="color: #ccc; font-size: 14px;">Start filling in the components above...</p>
|
| 887 |
-
</div>
|
| 888 |
-
</div>
|
| 889 |
-
</div>
|
| 890 |
-
|
| 891 |
-
<div class="callout callout-tip">
|
| 892 |
-
<strong>✅ Tip:</strong> Start with clear action verbs: Write, Analyze, Explain, Generate, Debug
|
| 893 |
-
</div>
|
| 894 |
-
|
| 895 |
-
<div class="canvas-container">
|
| 896 |
-
<canvas id="structureCanvas"></canvas>
|
| 897 |
-
</div>
|
| 898 |
-
|
| 899 |
-
<div class="card">
|
| 900 |
-
<h3>Summary & Key Takeaways</h3>
|
| 901 |
-
<ul class="checklist">
|
| 902 |
-
<li>All four components work together for best results</li>
|
| 903 |
-
<li>Role sets the AI's perspective and expertise level</li>
|
| 904 |
-
<li>Context provides necessary background information</li>
|
| 905 |
-
<li>Task defines the specific action you want</li>
|
| 906 |
-
<li>Format ensures output matches your needs</li>
|
| 907 |
-
</ul>
|
| 908 |
-
</div>
|
| 909 |
-
|
| 910 |
-
<div class="nav-buttons">
|
| 911 |
-
<button class="btn btn-secondary" onclick="navigateTo(1)">← Previous</button>
|
| 912 |
-
<button class="btn btn-primary" onclick="navigateTo(3)">Next: Clarity & Specificity →</button>
|
| 913 |
-
</div>
|
| 914 |
-
</section>
|
| 915 |
-
|
| 916 |
-
<!-- Topic 3: Clarity and Specificity -->
|
| 917 |
-
<section class="content-section" id="topic-3">
|
| 918 |
-
<div class="section-header">
|
| 919 |
-
<h2>Clarity and Specificity</h2>
|
| 920 |
-
<p class="subtitle">Writing Precise Prompts</p>
|
| 921 |
-
<p class="description">Learn how to eliminate ambiguity and get better results</p>
|
| 922 |
-
</div>
|
| 923 |
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
<
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
<div class="comparison" style="margin-top: 20px;">
|
| 936 |
-
<div class="comparison-item bad">
|
| 937 |
-
<h4>❌ Vague Prompt</h4>
|
| 938 |
-
<p style="font-family: monospace; font-size: 13px;">"Write something about AI"</p>
|
| 939 |
-
</div>
|
| 940 |
-
<div class="comparison-item good">
|
| 941 |
-
<h4>✓ Specific Prompt</h4>
|
| 942 |
-
<p style="font-family: monospace; font-size: 13px;">"Write a 200-word beginner's guide explaining how machine learning works, using a coffee shop analogy"</p>
|
| 943 |
-
</div>
|
| 944 |
-
</div>
|
| 945 |
-
|
| 946 |
-
<div class="comparison" style="margin-top: 20px;">
|
| 947 |
-
<div class="comparison-item bad">
|
| 948 |
-
<h4>❌ Vague Prompt</h4>
|
| 949 |
-
<p style="font-family: monospace; font-size: 13px;">"Fix my code"</p>
|
| 950 |
-
</div>
|
| 951 |
-
<div class="comparison-item good">
|
| 952 |
-
<h4>✓ Specific Prompt</h4>
|
| 953 |
-
<p style="font-family: monospace; font-size: 13px;">"I have a Python function that calculates factorial but it returns wrong results for numbers > 10. Here's the code: [code]. What's the bug and how do I fix it?"</p>
|
| 954 |
-
</div>
|
| 955 |
-
</div>
|
| 956 |
-
</div>
|
| 957 |
-
|
| 958 |
-
<div class="callout callout-mistake">
|
| 959 |
-
<strong>⚠️ Common Mistake:</strong> Not specifying output format, then being surprised by format
|
| 960 |
-
</div>
|
| 961 |
-
|
| 962 |
-
<div class="interactive-demo">
|
| 963 |
-
<h3 style="color: #00D9FF; margin-bottom: 20px;">Specificity Slider</h3>
|
| 964 |
-
<p style="color: #888; margin-bottom: 15px;">Adjust the specificity level and see how the prompt improves:</p>
|
| 965 |
-
|
| 966 |
-
<div class="slider-control">
|
| 967 |
-
<label>Specificity Level: <span class="slider-value" id="specificityValue">1</span>/5</label>
|
| 968 |
-
<input type="range" min="1" max="5" value="1" class="slider" id="specificitySlider" oninput="updateSpecificity()">
|
| 969 |
-
</div>
|
| 970 |
-
|
| 971 |
-
<div style="margin-top: 25px; background: #1a1a1a; padding: 20px; border-radius: 8px;">
|
| 972 |
-
<h4 style="color: #00D9FF; margin-bottom: 12px;">Current Prompt:</h4>
|
| 973 |
-
<p id="specificityPrompt" style="color: #ccc; font-size: 14px; line-height: 1.8;"></p>
|
| 974 |
-
<div style="margin-top: 15px; padding: 12px; background: #0a0a0a; border-radius: 6px;">
|
| 975 |
-
<strong style="color: #00D9FF;">Expected Quality:</strong>
|
| 976 |
-
<span id="specificityQuality" style="margin-left: 10px;"></span>
|
| 977 |
-
</div>
|
| 978 |
-
</div>
|
| 979 |
-
</div>
|
| 980 |
-
|
| 981 |
-
<div class="callout callout-tip">
|
| 982 |
-
<strong>✅ Tip:</strong> Use phrases like 'For a 10th-grade student' to guide tone and complexity
|
| 983 |
-
</div>
|
| 984 |
-
|
| 985 |
-
<div class="card">
|
| 986 |
-
<h3>Key Elements of Specific Prompts</h3>
|
| 987 |
-
<div class="steps">
|
| 988 |
-
<div class="step">
|
| 989 |
-
<div class="step-number">1</div>
|
| 990 |
-
<div class="step-content">
|
| 991 |
-
<h4>Define Clear Objectives</h4>
|
| 992 |
-
<p>State exactly what you want to achieve</p>
|
| 993 |
-
</div>
|
| 994 |
-
</div>
|
| 995 |
-
<div class="step">
|
| 996 |
-
<div class="step-number">2</div>
|
| 997 |
-
<div class="step-content">
|
| 998 |
-
<h4>Set Constraints</h4>
|
| 999 |
-
<p>Specify length, style, tone, or other limitations</p>
|
| 1000 |
-
</div>
|
| 1001 |
-
</div>
|
| 1002 |
-
<div class="step">
|
| 1003 |
-
<div class="step-number">3</div>
|
| 1004 |
-
<div class="step-content">
|
| 1005 |
-
<h4>Provide Examples</h4>
|
| 1006 |
-
<p>Show the AI what good output looks like</p>
|
| 1007 |
-
</div>
|
| 1008 |
-
</div>
|
| 1009 |
-
<div class="step">
|
| 1010 |
-
<div class="step-number">4</div>
|
| 1011 |
-
<div class="step-content">
|
| 1012 |
-
<h4>Specify Audience</h4>
|
| 1013 |
-
<p>Indicate who will consume the output</p>
|
| 1014 |
-
</div>
|
| 1015 |
-
</div>
|
| 1016 |
-
</div>
|
| 1017 |
-
</div>
|
| 1018 |
-
|
| 1019 |
-
<div class="card">
|
| 1020 |
-
<h3>Summary & Key Takeaways</h3>
|
| 1021 |
-
<ul class="checklist">
|
| 1022 |
-
<li>Vague prompts lead to unpredictable results</li>
|
| 1023 |
-
<li>Add specific details: length, format, style, audience</li>
|
| 1024 |
-
<li>Include examples when possible</li>
|
| 1025 |
-
<li>Set clear constraints and boundaries</li>
|
| 1026 |
-
<li>Think about edge cases and clarify them</li>
|
| 1027 |
-
</ul>
|
| 1028 |
-
</div>
|
| 1029 |
-
|
| 1030 |
-
<div class="nav-buttons">
|
| 1031 |
-
<button class="btn btn-secondary" onclick="navigateTo(2)">← Previous</button>
|
| 1032 |
-
<button class="btn btn-primary" onclick="navigateTo(4)">Next: Context & Background →</button>
|
| 1033 |
-
</div>
|
| 1034 |
-
</section>
|
| 1035 |
-
|
| 1036 |
-
<!-- Topic 4: Context and Background -->
|
| 1037 |
-
<section class="content-section" id="topic-4">
|
| 1038 |
-
<div class="section-header">
|
| 1039 |
-
<h2>Context and Background</h2>
|
| 1040 |
-
<p class="subtitle">Providing Enough Information</p>
|
| 1041 |
-
<p class="description">Give AI the full picture for better outputs</p>
|
| 1042 |
-
</div>
|
| 1043 |
-
|
| 1044 |
-
<div class="card">
|
| 1045 |
-
<h3>Why Context Matters</h3>
|
| 1046 |
-
<p>Context is the background information that helps AI understand the bigger picture. Without proper context, even the most specific task instructions can lead to irrelevant results.</p>
|
| 1047 |
-
<p style="margin-top: 15px;">Think of context as the frame around a painting—it helps define boundaries and provides essential information for interpretation.</p>
|
| 1048 |
-
</div>
|
| 1049 |
-
|
| 1050 |
-
<div class="callout callout-insight">
|
| 1051 |
-
<strong>💡 Insight:</strong> Format specification prevents surprises in AI responses
|
| 1052 |
-
</div>
|
| 1053 |
-
|
| 1054 |
-
<div class="card">
|
| 1055 |
-
<h3>Essential Context Elements</h3>
|
| 1056 |
-
<div class="component-grid">
|
| 1057 |
-
<div class="component-card">
|
| 1058 |
-
<h4>📄 Relevant Documents</h4>
|
| 1059 |
-
<p>Include or reference important files, data, or prior conversations</p>
|
| 1060 |
-
</div>
|
| 1061 |
-
<div class="component-card">
|
| 1062 |
-
<h4>🎯 Target Audience</h4>
|
| 1063 |
-
<p>Specify who will use or read the output</p>
|
| 1064 |
-
</div>
|
| 1065 |
-
<div class="component-card">
|
| 1066 |
-
<h4>⚙️ Constraints</h4>
|
| 1067 |
-
<p>Mention technical, budget, or time limitations</p>
|
| 1068 |
-
</div>
|
| 1069 |
-
<div class="component-card">
|
| 1070 |
-
<h4>🎨 Brand Voice</h4>
|
| 1071 |
-
<p>Describe tone, style, or brand guidelines</p>
|
| 1072 |
-
</div>
|
| 1073 |
-
</div>
|
| 1074 |
-
</div>
|
| 1075 |
-
|
| 1076 |
-
<div class="callout callout-tip">
|
| 1077 |
-
<strong>✅ Tip:</strong> Include examples of good output in your prompt
|
| 1078 |
-
</div>
|
| 1079 |
-
|
| 1080 |
-
<div class="card">
|
| 1081 |
-
<h3>Context Levels Comparison</h3>
|
| 1082 |
-
<div class="interactive-demo">
|
| 1083 |
-
<div class="scenario-selector">
|
| 1084 |
-
<button class="scenario-btn active" onclick="showContextExample('minimal')">Minimal Context</button>
|
| 1085 |
-
<button class="scenario-btn" onclick="showContextExample('moderate')">Moderate Context</button>
|
| 1086 |
-
<button class="scenario-btn" onclick="showContextExample('rich')">Rich Context</button>
|
| 1087 |
-
</div>
|
| 1088 |
-
|
| 1089 |
-
<div id="contextExample" style="margin-top: 20px; background: #1a1a1a; padding: 20px; border-radius: 8px;">
|
| 1090 |
-
<h4 style="color: #00D9FF; margin-bottom: 12px;">Prompt Example:</h4>
|
| 1091 |
-
<p id="contextPromptText" style="color: #ccc; line-height: 1.8;"></p>
|
| 1092 |
-
<div style="margin-top: 15px; padding: 12px; background: #0a0a0a; border-radius: 6px;">
|
| 1093 |
-
<strong style="color: #00D9FF;">Output Quality:</strong>
|
| 1094 |
-
<span id="contextQuality" style="margin-left: 10px;"></span>
|
| 1095 |
-
</div>
|
| 1096 |
-
</div>
|
| 1097 |
-
</div>
|
| 1098 |
-
</div>
|
| 1099 |
-
|
| 1100 |
-
<div class="callout callout-mistake">
|
| 1101 |
-
<strong>⚠️ Common Mistake:</strong> Providing too little context about your problem
|
| 1102 |
-
</div>
|
| 1103 |
-
|
| 1104 |
-
<div class="card">
|
| 1105 |
-
<h3>Best Practices for Context</h3>
|
| 1106 |
-
<ul style="margin-left: 20px; margin-top: 15px; color: #ccc;">
|
| 1107 |
-
<li style="margin-bottom: 12px;"><strong style="color: #00D9FF;">Be comprehensive but focused:</strong> Include all relevant information without overwhelming details</li>
|
| 1108 |
-
<li style="margin-bottom: 12px;"><strong style="color: #00D9FF;">Front-load important context:</strong> Put crucial information at the beginning</li>
|
| 1109 |
-
<li style="margin-bottom: 12px;"><strong style="color: #00D9FF;">Use examples:</strong> Show the AI what success looks like</li>
|
| 1110 |
-
<li style="margin-bottom: 12px;"><strong style="color: #00D9FF;">Mention constraints:</strong> Be upfront about limitations</li>
|
| 1111 |
-
<li style="margin-bottom: 12px;"><strong style="color: #00D9FF;">Define your audience:</strong> Specify who will consume the output</li>
|
| 1112 |
-
</ul>
|
| 1113 |
-
</div>
|
| 1114 |
-
|
| 1115 |
-
<div class="canvas-container">
|
| 1116 |
-
<canvas id="contextCanvas"></canvas>
|
| 1117 |
-
</div>
|
| 1118 |
-
|
| 1119 |
-
<div class="card">
|
| 1120 |
-
<h3>Summary & Key Takeaways</h3>
|
| 1121 |
-
<ul class="checklist">
|
| 1122 |
-
<li>Context provides the frame for AI to understand your request</li>
|
| 1123 |
-
<li>Include relevant documents and background information</li>
|
| 1124 |
-
<li>Specify target audience and use cases</li>
|
| 1125 |
-
<li>Mention constraints and limitations upfront</li>
|
| 1126 |
-
<li>Provide examples of desired output when possible</li>
|
| 1127 |
-
</ul>
|
| 1128 |
-
</div>
|
| 1129 |
-
|
| 1130 |
-
<div class="nav-buttons">
|
| 1131 |
-
<button class="btn btn-secondary" onclick="navigateTo(3)">← Previous</button>
|
| 1132 |
-
<button class="btn btn-primary" onclick="navigateTo(5)">Next: Output Format →</button>
|
| 1133 |
-
</div>
|
| 1134 |
-
</section>
|
| 1135 |
-
|
| 1136 |
-
<!-- Topic 5: Output Format -->
|
| 1137 |
-
<section class="content-section" id="topic-5">
|
| 1138 |
-
<div class="section-header">
|
| 1139 |
-
<h2>Output Format and Constraints</h2>
|
| 1140 |
-
<p class="subtitle">Specifying Desired Output</p>
|
| 1141 |
-
<p class="description">Control exactly how the AI structures its response</p>
|
| 1142 |
-
</div>
|
| 1143 |
-
|
| 1144 |
-
<div class="card">
|
| 1145 |
-
<h3>Why Format Matters</h3>
|
| 1146 |
-
<p>Specifying the output format ensures you get results in a structure that's immediately useful. Without format guidance, AI might provide information in a way that requires significant reformatting.</p>
|
| 1147 |
-
</div>
|
| 1148 |
-
|
| 1149 |
-
<div class="callout callout-tip">
|
| 1150 |
-
<strong>✅ Tip:</strong> Keep prompts focused on one main task
|
| 1151 |
-
</div>
|
| 1152 |
-
|
| 1153 |
-
<div class="card">
|
| 1154 |
-
<h3>Common Output Formats</h3>
|
| 1155 |
-
<div class="component-grid">
|
| 1156 |
-
<div class="component-card">
|
| 1157 |
-
<h4>📝 Structured List</h4>
|
| 1158 |
-
<p>Organized points with clear hierarchy</p>
|
| 1159 |
-
<code>"Return as numbered list with brief explanations"</code>
|
| 1160 |
-
</div>
|
| 1161 |
-
<div class="component-card">
|
| 1162 |
-
<h4>📊 Table Format</h4>
|
| 1163 |
-
<p>Data organized in rows and columns</p>
|
| 1164 |
-
<code>"Create a comparison table with 3 columns: Feature, Pros, Cons"</code>
|
| 1165 |
-
</div>
|
| 1166 |
-
<div class="component-card">
|
| 1167 |
-
<h4>📖 Narrative</h4>
|
| 1168 |
-
<p>Flowing prose or storytelling format</p>
|
| 1169 |
-
<code>"Write as a 3-paragraph narrative explanation"</code>
|
| 1170 |
-
</div>
|
| 1171 |
-
<div class="component-card">
|
| 1172 |
-
<h4>💻 Code Block</h4>
|
| 1173 |
-
<p>Formatted code with explanations</p>
|
| 1174 |
-
<code>"Provide Python code with comments explaining each step"</code>
|
| 1175 |
-
</div>
|
| 1176 |
-
</div>
|
| 1177 |
-
</div>
|
| 1178 |
-
|
| 1179 |
-
<div class="callout callout-insight">
|
| 1180 |
-
<strong>💡 Insight:</strong> Save and reuse effective prompts as templates
|
| 1181 |
-
</div>
|
| 1182 |
-
|
| 1183 |
-
<div class="interactive-demo">
|
| 1184 |
-
<h3 style="color: #00D9FF; margin-bottom: 20px;">Format Selector</h3>
|
| 1185 |
-
<p style="color: #888; margin-bottom: 15px;">Choose a format and see how to specify it in your prompt:</p>
|
| 1186 |
-
|
| 1187 |
-
<div class="scenario-selector">
|
| 1188 |
-
<button class="scenario-btn active" onclick="showFormatExample('list')">List</button>
|
| 1189 |
-
<button class="scenario-btn" onclick="showFormatExample('table')">Table</button>
|
| 1190 |
-
<button class="scenario-btn" onclick="showFormatExample('narrative')">Narrative</button>
|
| 1191 |
-
<button class="scenario-btn" onclick="showFormatExample('code')">Code</button>
|
| 1192 |
-
<button class="scenario-btn" onclick="showFormatExample('json')">JSON</button>
|
| 1193 |
-
</div>
|
| 1194 |
-
|
| 1195 |
-
<div id="formatExample" style="margin-top: 20px; background: #1a1a1a; padding: 20px; border-radius: 8px;">
|
| 1196 |
-
<h4 style="color: #00D9FF; margin-bottom: 12px;">Format Specification:</h4>
|
| 1197 |
-
<p id="formatPromptText" style="color: #ccc; line-height: 1.8; margin-bottom: 15px;"></p>
|
| 1198 |
-
<h4 style="color: #00D9FF; margin-bottom: 12px;">Example Output:</h4>
|
| 1199 |
-
<pre id="formatOutputExample" style="background: #0a0a0a; padding: 15px; border-radius: 6px; color: #ccc; overflow-x: auto;"></pre>
|
| 1200 |
-
</div>
|
| 1201 |
-
</div>
|
| 1202 |
-
|
| 1203 |
-
<div class="callout callout-mistake">
|
| 1204 |
-
<strong>⚠️ Common Mistake:</strong> Asking too many things in one prompt
|
| 1205 |
-
</div>
|
| 1206 |
-
|
| 1207 |
-
<div class="card">
|
| 1208 |
-
<h3>Setting Effective Constraints</h3>
|
| 1209 |
-
<div class="steps">
|
| 1210 |
-
<div class="step">
|
| 1211 |
-
<div class="step-number">1</div>
|
| 1212 |
-
<div class="step-content">
|
| 1213 |
-
<h4>Length Constraints</h4>
|
| 1214 |
-
<p>Specify word count, character limit, or number of items</p>
|
| 1215 |
-
</div>
|
| 1216 |
-
</div>
|
| 1217 |
-
<div class="step">
|
| 1218 |
-
<div class="step-number">2</div>
|
| 1219 |
-
<div class="step-content">
|
| 1220 |
-
<h4>Style Guidelines</h4>
|
| 1221 |
-
<p>Define tone, formality, and writing style</p>
|
| 1222 |
-
</div>
|
| 1223 |
-
</div>
|
| 1224 |
-
<div class="step">
|
| 1225 |
-
<div class="step-number">3</div>
|
| 1226 |
-
<div class="step-content">
|
| 1227 |
-
<h4>Structure Rules</h4>
|
| 1228 |
-
<p>Specify sections, headings, or organization</p>
|
| 1229 |
-
</div>
|
| 1230 |
-
</div>
|
| 1231 |
-
<div class="step">
|
| 1232 |
-
<div class="step-number">4</div>
|
| 1233 |
-
<div class="step-content">
|
| 1234 |
-
<h4>Content Boundaries</h4>
|
| 1235 |
-
<p>Define what to include or exclude</p>
|
| 1236 |
-
</div>
|
| 1237 |
-
</div>
|
| 1238 |
-
</div>
|
| 1239 |
-
</div>
|
| 1240 |
-
|
| 1241 |
-
<div class="card">
|
| 1242 |
-
<h3>Summary & Key Takeaways</h3>
|
| 1243 |
-
<ul class="checklist">
|
| 1244 |
-
<li>Always specify the desired output format</li>
|
| 1245 |
-
<li>Use clear format instructions (list, table, code, etc.)</li>
|
| 1246 |
-
<li>Set length and style constraints</li>
|
| 1247 |
-
<li>Define structure and organization upfront</li>
|
| 1248 |
-
<li>Provide format examples when needed</li>
|
| 1249 |
-
</ul>
|
| 1250 |
-
</div>
|
| 1251 |
-
|
| 1252 |
-
<div class="nav-buttons">
|
| 1253 |
-
<button class="btn btn-secondary" onclick="navigateTo(4)">← Previous</button>
|
| 1254 |
-
<button class="btn btn-primary" onclick="navigateTo(6)">Next: Iterative Refinement →</button>
|
| 1255 |
-
</div>
|
| 1256 |
-
</section>
|
| 1257 |
-
|
| 1258 |
-
<!-- Topic 6: Iterative Refinement -->
|
| 1259 |
-
<section class="content-section" id="topic-6">
|
| 1260 |
-
<div class="section-header">
|
| 1261 |
-
<h2>Iterative Refinement</h2>
|
| 1262 |
-
<p class="subtitle">Testing and Improving Prompts</p>
|
| 1263 |
-
<p class="description">How to iterate and optimize your prompts through testing</p>
|
| 1264 |
-
</div>
|
| 1265 |
-
|
| 1266 |
-
<div class="card">
|
| 1267 |
-
<h3>The Refinement Process</h3>
|
| 1268 |
-
<p>Perfect prompts are rarely written on the first try. Iterative refinement is the process of testing, evaluating, and improving your prompts based on actual results.</p>
|
| 1269 |
-
<p style="margin-top: 15px;">Think of it like cooking—you taste and adjust seasonings until it's just right.</p>
|
| 1270 |
-
</div>
|
| 1271 |
-
|
| 1272 |
-
<div class="callout callout-insight">
|
| 1273 |
-
<strong>💡 Insight:</strong> Testing and iteration is key to prompt mastery
|
| 1274 |
-
</div>
|
| 1275 |
-
|
| 1276 |
-
<div class="card">
|
| 1277 |
-
<h3>5-Step Refinement Process</h3>
|
| 1278 |
-
<div class="steps">
|
| 1279 |
-
<div class="step">
|
| 1280 |
-
<div class="step-number">1</div>
|
| 1281 |
-
<div class="step-content">
|
| 1282 |
-
<h4>Test Your Prompt</h4>
|
| 1283 |
-
<p>Run your prompt and get initial output</p>
|
| 1284 |
-
</div>
|
| 1285 |
-
</div>
|
| 1286 |
-
<div class="step">
|
| 1287 |
-
<div class="step-number">2</div>
|
| 1288 |
-
<div class="step-content">
|
| 1289 |
-
<h4>Evaluate Results</h4>
|
| 1290 |
-
<p>Does it meet your requirements? What's missing?</p>
|
| 1291 |
-
</div>
|
| 1292 |
-
</div>
|
| 1293 |
-
<div class="step">
|
| 1294 |
-
<div class="step-number">3</div>
|
| 1295 |
-
<div class="step-content">
|
| 1296 |
-
<h4>Refine</h4>
|
| 1297 |
-
<p>Add specificity, context, or better format instructions</p>
|
| 1298 |
-
</div>
|
| 1299 |
-
</div>
|
| 1300 |
-
<div class="step">
|
| 1301 |
-
<div class="step-number">4</div>
|
| 1302 |
-
<div class="step-content">
|
| 1303 |
-
<h4>Test Again</h4>
|
| 1304 |
-
<p>Compare new output with previous version</p>
|
| 1305 |
-
</div>
|
| 1306 |
-
</div>
|
| 1307 |
-
<div class="step">
|
| 1308 |
-
<div class="step-number">5</div>
|
| 1309 |
-
<div class="step-content">
|
| 1310 |
-
<h4>Repeat</h4>
|
| 1311 |
-
<p>Keep iterating until satisfied</p>
|
| 1312 |
-
</div>
|
| 1313 |
-
</div>
|
| 1314 |
-
</div>
|
| 1315 |
-
</div>
|
| 1316 |
-
|
| 1317 |
-
<div class="callout callout-tip">
|
| 1318 |
-
<strong>✅ Tip:</strong> Keep a library of successful prompts for future use
|
| 1319 |
-
</div>
|
| 1320 |
-
|
| 1321 |
-
<div class="canvas-container">
|
| 1322 |
-
<canvas id="refinementCanvas"></canvas>
|
| 1323 |
-
</div>
|
| 1324 |
-
|
| 1325 |
-
<div class="callout callout-mistake">
|
| 1326 |
-
<strong>⚠️ Common Mistake:</strong> Not iterating or refining based on initial results
|
| 1327 |
-
</div>
|
| 1328 |
-
|
| 1329 |
-
<div class="card">
|
| 1330 |
-
<h3>What to Look For When Evaluating</h3>
|
| 1331 |
-
<div class="component-grid">
|
| 1332 |
-
<div class="component-card">
|
| 1333 |
-
<h4>✓ Accuracy</h4>
|
| 1334 |
-
<p>Is the information correct and relevant?</p>
|
| 1335 |
-
</div>
|
| 1336 |
-
<div class="component-card">
|
| 1337 |
-
<h4>✓ Completeness</h4>
|
| 1338 |
-
<p>Did it cover everything you needed?</p>
|
| 1339 |
-
</div>
|
| 1340 |
-
<div class="component-card">
|
| 1341 |
-
<h4>✓ Format</h4>
|
| 1342 |
-
<p>Is it structured as you requested?</p>
|
| 1343 |
-
</div>
|
| 1344 |
-
<div class="component-card">
|
| 1345 |
-
<h4>✓ Tone & Style</h4>
|
| 1346 |
-
<p>Does it match your requirements?</p>
|
| 1347 |
-
</div>
|
| 1348 |
-
</div>
|
| 1349 |
-
</div>
|
| 1350 |
-
|
| 1351 |
-
<div class="interactive-demo">
|
| 1352 |
-
<h3 style="color: #00D9FF; margin-bottom: 20px;">Refinement Simulator</h3>
|
| 1353 |
-
<p style="color: #888; margin-bottom: 15px;">See how a prompt improves through iterations:</p>
|
| 1354 |
-
|
| 1355 |
-
<div class="btn-group">
|
| 1356 |
-
<button class="btn btn-primary" onclick="showIteration(1)">Iteration 1</button>
|
| 1357 |
-
<button class="btn btn-primary" onclick="showIteration(2)">Iteration 2</button>
|
| 1358 |
-
<button class="btn btn-primary" onclick="showIteration(3)">Iteration 3 (Final)</button>
|
| 1359 |
-
</div>
|
| 1360 |
-
|
| 1361 |
-
<div id="iterationDisplay" style="margin-top: 20px; background: #1a1a1a; padding: 20px; border-radius: 8px;">
|
| 1362 |
-
<h4 style="color: #00D9FF; margin-bottom: 12px;">Current Iteration:</h4>
|
| 1363 |
-
<p id="iterationPrompt" style="color: #ccc; line-height: 1.8; margin-bottom: 15px;"></p>
|
| 1364 |
-
<div style="padding: 12px; background: #0a0a0a; border-radius: 6px;">
|
| 1365 |
-
<strong style="color: #00D9FF;">Quality Score:</strong>
|
| 1366 |
-
<span id="iterationScore" style="margin-left: 10px;"></span>
|
| 1367 |
-
</div>
|
| 1368 |
-
<div id="iterationNotes" style="margin-top: 15px; padding: 12px; border-left: 3px solid #00D9FF; background: #0a0a0a;"></div>
|
| 1369 |
-
</div>
|
| 1370 |
-
</div>
|
| 1371 |
-
|
| 1372 |
-
<div class="card">
|
| 1373 |
-
<h3>Summary & Key Takeaways</h3>
|
| 1374 |
-
<ul class="checklist">
|
| 1375 |
-
<li>First attempts rarely produce perfect results</li>
|
| 1376 |
-
<li>Test, evaluate, refine, and repeat</li>
|
| 1377 |
-
<li>Look for accuracy, completeness, format, and style</li>
|
| 1378 |
-
<li>Keep successful prompts as templates</li>
|
| 1379 |
-
<li>Small tweaks can lead to big improvements</li>
|
| 1380 |
-
</ul>
|
| 1381 |
-
</div>
|
| 1382 |
-
|
| 1383 |
-
<div class="nav-buttons">
|
| 1384 |
-
<button class="btn btn-secondary" onclick="navigateTo(5)">← Previous</button>
|
| 1385 |
-
<button class="btn btn-primary" onclick="navigateTo(7)">Next: Advanced Techniques →</button>
|
| 1386 |
-
</div>
|
| 1387 |
-
</section>
|
| 1388 |
-
|
| 1389 |
-
<!-- Topic 7: Advanced Techniques -->
|
| 1390 |
-
<section class="content-section" id="topic-7">
|
| 1391 |
-
<div class="section-header">
|
| 1392 |
-
<h2>Prompt Patterns and Techniques</h2>
|
| 1393 |
-
<p class="subtitle">Advanced Methods for Better Results</p>
|
| 1394 |
-
<p class="description">Learn professional techniques used by prompt engineering experts</p>
|
| 1395 |
-
</div>
|
| 1396 |
-
|
| 1397 |
-
<div class="card">
|
| 1398 |
-
<h3>Advanced Prompt Techniques</h3>
|
| 1399 |
-
<p>Once you master the basics, these advanced techniques will help you unlock even more powerful AI capabilities.</p>
|
| 1400 |
-
</div>
|
| 1401 |
-
|
| 1402 |
-
<div class="component-grid">
|
| 1403 |
-
<div class="component-card">
|
| 1404 |
-
<h4>🧠 Chain-of-Thought</h4>
|
| 1405 |
-
<p>Ask AI to show its reasoning step-by-step</p>
|
| 1406 |
-
<code>"Think through this step-by-step before answering"</code>
|
| 1407 |
-
</div>
|
| 1408 |
-
<div class="component-card">
|
| 1409 |
-
<h4>📚 Few-Shot Examples</h4>
|
| 1410 |
-
<p>Provide examples of desired output format</p>
|
| 1411 |
-
<code>"Here are 3 examples: [examples]. Now do this:"</code>
|
| 1412 |
-
</div>
|
| 1413 |
-
<div class="component-card">
|
| 1414 |
-
<h4>⚙️ System Prompts</h4>
|
| 1415 |
-
<p>Set AI behavior and personality upfront</p>
|
| 1416 |
-
<code>"You are a helpful tutor for 10th-grade students"</code>
|
| 1417 |
-
</div>
|
| 1418 |
-
<div class="component-card">
|
| 1419 |
-
<h4>🎯 Constraints</h4>
|
| 1420 |
-
<p>Limit scope and manage complexity</p>
|
| 1421 |
-
<code>"Keep under 100 words, use simple language"</code>
|
| 1422 |
-
</div>
|
| 1423 |
-
</div>
|
| 1424 |
-
|
| 1425 |
-
<div class="callout callout-insight">
|
| 1426 |
-
<strong>💡 Insight:</strong> Chain-of-thought prompting can improve reasoning by 50% or more
|
| 1427 |
-
</div>
|
| 1428 |
-
|
| 1429 |
-
<div class="card">
|
| 1430 |
-
<h3>Technique Deep Dive: Chain-of-Thought</h3>
|
| 1431 |
-
<p>Chain-of-thought prompting asks the AI to show its work, which leads to better reasoning and more accurate results.</p>
|
| 1432 |
-
|
| 1433 |
-
<div class="comparison" style="margin-top: 20px;">
|
| 1434 |
-
<div class="comparison-item bad">
|
| 1435 |
-
<h4>❌ Without Chain-of-Thought</h4>
|
| 1436 |
-
<p style="font-family: monospace; font-size: 13px; margin-bottom: 10px;">"What's 15% of 240?"</p>
|
| 1437 |
-
<p style="font-size: 13px; color: #888;">AI might give answer without showing work, making errors harder to spot.</p>
|
| 1438 |
-
</div>
|
| 1439 |
-
<div class="comparison-item good">
|
| 1440 |
-
<h4>✓ With Chain-of-Thought</h4>
|
| 1441 |
-
<p style="font-family: monospace; font-size: 13px; margin-bottom: 10px;">"What's 15% of 240? Think through this step-by-step."</p>
|
| 1442 |
-
<p style="font-size: 13px; color: #888;">AI shows: 1) 10% of 240 = 24, 2) 5% = half of 10% = 12, 3) 15% = 24 + 12 = 36</p>
|
| 1443 |
-
</div>
|
| 1444 |
-
</div>
|
| 1445 |
-
</div>
|
| 1446 |
-
|
| 1447 |
-
<div class="callout callout-tip">
|
| 1448 |
-
<strong>✅ Tip:</strong> Use few-shot examples when the output format is complex or unusual
|
| 1449 |
-
</div>
|
| 1450 |
-
|
| 1451 |
-
<div class="card">
|
| 1452 |
-
<h3>Template Library</h3>
|
| 1453 |
-
<p style="margin-bottom: 20px;">Ready-to-use prompt templates for common scenarios:</p>
|
| 1454 |
-
|
| 1455 |
-
<div class="template-library">
|
| 1456 |
-
<div class="template-item" onclick="copyTemplate(this)">
|
| 1457 |
-
<h5>📧 Email Writing</h5>
|
| 1458 |
-
<pre>You are a professional email writer.
|
| 1459 |
-
|
| 1460 |
-
Write a [formal/casual] email to [recipient] about [topic].
|
| 1461 |
-
|
| 1462 |
-
Tone: [professional/friendly]
|
| 1463 |
-
Length: [brief/detailed]
|
| 1464 |
-
Action needed: [yes/no]</pre>
|
| 1465 |
-
</div>
|
| 1466 |
-
<div class="template-item" onclick="copyTemplate(this)">
|
| 1467 |
-
<h5>💻 Code Generation</h5>
|
| 1468 |
-
<pre>You are an expert [language] developer.
|
| 1469 |
-
|
| 1470 |
-
Write a function that [task description].
|
| 1471 |
-
|
| 1472 |
-
Requirements:
|
| 1473 |
-
- [requirement 1]
|
| 1474 |
-
- [requirement 2]
|
| 1475 |
-
|
| 1476 |
-
Provide code with comments.</pre>
|
| 1477 |
-
</div>
|
| 1478 |
-
<div class="template-item" onclick="copyTemplate(this)">
|
| 1479 |
-
<h5>📊 Data Analysis</h5>
|
| 1480 |
-
<pre>Analyze this data: [data]
|
| 1481 |
-
|
| 1482 |
-
Provide:
|
| 1483 |
-
1. Key insights
|
| 1484 |
-
2. Trends or patterns
|
| 1485 |
-
3. Recommendations
|
| 1486 |
-
|
| 1487 |
-
Format as bullet points.</pre>
|
| 1488 |
-
</div>
|
| 1489 |
-
<div class="template-item" onclick="copyTemplate(this)">
|
| 1490 |
-
<h5>✍️ Content Creation</h5>
|
| 1491 |
-
<pre>Write a [blog post/article] about [topic].
|
| 1492 |
-
|
| 1493 |
-
Audience: [description]
|
| 1494 |
-
Tone: [conversational/professional]
|
| 1495 |
-
Length: [word count]
|
| 1496 |
-
|
| 1497 |
-
Include:
|
| 1498 |
-
- Introduction
|
| 1499 |
-
- 3-5 main points
|
| 1500 |
-
- Conclusion</pre>
|
| 1501 |
-
</div>
|
| 1502 |
-
</div>
|
| 1503 |
-
</div>
|
| 1504 |
-
|
| 1505 |
-
<div class="callout callout-mistake">
|
| 1506 |
-
<strong>⚠️ Common Mistake:</strong> Using advanced techniques when simple prompts would work better
|
| 1507 |
-
</div>
|
| 1508 |
-
|
| 1509 |
-
<div class="canvas-container">
|
| 1510 |
-
<canvas id="techniquesCanvas"></canvas>
|
| 1511 |
-
</div>
|
| 1512 |
-
|
| 1513 |
-
<div class="card">
|
| 1514 |
-
<h3>Summary & Key Takeaways</h3>
|
| 1515 |
-
<ul class="checklist">
|
| 1516 |
-
<li>Chain-of-thought improves reasoning quality</li>
|
| 1517 |
-
<li>Few-shot examples guide output format</li>
|
| 1518 |
-
<li>System prompts set overall behavior</li>
|
| 1519 |
-
<li>Constraints keep responses focused</li>
|
| 1520 |
-
<li>Use templates to save time and ensure consistency</li>
|
| 1521 |
-
</ul>
|
| 1522 |
-
</div>
|
| 1523 |
-
|
| 1524 |
-
<div class="nav-buttons">
|
| 1525 |
-
<button class="btn btn-secondary" onclick="navigateTo(6)">← Previous</button>
|
| 1526 |
-
<button class="btn btn-primary" onclick="navigateTo(8)">Next: Real-World Applications →</button>
|
| 1527 |
-
</div>
|
| 1528 |
-
</section>
|
| 1529 |
-
|
| 1530 |
-
<!-- Topic 8: Real-World Applications -->
|
| 1531 |
-
<section class="content-section" id="topic-8">
|
| 1532 |
-
<div class="section-header">
|
| 1533 |
-
<h2>Real-World Applications</h2>
|
| 1534 |
-
<p class="subtitle">Putting It All Together</p>
|
| 1535 |
-
<p class="description">See prompt engineering in action across different domains</p>
|
| 1536 |
-
</div>
|
| 1537 |
-
|
| 1538 |
-
<div class="card">
|
| 1539 |
-
<h3>Prompt Engineering in Practice</h3>
|
| 1540 |
-
<p>Now that you've learned the fundamentals and advanced techniques, let's explore how prompt engineering is applied across different real-world domains.</p>
|
| 1541 |
-
</div>
|
| 1542 |
-
|
| 1543 |
-
<div class="card">
|
| 1544 |
-
<h3>Professional Writing</h3>
|
| 1545 |
-
<div class="use-case-section">
|
| 1546 |
-
<ul class="use-case-list">
|
| 1547 |
-
<li>Email summarization and drafting</li>
|
| 1548 |
-
<li>Report generation</li>
|
| 1549 |
-
<li>Meeting notes synthesis</li>
|
| 1550 |
-
</ul>
|
| 1551 |
-
</div>
|
| 1552 |
-
<div class="callout callout-tip" style="margin-top: 15px;">
|
| 1553 |
-
<strong>✅ Example:</strong> "Summarize this 3-page meeting transcript into 5 key action items with owners and deadlines. Format as a table."
|
| 1554 |
-
</div>
|
| 1555 |
-
</div>
|
| 1556 |
-
|
| 1557 |
-
<div class="card">
|
| 1558 |
-
<h3>Technical Applications</h3>
|
| 1559 |
-
<div class="use-case-section">
|
| 1560 |
-
<ul class="use-case-list">
|
| 1561 |
-
<li>Code generation and debugging</li>
|
| 1562 |
-
<li>API documentation creation</li>
|
| 1563 |
-
<li>Technical explanation simplification</li>
|
| 1564 |
-
</ul>
|
| 1565 |
-
</div>
|
| 1566 |
-
<div class="callout callout-tip" style="margin-top: 15px;">
|
| 1567 |
-
<strong>✅ Example:</strong> "I have a React component that's re-rendering unnecessarily. Here's the code: [code]. Identify the issue and provide an optimized version with explanations."
|
| 1568 |
-
</div>
|
| 1569 |
-
</div>
|
| 1570 |
-
|
| 1571 |
-
<div class="card">
|
| 1572 |
-
<h3>Creative Work</h3>
|
| 1573 |
-
<div class="use-case-section">
|
| 1574 |
-
<ul class="use-case-list">
|
| 1575 |
-
<li>Marketing copy creation</li>
|
| 1576 |
-
<li>Brainstorming ideas</li>
|
| 1577 |
-
<li>Content outline generation</li>
|
| 1578 |
-
</ul>
|
| 1579 |
-
</div>
|
| 1580 |
-
<div class="callout callout-tip" style="margin-top: 15px;">
|
| 1581 |
-
<strong>✅ Example:</strong> "Generate 10 creative Instagram post ideas for a sustainable fashion brand targeting Gen Z. Include post caption and hashtag suggestions."
|
| 1582 |
-
</div>
|
| 1583 |
-
</div>
|
| 1584 |
-
|
| 1585 |
-
<div class="card">
|
| 1586 |
-
<h3>Educational Content</h3>
|
| 1587 |
-
<div class="use-case-section">
|
| 1588 |
-
<ul class="use-case-list">
|
| 1589 |
-
<li>Concept explanation</li>
|
| 1590 |
-
<li>Quiz generation</li>
|
| 1591 |
-
<li>Study guide creation</li>
|
| 1592 |
-
</ul>
|
| 1593 |
-
</div>
|
| 1594 |
-
<div class="callout callout-tip" style="margin-top: 15px;">
|
| 1595 |
-
<strong>✅ Example:</strong> "Explain photosynthesis to a 7th grader using an analogy they can relate to. Keep it under 150 words."
|
| 1596 |
-
</div>
|
| 1597 |
-
</div>
|
| 1598 |
-
|
| 1599 |
-
<div class="callout callout-insight">
|
| 1600 |
-
<strong>💡 Insight:</strong> The best prompts combine multiple techniques based on the specific use case
|
| 1601 |
-
</div>
|
| 1602 |
-
|
| 1603 |
-
<div class="challenge-box">
|
| 1604 |
-
<h3>🎯 Final Challenge: Build Your Own Prompt</h3>
|
| 1605 |
-
<p style="color: #ccc; margin-bottom: 15px;">Choose a scenario and build a complete prompt using everything you've learned:</p>
|
| 1606 |
-
|
| 1607 |
-
<div class="scenario-selector">
|
| 1608 |
-
<button class="scenario-btn active" onclick="setChallenge('email')">Email Writing</button>
|
| 1609 |
-
<button class="scenario-btn" onclick="setChallenge('code')">Coding Help</button>
|
| 1610 |
-
<button class="scenario-btn" onclick="setChallenge('creative')">Creative Writing</button>
|
| 1611 |
-
<button class="scenario-btn" onclick="setChallenge('analysis')">Data Analysis</button>
|
| 1612 |
-
</div>
|
| 1613 |
-
|
| 1614 |
-
<div class="challenge-prompt" id="challengeScenario" style="margin-top: 15px;">
|
| 1615 |
-
Scenario will appear here...
|
| 1616 |
-
</div>
|
| 1617 |
-
|
| 1618 |
-
<textarea id="challengeInput" placeholder="Build your prompt here..." style="width: 100%; min-height: 150px; background: #0a0a0a; border: 2px solid #333; color: #fff; padding: 15px; border-radius: 8px; font-size: 14px; margin-top: 15px; font-family: inherit;"></textarea>
|
| 1619 |
-
|
| 1620 |
-
<div class="btn-group" style="margin-top: 15px;">
|
| 1621 |
-
<button class="btn btn-primary" onclick="evaluateChallenge()">Evaluate My Prompt</button>
|
| 1622 |
-
<button class="btn btn-secondary" onclick="resetChallenge()">Reset</button>
|
| 1623 |
-
</div>
|
| 1624 |
-
|
| 1625 |
-
<div class="feedback" id="challengeFeedback"></div>
|
| 1626 |
-
</div>
|
| 1627 |
-
|
| 1628 |
-
<div class="card">
|
| 1629 |
-
<h3>Congratulations! 🎉</h3>
|
| 1630 |
-
<p>You've completed the Prompt Engineering Masterclass! You now have the knowledge and tools to communicate effectively with AI systems.</p>
|
| 1631 |
-
|
| 1632 |
-
<div style="margin-top: 20px; padding: 20px; background: linear-gradient(135deg, #0066FF22, #00D9FF22); border-radius: 8px;">
|
| 1633 |
-
<h4 style="color: #00D9FF; margin-bottom: 15px;">What You've Learned:</h4>
|
| 1634 |
-
<ul class="checklist">
|
| 1635 |
-
<li>The four components of effective prompts</li>
|
| 1636 |
-
<li>How to write clear and specific instructions</li>
|
| 1637 |
-
<li>The importance of context and background</li>
|
| 1638 |
-
<li>How to specify output formats</li>
|
| 1639 |
-
<li>Iterative refinement techniques</li>
|
| 1640 |
-
<li>Advanced prompt patterns</li>
|
| 1641 |
-
<li>Real-world applications across domains</li>
|
| 1642 |
-
</ul>
|
| 1643 |
-
</div>
|
| 1644 |
-
|
| 1645 |
-
<div class="btn-group" style="margin-top: 20px;">
|
| 1646 |
-
<button class="btn btn-primary" onclick="navigateTo(1)">↻ Review from Beginning</button>
|
| 1647 |
-
<button class="btn btn-secondary" onclick="alert('Export feature coming soon!')">📄 Export Summary</button>
|
| 1648 |
-
</div>
|
| 1649 |
-
</div>
|
| 1650 |
-
|
| 1651 |
-
<div class="nav-buttons">
|
| 1652 |
-
<button class="btn btn-secondary" onclick="navigateTo(7)">← Previous</button>
|
| 1653 |
-
<button class="btn btn-primary" onclick="navigateTo(1)">↻ Start Over</button>
|
| 1654 |
-
</div>
|
| 1655 |
-
</section>
|
| 1656 |
-
</main>
|
| 1657 |
</div>
|
| 1658 |
-
|
| 1659 |
<script src="app.js"></script>
|
| 1660 |
</body>
|
|
|
|
| 1661 |
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
+
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
<title>Prompt Engineering Masterclass</title>
|
| 8 |
+
<link rel="stylesheet" href="../shared/css/design-system.css">
|
| 9 |
+
<link rel="stylesheet" href="../shared/css/components.css">
|
| 10 |
<style>
|
| 11 |
+
:root {
|
| 12 |
+
--pe-cyan: #00D9FF;
|
| 13 |
+
--pe-purple: #B07DFF;
|
| 14 |
+
--pe-green: #10A37F;
|
| 15 |
+
--pe-blue: #4285F4;
|
| 16 |
+
--color-primary: var(--pe-cyan);
|
| 17 |
+
--color-secondary: var(--pe-purple);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
* {
|
| 21 |
margin: 0;
|
| 22 |
padding: 0;
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
body {
|
| 27 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 28 |
+
background: linear-gradient(135deg, #0a0f1e 0%, #1a1f3a 100%);
|
| 29 |
+
color: #e0e6ed;
|
| 30 |
line-height: 1.6;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
.container {
|
| 34 |
+
max-width: 1400px;
|
| 35 |
+
margin: 0 auto;
|
| 36 |
+
padding: 2rem;
|
| 37 |
}
|
| 38 |
|
| 39 |
+
header {
|
| 40 |
+
text-align: center;
|
| 41 |
+
margin-bottom: 3rem;
|
| 42 |
+
padding: 2rem 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
+
header h1 {
|
| 46 |
+
font-size: 3rem;
|
| 47 |
+
background: linear-gradient(135deg, var(--pe-cyan), var(--pe-purple));
|
| 48 |
+
-webkit-background-clip: text;
|
| 49 |
+
-webkit-text-fill-color: transparent;
|
| 50 |
+
background-clip: text;
|
| 51 |
+
margin-bottom: 0.5rem;
|
| 52 |
}
|
| 53 |
|
| 54 |
+
.subtitle {
|
| 55 |
+
font-size: 1.2rem;
|
| 56 |
+
color: #8892a6;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
+
/* Dashboard */
|
| 60 |
+
.dashboard {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
display: none;
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
+
.dashboard.active {
|
| 65 |
display: block;
|
| 66 |
}
|
| 67 |
|
| 68 |
+
.modules-grid {
|
| 69 |
+
display: grid;
|
| 70 |
+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
| 71 |
+
gap: 2rem;
|
| 72 |
+
margin-bottom: 3rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
}
|
| 74 |
|
|
|
|
| 75 |
.card {
|
| 76 |
+
background: rgba(255, 255, 255, 0.05);
|
| 77 |
+
border: 1px solid rgba(0, 217, 255, 0.3);
|
| 78 |
+
border-radius: 16px;
|
| 79 |
+
padding: 2rem;
|
| 80 |
+
cursor: pointer;
|
| 81 |
transition: all 0.3s ease;
|
| 82 |
+
position: relative;
|
| 83 |
+
overflow: hidden;
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.card::before {
|
| 87 |
+
content: '';
|
| 88 |
+
position: absolute;
|
| 89 |
+
top: 0;
|
| 90 |
+
left: 0;
|
| 91 |
+
right: 0;
|
| 92 |
+
height: 4px;
|
| 93 |
+
background: linear-gradient(90deg, var(--pe-cyan), var(--pe-purple));
|
| 94 |
+
transform: scaleX(0);
|
| 95 |
+
transition: transform 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
}
|
| 97 |
|
| 98 |
+
.card:hover::before {
|
| 99 |
+
transform: scaleX(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
+
.card:hover {
|
| 103 |
+
transform: translateY(-8px);
|
| 104 |
+
border-color: var(--pe-cyan);
|
| 105 |
+
box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
|
| 106 |
}
|
| 107 |
|
| 108 |
+
.card-icon {
|
| 109 |
+
font-size: 3rem;
|
| 110 |
+
margin-bottom: 1rem;
|
|
|
|
| 111 |
}
|
| 112 |
|
| 113 |
+
.card h3 {
|
| 114 |
+
font-size: 1.5rem;
|
| 115 |
+
color: var(--pe-cyan);
|
| 116 |
+
margin-bottom: 0.5rem;
|
| 117 |
}
|
| 118 |
|
| 119 |
+
.card p {
|
| 120 |
+
color: #b3b9c5;
|
| 121 |
+
font-size: 0.95rem;
|
| 122 |
+
margin-bottom: 1rem;
|
| 123 |
}
|
| 124 |
|
| 125 |
+
.category-label {
|
| 126 |
+
display: inline-block;
|
| 127 |
+
padding: 0.25rem 0.75rem;
|
| 128 |
+
background: rgba(0, 217, 255, 0.2);
|
| 129 |
+
border: 1px solid var(--pe-cyan);
|
| 130 |
border-radius: 12px;
|
| 131 |
+
font-size: 0.75rem;
|
| 132 |
+
color: var(--pe-cyan);
|
| 133 |
+
font-weight: 600;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
}
|
| 135 |
|
| 136 |
+
/* Module View */
|
| 137 |
+
.module {
|
| 138 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
| 139 |
}
|
| 140 |
|
| 141 |
+
.module.active {
|
| 142 |
+
display: block;
|
| 143 |
+
animation: fadeIn 0.5s;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
}
|
| 145 |
|
| 146 |
+
@keyframes fadeIn {
|
| 147 |
+
from {
|
| 148 |
+
opacity: 0;
|
| 149 |
+
transform: translateY(20px);
|
| 150 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
|
| 152 |
+
to {
|
| 153 |
+
opacity: 1;
|
| 154 |
+
transform: translateY(0);
|
| 155 |
+
}
|
| 156 |
}
|
| 157 |
|
| 158 |
+
.btn-back {
|
| 159 |
+
background: var(--pe-cyan);
|
| 160 |
+
color: #0a0f1e;
|
| 161 |
border: none;
|
| 162 |
+
padding: 0.75rem 1.5rem;
|
| 163 |
border-radius: 8px;
|
|
|
|
|
|
|
| 164 |
cursor: pointer;
|
| 165 |
+
font-size: 1rem;
|
| 166 |
+
font-weight: 600;
|
| 167 |
+
margin-bottom: 2rem;
|
| 168 |
+
transition: all 0.3s;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
}
|
| 170 |
|
| 171 |
+
.btn-back:hover {
|
| 172 |
+
background: #00b8d9;
|
| 173 |
+
transform: translateX(-4px);
|
| 174 |
}
|
| 175 |
|
| 176 |
+
.module header h1 {
|
| 177 |
+
font-size: 2.5rem;
|
| 178 |
+
margin-bottom: 1rem;
|
| 179 |
}
|
| 180 |
|
| 181 |
+
/* Tabs */
|
| 182 |
+
.tabs {
|
| 183 |
display: flex;
|
| 184 |
+
gap: 1rem;
|
| 185 |
+
margin: 2rem 0;
|
| 186 |
+
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
|
| 187 |
flex-wrap: wrap;
|
| 188 |
}
|
| 189 |
|
| 190 |
+
.tab-btn {
|
| 191 |
+
background: transparent;
|
| 192 |
+
border: none;
|
| 193 |
+
color: #8892a6;
|
| 194 |
+
padding: 1rem 1.5rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
cursor: pointer;
|
| 196 |
+
font-size: 1rem;
|
| 197 |
+
border-bottom: 3px solid transparent;
|
| 198 |
+
transition: all 0.3s;
|
| 199 |
}
|
| 200 |
|
| 201 |
+
.tab-btn.active {
|
| 202 |
+
color: var(--pe-cyan);
|
| 203 |
+
border-bottom-color: var(--pe-cyan);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
}
|
| 205 |
|
| 206 |
+
.tab-btn:hover {
|
|
|
|
|
|
|
| 207 |
color: #fff;
|
|
|
|
| 208 |
}
|
| 209 |
|
| 210 |
+
.tab {
|
| 211 |
+
display: none;
|
| 212 |
+
animation: fadeIn 0.4s;
|
|
|
|
|
|
|
|
|
|
| 213 |
}
|
| 214 |
|
| 215 |
+
.tab.active {
|
| 216 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
| 217 |
}
|
| 218 |
|
| 219 |
+
/* Content Sections */
|
| 220 |
+
.section {
|
| 221 |
+
background: rgba(255, 255, 255, 0.03);
|
| 222 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 223 |
+
border-radius: 12px;
|
| 224 |
+
padding: 2rem;
|
| 225 |
+
margin-bottom: 2rem;
|
| 226 |
}
|
| 227 |
|
| 228 |
+
.section h2 {
|
| 229 |
+
color: var(--pe-cyan);
|
| 230 |
+
margin-bottom: 1.5rem;
|
| 231 |
+
font-size: 1.8rem;
|
| 232 |
}
|
| 233 |
|
| 234 |
+
.section h3 {
|
| 235 |
+
color: var(--pe-purple);
|
| 236 |
+
margin: 1.5rem 0 1rem;
|
| 237 |
+
font-size: 1.3rem;
|
| 238 |
}
|
| 239 |
|
| 240 |
+
/* Tables */
|
| 241 |
+
table {
|
| 242 |
+
width: 100%;
|
| 243 |
+
border-collapse: collapse;
|
| 244 |
+
margin: 1.5rem 0;
|
| 245 |
+
background: rgba(0, 0, 0, 0.2);
|
| 246 |
+
border-radius: 8px;
|
| 247 |
+
overflow: hidden;
|
| 248 |
}
|
| 249 |
|
| 250 |
+
th,
|
| 251 |
+
td {
|
| 252 |
+
padding: 1rem;
|
| 253 |
+
text-align: left;
|
| 254 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 255 |
}
|
| 256 |
|
| 257 |
+
th {
|
| 258 |
+
background: rgba(0, 217, 255, 0.15);
|
| 259 |
+
color: var(--pe-cyan);
|
| 260 |
+
font-weight: 600;
|
|
|
|
|
|
|
|
|
|
| 261 |
}
|
| 262 |
|
| 263 |
+
tr:hover {
|
| 264 |
+
background: rgba(255, 255, 255, 0.05);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
}
|
| 266 |
|
| 267 |
+
/* Code Blocks */
|
| 268 |
+
.code-block {
|
| 269 |
+
background: #0d1117;
|
| 270 |
+
border: 1px solid #30363d;
|
| 271 |
border-radius: 8px;
|
| 272 |
+
padding: 1.5rem;
|
| 273 |
+
margin: 1.5rem 0;
|
| 274 |
+
overflow-x: auto;
|
| 275 |
+
font-family: 'Fira Code', 'Consolas', monospace;
|
| 276 |
+
line-height: 1.6;
|
| 277 |
+
white-space: pre-wrap;
|
| 278 |
+
font-size: 0.9rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
color: #ccc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 280 |
}
|
| 281 |
|
| 282 |
+
/* Info Boxes */
|
| 283 |
+
.info-box {
|
| 284 |
+
background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(176, 125, 255, 0.1));
|
| 285 |
+
border-left: 4px solid var(--pe-cyan);
|
|
|
|
|
|
|
| 286 |
border-radius: 8px;
|
| 287 |
+
padding: 1.5rem;
|
| 288 |
+
margin: 1.5rem 0;
|
| 289 |
}
|
| 290 |
|
| 291 |
+
.box-title {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
font-weight: 700;
|
| 293 |
+
color: var(--pe-cyan);
|
| 294 |
+
margin-bottom: 0.75rem;
|
| 295 |
+
font-size: 1.1rem;
|
| 296 |
}
|
| 297 |
|
| 298 |
+
.box-content {
|
| 299 |
+
color: #d0d7de;
|
| 300 |
+
line-height: 1.7;
|
|
|
|
| 301 |
}
|
| 302 |
|
| 303 |
+
/* Interview Box */
|
| 304 |
+
.interview-box {
|
| 305 |
+
background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(163, 113, 247, 0.1));
|
| 306 |
+
border-left: 4px solid #ff6b35;
|
| 307 |
+
border-radius: 8px;
|
| 308 |
+
padding: 1.5rem;
|
| 309 |
+
margin: 1.5rem 0;
|
| 310 |
}
|
| 311 |
|
| 312 |
+
/* Callouts */
|
| 313 |
+
.callout {
|
| 314 |
+
border-radius: 8px;
|
| 315 |
+
padding: 1rem 1.5rem;
|
| 316 |
+
margin: 1.5rem 0;
|
| 317 |
+
border-left: 4px solid;
|
| 318 |
}
|
| 319 |
|
| 320 |
+
.callout.tip {
|
| 321 |
+
background: rgba(46, 204, 113, 0.1);
|
| 322 |
+
border-color: #2ecc71;
|
|
|
|
| 323 |
}
|
| 324 |
|
| 325 |
+
.callout.warning {
|
| 326 |
+
background: rgba(255, 193, 7, 0.1);
|
| 327 |
+
border-color: #ffc107;
|
| 328 |
}
|
| 329 |
|
| 330 |
+
.callout.insight {
|
| 331 |
+
background: rgba(0, 217, 255, 0.1);
|
| 332 |
+
border-color: var(--pe-cyan);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
}
|
| 334 |
|
| 335 |
+
.callout-title {
|
| 336 |
+
font-weight: 700;
|
| 337 |
+
margin-bottom: 0.5rem;
|
|
|
|
| 338 |
}
|
| 339 |
|
| 340 |
+
/* Comparison */
|
| 341 |
+
.comparison {
|
| 342 |
+
display: grid;
|
| 343 |
+
grid-template-columns: 1fr 1fr;
|
| 344 |
+
gap: 1.5rem;
|
| 345 |
+
margin: 1.5rem 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 346 |
}
|
| 347 |
|
| 348 |
+
.comparison-bad {
|
| 349 |
+
background: rgba(255, 60, 60, 0.1);
|
| 350 |
+
border: 1px solid rgba(255, 60, 60, 0.3);
|
| 351 |
+
border-radius: 8px;
|
| 352 |
+
padding: 1.5rem;
|
| 353 |
}
|
| 354 |
|
| 355 |
+
.comparison-good {
|
| 356 |
+
background: rgba(0, 255, 136, 0.1);
|
| 357 |
+
border: 1px solid rgba(0, 255, 136, 0.3);
|
| 358 |
+
border-radius: 8px;
|
| 359 |
+
padding: 1.5rem;
|
| 360 |
}
|
| 361 |
|
| 362 |
+
strong {
|
| 363 |
+
color: var(--pe-cyan);
|
|
|
|
| 364 |
}
|
| 365 |
|
| 366 |
+
.hidden {
|
| 367 |
+
display: none;
|
|
|
|
| 368 |
}
|
| 369 |
|
|
|
|
| 370 |
@media (max-width: 768px) {
|
| 371 |
+
header h1 {
|
| 372 |
+
font-size: 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
}
|
| 374 |
|
| 375 |
+
.comparison {
|
|
|
|
|
|
|
| 376 |
grid-template-columns: 1fr;
|
| 377 |
}
|
| 378 |
|
| 379 |
+
.modules-grid {
|
| 380 |
+
grid-template-columns: 1fr;
|
| 381 |
}
|
| 382 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
|
| 386 |
+
<body>
|
| 387 |
+
<div class="container">
|
| 388 |
+
<div class="dashboard active" id="dashboard">
|
| 389 |
+
<header>
|
| 390 |
+
<h1>🧠 Prompt Engineering Masterclass</h1>
|
| 391 |
+
<p class="subtitle">From Fundamentals to Provider Mastery — Claude · Gemini · GPT · Advanced Techniques
|
| 392 |
+
</p>
|
| 393 |
+
</header>
|
| 394 |
+
<div class="modules-grid" id="modulesGrid"></div>
|
| 395 |
+
</div>
|
| 396 |
+
<div id="modulesContainer"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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