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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>How AnyCoder Works - Interactive Guide</title>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
* {
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
box-sizing: border-box;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
:root {
|
| 17 |
+
--primary: #6366f1;
|
| 18 |
+
--primary-dark: #4f46e5;
|
| 19 |
+
--secondary: #ec4899;
|
| 20 |
+
--accent: #06b6d4;
|
| 21 |
+
--dark: #0f172a;
|
| 22 |
+
--darker: #020617;
|
| 23 |
+
--light: #f8fafc;
|
| 24 |
+
--gray: #64748b;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
body {
|
| 28 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 29 |
+
background: var(--darker);
|
| 30 |
+
color: var(--light);
|
| 31 |
+
min-height: 100vh;
|
| 32 |
+
overflow-x: hidden;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/* Header */
|
| 36 |
+
header {
|
| 37 |
+
background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
|
| 38 |
+
padding: 1rem 2rem;
|
| 39 |
+
position: fixed;
|
| 40 |
+
width: 100%;
|
| 41 |
+
top: 0;
|
| 42 |
+
z-index: 1000;
|
| 43 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 44 |
+
backdrop-filter: blur(10px);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.header-content {
|
| 48 |
+
max-width: 1400px;
|
| 49 |
+
margin: 0 auto;
|
| 50 |
+
display: flex;
|
| 51 |
+
justify-content: space-between;
|
| 52 |
+
align-items: center;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.logo {
|
| 56 |
+
display: flex;
|
| 57 |
+
align-items: center;
|
| 58 |
+
gap: 0.75rem;
|
| 59 |
+
font-size: 1.5rem;
|
| 60 |
+
font-weight: 700;
|
| 61 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 62 |
+
-webkit-background-clip: text;
|
| 63 |
+
-webkit-text-fill-color: transparent;
|
| 64 |
+
background-clip: text;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.logo i {
|
| 68 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 69 |
+
-webkit-background-clip: text;
|
| 70 |
+
-webkit-text-fill-color: transparent;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.built-with {
|
| 74 |
+
color: var(--gray);
|
| 75 |
+
text-decoration: none;
|
| 76 |
+
font-size: 0.9rem;
|
| 77 |
+
transition: color 0.3s;
|
| 78 |
+
display: flex;
|
| 79 |
+
align-items: center;
|
| 80 |
+
gap: 0.5rem;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.built-with:hover {
|
| 84 |
+
color: var(--primary);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* Hero Section */
|
| 88 |
+
.hero {
|
| 89 |
+
padding: 8rem 2rem 4rem;
|
| 90 |
+
text-align: center;
|
| 91 |
+
background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.hero h1 {
|
| 95 |
+
font-size: clamp(2rem, 5vw, 4rem);
|
| 96 |
+
margin-bottom: 1rem;
|
| 97 |
+
background: linear-gradient(135deg, var(--light) 0%, var(--gray) 100%);
|
| 98 |
+
-webkit-background-clip: text;
|
| 99 |
+
-webkit-text-fill-color: transparent;
|
| 100 |
+
background-clip: text;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.hero p {
|
| 104 |
+
font-size: clamp(1rem, 2vw, 1.25rem);
|
| 105 |
+
color: var(--gray);
|
| 106 |
+
max-width: 600px;
|
| 107 |
+
margin: 0 auto 2rem;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/* Main Content */
|
| 111 |
+
main {
|
| 112 |
+
max-width: 1400px;
|
| 113 |
+
margin: 0 auto;
|
| 114 |
+
padding: 2rem;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/* Flow Diagram */
|
| 118 |
+
.flow-section {
|
| 119 |
+
margin-bottom: 4rem;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.section-title {
|
| 123 |
+
font-size: 1.75rem;
|
| 124 |
+
margin-bottom: 2rem;
|
| 125 |
+
display: flex;
|
| 126 |
+
align-items: center;
|
| 127 |
+
gap: 0.75rem;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.section-title i {
|
| 131 |
+
color: var(--primary);
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.flow-container {
|
| 135 |
+
display: flex;
|
| 136 |
+
flex-wrap: wrap;
|
| 137 |
+
justify-content: center;
|
| 138 |
+
gap: 1rem;
|
| 139 |
+
align-items: center;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
.flow-step {
|
| 143 |
+
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
|
| 144 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 145 |
+
border-radius: 1rem;
|
| 146 |
+
padding: 1.5rem;
|
| 147 |
+
text-align: center;
|
| 148 |
+
min-width: 180px;
|
| 149 |
+
max-width: 220px;
|
| 150 |
+
transition: all 0.3s ease;
|
| 151 |
+
cursor: pointer;
|
| 152 |
+
position: relative;
|
| 153 |
+
overflow: hidden;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
.flow-step::before {
|
| 157 |
+
content: '';
|
| 158 |
+
position: absolute;
|
| 159 |
+
inset: 0;
|
| 160 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 161 |
+
opacity: 0;
|
| 162 |
+
transition: opacity 0.3s;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.flow-step:hover::before {
|
| 166 |
+
opacity: 0.1;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.flow-step:hover {
|
| 170 |
+
transform: translateY(-5px);
|
| 171 |
+
border-color: var(--primary);
|
| 172 |
+
box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
.flow-step.active {
|
| 176 |
+
border-color: var(--primary);
|
| 177 |
+
box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
.flow-icon {
|
| 181 |
+
width: 60px;
|
| 182 |
+
height: 60px;
|
| 183 |
+
border-radius: 50%;
|
| 184 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 185 |
+
display: flex;
|
| 186 |
+
align-items: center;
|
| 187 |
+
justify-content: center;
|
| 188 |
+
margin: 0 auto 1rem;
|
| 189 |
+
font-size: 1.5rem;
|
| 190 |
+
position: relative;
|
| 191 |
+
z-index: 1;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
.flow-step h3 {
|
| 195 |
+
font-size: 1rem;
|
| 196 |
+
margin-bottom: 0.5rem;
|
| 197 |
+
position: relative;
|
| 198 |
+
z-index: 1;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
.flow-step p {
|
| 202 |
+
font-size: 0.85rem;
|
| 203 |
+
color: var(--gray);
|
| 204 |
+
position: relative;
|
| 205 |
+
z-index: 1;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
.flow-arrow {
|
| 209 |
+
font-size: 2rem;
|
| 210 |
+
color: var(--primary);
|
| 211 |
+
animation: pulse 2s infinite;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
@keyframes pulse {
|
| 215 |
+
|
| 216 |
+
0%,
|
| 217 |
+
100% {
|
| 218 |
+
opacity: 0.5;
|
| 219 |
+
transform: translateX(0);
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
50% {
|
| 223 |
+
opacity: 1;
|
| 224 |
+
transform: translateX(5px);
|
| 225 |
+
}
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
/* Details Panel */
|
| 229 |
+
.details-panel {
|
| 230 |
+
background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.8) 100%);
|
| 231 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 232 |
+
border-radius: 1.5rem;
|
| 233 |
+
padding: 2rem;
|
| 234 |
+
margin-top: 2rem;
|
| 235 |
+
min-height: 200px;
|
| 236 |
+
transition: all 0.5s ease;
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
.details-panel h3 {
|
| 240 |
+
font-size: 1.5rem;
|
| 241 |
+
margin-bottom: 1rem;
|
| 242 |
+
color: var(--primary);
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
.details-panel p {
|
| 246 |
+
color: var(--gray);
|
| 247 |
+
line-height: 1.8;
|
| 248 |
+
margin-bottom: 1rem;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.details-panel ul {
|
| 252 |
+
list-style: none;
|
| 253 |
+
padding: 0;
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
.details-panel li {
|
| 257 |
+
padding: 0.5rem 0;
|
| 258 |
+
padding-left: 1.5rem;
|
| 259 |
+
position: relative;
|
| 260 |
+
color: var(--gray);
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
.details-panel li::before {
|
| 264 |
+
content: '→';
|
| 265 |
+
position: absolute;
|
| 266 |
+
left: 0;
|
| 267 |
+
color: var(--primary);
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
/* Features Grid */
|
| 271 |
+
.features-section {
|
| 272 |
+
margin-bottom: 4rem;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
.features-grid {
|
| 276 |
+
display: grid;
|
| 277 |
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
| 278 |
+
gap: 1.5rem;
|
| 279 |
+
}
|
| 280 |
+
|
| 281 |
+
.feature-card {
|
| 282 |
+
background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
|
| 283 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 284 |
+
border-radius: 1rem;
|
| 285 |
+
padding: 2rem;
|
| 286 |
+
transition: all 0.3s ease;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.feature-card:hover {
|
| 290 |
+
transform: translateY(-5px);
|
| 291 |
+
border-color: var(--accent);
|
| 292 |
+
box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
.feature-card i {
|
| 296 |
+
font-size: 2.5rem;
|
| 297 |
+
margin-bottom: 1rem;
|
| 298 |
+
background: linear-gradient(135deg, var(--accent), var(--primary));
|
| 299 |
+
-webkit-background-clip: text;
|
| 300 |
+
-webkit-text-fill-color: transparent;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
.feature-card h3 {
|
| 304 |
+
font-size: 1.25rem;
|
| 305 |
+
margin-bottom: 0.75rem;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
.feature-card p {
|
| 309 |
+
color: var(--gray);
|
| 310 |
+
font-size: 0.95rem;
|
| 311 |
+
line-height: 1.6;
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
/* Interactive Demo */
|
| 315 |
+
.demo-section {
|
| 316 |
+
margin-bottom: 4rem;
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
.demo-container {
|
| 320 |
+
display: grid;
|
| 321 |
+
grid-template-columns: 1fr 1fr;
|
| 322 |
+
gap: 2rem;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
@media (max-width: 768px) {
|
| 326 |
+
.demo-container {
|
| 327 |
+
grid-template-columns: 1fr;
|
| 328 |
+
}
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.demo-input,
|
| 332 |
+
.demo-output {
|
| 333 |
+
background: var(--dark);
|
| 334 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 335 |
+
border-radius: 1rem;
|
| 336 |
+
overflow: hidden;
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
.demo-header {
|
| 340 |
+
background: rgba(99, 102, 241, 0.1);
|
| 341 |
+
padding: 1rem;
|
| 342 |
+
display: flex;
|
| 343 |
+
align-items: center;
|
| 344 |
+
gap: 0.5rem;
|
| 345 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
.demo-header i {
|
| 349 |
+
color: var(--primary);
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
.demo-body {
|
| 353 |
+
padding: 1.5rem;
|
| 354 |
+
min-height: 200px;
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
.demo-input textarea {
|
| 358 |
+
width: 100%;
|
| 359 |
+
background: transparent;
|
| 360 |
+
border: none;
|
| 361 |
+
color: var(--light);
|
| 362 |
+
font-family: 'Fira Code', monospace;
|
| 363 |
+
font-size: 0.9rem;
|
| 364 |
+
resize: none;
|
| 365 |
+
min-height: 150px;
|
| 366 |
+
outline: none;
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
.demo-output .code-block {
|
| 370 |
+
background: rgba(0, 0, 0, 0.3);
|
| 371 |
+
border-radius: 0.5rem;
|
| 372 |
+
padding: 1rem;
|
| 373 |
+
font-family: 'Fira Code', monospace;
|
| 374 |
+
font-size: 0.85rem;
|
| 375 |
+
overflow-x: auto;
|
| 376 |
+
white-space: pre-wrap;
|
| 377 |
+
color: var(--accent);
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
.generate-btn {
|
| 381 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 382 |
+
border: none;
|
| 383 |
+
color: white;
|
| 384 |
+
padding: 1rem 2rem;
|
| 385 |
+
border-radius: 0.5rem;
|
| 386 |
+
font-size: 1rem;
|
| 387 |
+
cursor: pointer;
|
| 388 |
+
display: flex;
|
| 389 |
+
align-items: center;
|
| 390 |
+
gap: 0.5rem;
|
| 391 |
+
margin: 1rem auto;
|
| 392 |
+
transition: all 0.3s ease;
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
.generate-btn:hover {
|
| 396 |
+
transform: scale(1.05);
|
| 397 |
+
box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
|
| 398 |
+
}
|
| 399 |
+
|
| 400 |
+
.generate-btn:disabled {
|
| 401 |
+
opacity: 0.5;
|
| 402 |
+
cursor: not-allowed;
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
/* Tech Stack */
|
| 406 |
+
.tech-section {
|
| 407 |
+
margin-bottom: 4rem;
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
.tech-grid {
|
| 411 |
+
display: flex;
|
| 412 |
+
flex-wrap: wrap;
|
| 413 |
+
justify-content: center;
|
| 414 |
+
gap: 2rem;
|
| 415 |
+
}
|
| 416 |
+
|
| 417 |
+
.tech-item {
|
| 418 |
+
display: flex;
|
| 419 |
+
flex-direction: column;
|
| 420 |
+
align-items: center;
|
| 421 |
+
gap: 0.5rem;
|
| 422 |
+
padding: 1.5rem;
|
| 423 |
+
background: rgba(255, 255, 255, 0.02);
|
| 424 |
+
border-radius: 1rem;
|
| 425 |
+
border: 1px solid rgba(255, 255, 255, 0.05);
|
| 426 |
+
transition: all 0.3s ease;
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
.tech-item:hover {
|
| 430 |
+
background: rgba(99, 102, 241, 0.1);
|
| 431 |
+
border-color: var(--primary);
|
| 432 |
+
transform: translateY(-3px);
|
| 433 |
+
}
|
| 434 |
+
|
| 435 |
+
.tech-item i {
|
| 436 |
+
font-size: 3rem;
|
| 437 |
+
color: var(--primary);
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
.tech-item span {
|
| 441 |
+
font-size: 0.9rem;
|
| 442 |
+
color: var(--gray);
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
/* Animation Classes */
|
| 446 |
+
.fade-in {
|
| 447 |
+
animation: fadeIn 0.5s ease forwards;
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
@keyframes fadeIn {
|
| 451 |
+
from {
|
| 452 |
+
opacity: 0;
|
| 453 |
+
transform: translateY(20px);
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
to {
|
| 457 |
+
opacity: 1;
|
| 458 |
+
transform: translateY(0);
|
| 459 |
+
}
|
| 460 |
+
}
|
| 461 |
+
|
| 462 |
+
.typing {
|
| 463 |
+
overflow: hidden;
|
| 464 |
+
border-right: 2px solid var(--primary);
|
| 465 |
+
animation: typing 2s steps(40), blink 0.5s step-end infinite alternate;
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
@keyframes typing {
|
| 469 |
+
from {
|
| 470 |
+
width: 0;
|
| 471 |
+
}
|
| 472 |
+
|
| 473 |
+
to {
|
| 474 |
+
width: 100%;
|
| 475 |
+
}
|
| 476 |
+
}
|
| 477 |
+
|
| 478 |
+
@keyframes blink {
|
| 479 |
+
50% {
|
| 480 |
+
border-color: transparent;
|
| 481 |
+
}
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
/* Footer */
|
| 485 |
+
footer {
|
| 486 |
+
text-align: center;
|
| 487 |
+
padding: 2rem;
|
| 488 |
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
| 489 |
+
color: var(--gray);
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
footer a {
|
| 493 |
+
color: var(--primary);
|
| 494 |
+
text-decoration: none;
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
footer a:hover {
|
| 498 |
+
text-decoration: underline;
|
| 499 |
+
}
|
| 500 |
+
|
| 501 |
+
/* Responsive */
|
| 502 |
+
@media (max-width: 768px) {
|
| 503 |
+
.flow-container {
|
| 504 |
+
flex-direction: column;
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
.flow-arrow {
|
| 508 |
+
transform: rotate(90deg);
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
.flow-step {
|
| 512 |
+
width: 100%;
|
| 513 |
+
max-width: 100%;
|
| 514 |
+
}
|
| 515 |
+
|
| 516 |
+
header {
|
| 517 |
+
padding: 1rem;
|
| 518 |
+
}
|
| 519 |
+
|
| 520 |
+
.header-content {
|
| 521 |
+
flex-direction: column;
|
| 522 |
+
gap: 0.5rem;
|
| 523 |
+
}
|
| 524 |
+
}
|
| 525 |
+
|
| 526 |
+
/* Scrollbar */
|
| 527 |
+
::-webkit-scrollbar {
|
| 528 |
+
width: 8px;
|
| 529 |
+
}
|
| 530 |
+
|
| 531 |
+
::-webkit-scrollbar-track {
|
| 532 |
+
background: var(--darker);
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
::-webkit-scrollbar-thumb {
|
| 536 |
+
background: var(--primary);
|
| 537 |
+
border-radius: 4px;
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
::-webkit-scrollbar-thumb:hover {
|
| 541 |
+
background: var(--primary-dark);
|
| 542 |
+
}
|
| 543 |
+
</style>
|
| 544 |
+
</head>
|
| 545 |
+
|
| 546 |
+
<body>
|
| 547 |
+
<header>
|
| 548 |
+
<div class="header-content">
|
| 549 |
+
<div class="logo">
|
| 550 |
+
<i class="fas fa-code"></i>
|
| 551 |
+
AnyCoder
|
| 552 |
+
</div>
|
| 553 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">
|
| 554 |
+
<i class="fas fa-rocket"></i>
|
| 555 |
+
Built with anycoder
|
| 556 |
+
</a>
|
| 557 |
+
</div>
|
| 558 |
+
</header>
|
| 559 |
+
|
| 560 |
+
<section class="hero">
|
| 561 |
+
<h1>How AnyCoder Works</h1>
|
| 562 |
+
<p>An interactive guide to understanding the AI-powered code generation model that transforms your ideas into
|
| 563 |
+
working applications</p>
|
| 564 |
+
</section>
|
| 565 |
+
|
| 566 |
+
<main>
|
| 567 |
+
<!-- Flow Diagram Section -->
|
| 568 |
+
<section class="flow-section">
|
| 569 |
+
<h2 class="section-title">
|
| 570 |
+
<i class="fas fa-project-diagram"></i>
|
| 571 |
+
The Generation Pipeline
|
| 572 |
+
</h2>
|
| 573 |
+
|
| 574 |
+
<div class="flow-container">
|
| 575 |
+
<div class="flow-step" data-step="1" onclick="showDetails(1)">
|
| 576 |
+
<div class="flow-icon">
|
| 577 |
+
<i class="fas fa-keyboard"></i>
|
| 578 |
+
</div>
|
| 579 |
+
<h3>User Input</h3>
|
| 580 |
+
<p>Your prompt or request</p>
|
| 581 |
+
</div>
|
| 582 |
+
|
| 583 |
+
<i class="fas fa-chevron-right flow-arrow"></i>
|
| 584 |
+
|
| 585 |
+
<div class="flow-step" data-step="2" onclick="showDetails(2)">
|
| 586 |
+
<div class="flow-icon">
|
| 587 |
+
<i class="fas fa-brain"></i>
|
| 588 |
+
</div>
|
| 589 |
+
<h3>AI Processing</h3>
|
| 590 |
+
<p>Understanding context</p>
|
| 591 |
+
</div>
|
| 592 |
+
|
| 593 |
+
<i class="fas fa-chevron-right flow-arrow"></i>
|
| 594 |
+
|
| 595 |
+
<div class="flow-step" data-step="3" onclick="showDetails(3)">
|
| 596 |
+
<div class="flow-icon">
|
| 597 |
+
<i class="fas fa-cogs"></i>
|
| 598 |
+
</div>
|
| 599 |
+
<h3>Code Generation</h3>
|
| 600 |
+
<p>Creating the solution</p>
|
| 601 |
+
</div>
|
| 602 |
+
|
| 603 |
+
<i class="fas fa-chevron-right flow-arrow"></i>
|
| 604 |
+
|
| 605 |
+
<div class="flow-step" data-step="4" onclick="showDetails(4)">
|
| 606 |
+
<div class="flow-icon">
|
| 607 |
+
<i class="fas fa-check-circle"></i>
|
| 608 |
+
</div>
|
| 609 |
+
<h3>Output</h3>
|
| 610 |
+
<p>Ready-to-use code</p>
|
| 611 |
+
</div>
|
| 612 |
+
</div>
|
| 613 |
+
|
| 614 |
+
<div class="details-panel" id="detailsPanel">
|
| 615 |
+
<h3 id="detailsTitle">Click a step to learn more</h3>
|
| 616 |
+
<p id="detailsText">Select any step in the pipeline above to see detailed information about how that stage
|
| 617 |
+
works.</p>
|
| 618 |
+
<ul id="detailsList"></ul>
|
| 619 |
+
</div>
|
| 620 |
+
</section>
|
| 621 |
+
|
| 622 |
+
<!-- Features Section -->
|
| 623 |
+
<section class="features-section">
|
| 624 |
+
<h2 class="section-title">
|
| 625 |
+
<i class="fas fa-star"></i>
|
| 626 |
+
Key Capabilities
|
| 627 |
+
</h2>
|
| 628 |
+
|
| 629 |
+
<div class="features-grid">
|
| 630 |
+
<div class="feature-card">
|
| 631 |
+
<i class="fas fa-language"></i>
|
| 632 |
+
<h3>Natural Language Understanding</h3>
|
| 633 |
+
<p>Describe what you want in plain English. The model understands context, intent, and technical requirements
|
| 634 |
+
from your description.</p>
|
| 635 |
+
</div>
|
| 636 |
+
|
| 637 |
+
<div class="feature-card">
|
| 638 |
+
<i class="fas fa-code"></i>
|
| 639 |
+
<h3>Multi-Language Support</h3>
|
| 640 |
+
<p>Generate code in HTML, CSS, JavaScript, and more. The model adapts to produce the right code for your
|
| 641 |
+
needs.</p>
|
| 642 |
+
</div>
|
| 643 |
+
|
| 644 |
+
<div class="feature-card">
|
| 645 |
+
<i class="fas fa-mobile-alt"></i>
|
| 646 |
+
<h3>Responsive Design</h3>
|
| 647 |
+
<p>All generated UI code includes modern responsive design principles, ensuring your application works on any
|
| 648 |
+
device.</p>
|
| 649 |
+
</div>
|
| 650 |
+
|
| 651 |
+
<div class="feature-card">
|
| 652 |
+
<i class="fas fa-image"></i>
|
| 653 |
+
<h3>Image Understanding</h3>
|
| 654 |
+
<p>Upload images and the model can analyze them to better understand your requirements and generate matching
|
| 655 |
+
code.</p>
|
| 656 |
+
</div>
|
| 657 |
+
|
| 658 |
+
<div class="feature-card">
|
| 659 |
+
<i class="fas fa-bolt"></i>
|
| 660 |
+
<h3>Instant Execution</h3>
|
| 661 |
+
<p>Generated code is complete and ready to run immediately. No additional setup or configuration needed.</p>
|
| 662 |
+
</div>
|
| 663 |
+
|
| 664 |
+
<div class="feature-card">
|
| 665 |
+
<i class="fas fa-palette"></i>
|
| 666 |
+
<h3>Modern Styling</h3>
|
| 667 |
+
<p>Uses modern CSS features including flexbox, grid, custom properties, and smooth animations for beautiful
|
| 668 |
+
interfaces.</p>
|
| 669 |
+
</div>
|
| 670 |
+
</div>
|
| 671 |
+
</section>
|
| 672 |
+
|
| 673 |
+
<!-- Interactive Demo Section -->
|
| 674 |
+
<section class="demo-section">
|
| 675 |
+
<h2 class="section-title">
|
| 676 |
+
<i class="fas fa-play-circle"></i>
|
| 677 |
+
Try It Yourself (Simulation)
|
| 678 |
+
</h2>
|
| 679 |
+
|
| 680 |
+
<div class="demo-container">
|
| 681 |
+
<div class="demo-input">
|
| 682 |
+
<div class="demo-header">
|
| 683 |
+
<i class="fas fa-terminal"></i>
|
| 684 |
+
<span>Your Prompt</span>
|
| 685 |
+
</div>
|
| 686 |
+
<div class="demo-body">
|
| 687 |
+
<textarea id="promptInput" placeholder="Type your request here... e.g., 'Create a simple counter app'">Create a beautiful button that changes color when clicked</textarea>
|
| 688 |
+
</div>
|
| 689 |
+
</div>
|
| 690 |
+
|
| 691 |
+
<div class="demo-output">
|
| 692 |
+
<div class="demo-header">
|
| 693 |
+
<i class="fas fa-file-code"></i>
|
| 694 |
+
<span>Generated Code</span>
|
| 695 |
+
</div>
|
| 696 |
+
<div class="demo-body">
|
| 697 |
+
<div class="code-block" id="codeOutput">// Click "Generate" to see the magic happen!</div>
|
| 698 |
+
</div>
|
| 699 |
+
</div>
|
| 700 |
+
</div>
|
| 701 |
+
|
| 702 |
+
<button class="generate-btn" id="generateBtn" onclick="simulateGeneration()">
|
| 703 |
+
<i class="fas fa-magic"></i>
|
| 704 |
+
Generate Code
|
| 705 |
+
</button>
|
| 706 |
+
</section>
|
| 707 |
+
|
| 708 |
+
<!-- Tech Stack Section -->
|
| 709 |
+
<section class="tech-section">
|
| 710 |
+
<h2 class="section-title">
|
| 711 |
+
<i class="fas fa-layer-group"></i>
|
| 712 |
+
Technology Stack
|
| 713 |
+
</h2>
|
| 714 |
+
|
| 715 |
+
<div class="tech-grid">
|
| 716 |
+
<div class="tech-item">
|
| 717 |
+
<i class="fab fa-html5"></i>
|
| 718 |
+
<span>HTML5</span>
|
| 719 |
+
</div>
|
| 720 |
+
<div class="tech-item">
|
| 721 |
+
<i class="fab fa-css3-alt"></i>
|
| 722 |
+
<span>CSS3</span>
|
| 723 |
+
</div>
|
| 724 |
+
<div class="tech-item">
|
| 725 |
+
<i class="fab fa-js-square"></i>
|
| 726 |
+
<span>JavaScript</span>
|
| 727 |
+
</div>
|
| 728 |
+
<div class="tech-item">
|
| 729 |
+
<i class="fas fa-robot"></i>
|
| 730 |
+
<span>AI Model</span>
|
| 731 |
+
</div>
|
| 732 |
+
<div class="tech-item">
|
| 733 |
+
<i class="fas fa-cloud"></i>
|
| 734 |
+
<span>Cloud API</span>
|
| 735 |
+
</div>
|
| 736 |
+
<div class="tech-item">
|
| 737 |
+
<i class="fas fa-rocket"></i>
|
| 738 |
+
<span>Hugging Face</span>
|
| 739 |
+
</div>
|
| 740 |
+
</div>
|
| 741 |
+
</section>
|
| 742 |
+
</main>
|
| 743 |
+
|
| 744 |
+
<footer>
|
| 745 |
+
<p>
|
| 746 |
+
Powered by advanced AI technology |
|
| 747 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">Try AnyCoder</a>
|
| 748 |
+
</p>
|
| 749 |
+
</footer>
|
| 750 |
+
|
| 751 |
+
<script>
|
| 752 |
+
// Step details data
|
| 753 |
+
const stepDetails = {
|
| 754 |
+
1: {
|
| 755 |
+
title: "📝 Step 1: User Input",
|
| 756 |
+
text: "The process begins when you provide your request. This can be a simple text description of what you want to build, or it can include an image for visual reference.",
|
| 757 |
+
list: [
|
| 758 |
+
"Text prompts describing the desired application",
|
| 759 |
+
"Optional image uploads for visual context",
|
| 760 |
+
"Natural language - no coding knowledge required",
|
| 761 |
+
"Can specify technologies, styles, or features"
|
| 762 |
+
]
|
| 763 |
+
},
|
| 764 |
+
2: {
|
| 765 |
+
title: "🧠 Step 2: AI Processing",
|
| 766 |
+
text: "The AI model analyzes your input using advanced natural language processing. It understands the context, identifies requirements, and plans the code structure.",
|
| 767 |
+
list: [
|
| 768 |
+
"Tokenization and semantic analysis",
|
| 769 |
+
"Context understanding and intent recognition",
|
| 770 |
+
"Image analysis (if provided) using vision capabilities",
|
| 771 |
+
"Planning optimal code architecture"
|
| 772 |
+
]
|
| 773 |
+
},
|
| 774 |
+
3: {
|
| 775 |
+
title: "⚙️ Step 3: Code Generation",
|
| 776 |
+
text: "Based on its understanding, the model generates complete, working code. It applies best practices, modern patterns, and ensures the code is clean and maintainable.",
|
| 777 |
+
list: [
|
| 778 |
+
"HTML structure generation",
|
| 779 |
+
"CSS styling with modern features",
|
| 780 |
+
"JavaScript functionality implementation",
|
| 781 |
+
"Responsive design integration",
|
| 782 |
+
"Accessibility considerations"
|
| 783 |
+
]
|
| 784 |
+
},
|
| 785 |
+
4: {
|
| 786 |
+
title: "✅ Step 4: Output",
|
| 787 |
+
text: "The final code is delivered as a complete, ready-to-run solution. You can copy it directly into your project or run it immediately in a browser.",
|
| 788 |
+
list: [
|
| 789 |
+
"Complete, executable HTML file",
|
| 790 |
+
"All dependencies included or linked",
|
| 791 |
+
"Properly formatted and commented code",
|
| 792 |
+
"Ready for immediate use or further customization"
|
| 793 |
+
]
|
| 794 |
+
}
|
| 795 |
+
};
|
| 796 |
+
|
| 797 |
+
// Show details for selected step
|
| 798 |
+
function showDetails(step) {
|
| 799 |
+
// Remove active class from all steps
|
| 800 |
+
document.querySelectorAll('.flow-step').forEach(el => {
|
| 801 |
+
el.classList.remove('active');
|
| 802 |
+
});
|
| 803 |
+
|
| 804 |
+
// Add active class to selected step
|
| 805 |
+
document.querySelector(`[data-step="${step}"]`).classList.add('active');
|
| 806 |
+
|
| 807 |
+
// Update details panel
|
| 808 |
+
const details = stepDetails[step];
|
| 809 |
+
const panel = document.getElementById('detailsPanel');
|
| 810 |
+
|
| 811 |
+
panel.innerHTML = `
|
| 812 |
+
<h3>${details.title}</h3>
|
| 813 |
+
<p>${details.text}</p>
|
| 814 |
+
<ul>
|
| 815 |
+
${details.list.map(item => `<li>${item}</li>`).join('')}
|
| 816 |
+
</ul>
|
| 817 |
+
`;
|
| 818 |
+
|
| 819 |
+
panel.classList.add('fade-in');
|
| 820 |
+
setTimeout(() => panel.classList.remove('fade-in'), 500);
|
| 821 |
+
}
|
| 822 |
+
|
| 823 |
+
// Simulate code generation
|
| 824 |
+
function simulateGeneration() {
|
| 825 |
+
const btn = document.getElementById('generateBtn');
|
| 826 |
+
const output = document.getElementById('codeOutput');
|
| 827 |
+
const input = document.getElementById('promptInput').value;
|
| 828 |
+
|
| 829 |
+
btn.disabled = true;
|
| 830 |
+
btn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Generating...';
|
| 831 |
+
|
| 832 |
+
// Simulated generated code based on input
|
| 833 |
+
const generatedCode = `<!DOCTYPE html>
|
| 834 |
+
<html lang="en">
|
| 835 |
+
<head>
|
| 836 |
+
<meta charset="UTF-8">
|
| 837 |
+
<title>Generated App</title>
|
| 838 |
+
<style>
|
| 839 |
+
.magic-button {
|
| 840 |
+
padding: 1rem 2rem;
|
| 841 |
+
font-size: 1.2rem;
|
| 842 |
+
border: none;
|
| 843 |
+
border-radius: 8px;
|
| 844 |
+
background: linear-gradient(
|
| 845 |
+
135deg, #6366f1, #ec4899
|
| 846 |
+
);
|
| 847 |
+
color: white;
|
| 848 |
+
cursor: pointer;
|
| 849 |
+
transition: all 0.3s ease;
|
| 850 |
+
}
|
| 851 |
+
.magic-button:hover {
|
| 852 |
+
transform: scale(1.05);
|
| 853 |
+
box-shadow: 0 10px 30px
|
| 854 |
+
rgba(99, 102, 241, 0.4);
|
| 855 |
+
}
|
| 856 |
+
.magic-button.clicked {
|
| 857 |
+
background: linear-gradient(
|
| 858 |
+
135deg, #06b6d4, #10b981
|
| 859 |
+
);
|
| 860 |
+
}
|
| 861 |
+
</style>
|
| 862 |
+
</head>
|
| 863 |
+
<body>
|
| 864 |
+
<button class="magic-button"
|
| 865 |
+
onclick="this.classList.toggle('clicked')">
|
| 866 |
+
Click Me!
|
| 867 |
+
</button>
|
| 868 |
+
</body>
|
| 869 |
+
</html>`;
|
| 870 |
+
|
| 871 |
+
// Simulate typing effect
|
| 872 |
+
let i = 0;
|
| 873 |
+
output.textContent = '';
|
| 874 |
+
|
| 875 |
+
function typeCode() {
|
| 876 |
+
if (i < generatedCode.length) {
|
| 877 |
+
output.textContent += generatedCode.charAt(i);
|
| 878 |
+
i++;
|
| 879 |
+
setTimeout(typeCode, 10);
|
| 880 |
+
} else {
|
| 881 |
+
btn.disabled = false;
|
| 882 |
+
btn.innerHTML = '<i class="fas fa-magic"></i> Generate Code';
|
| 883 |
+
}
|
| 884 |
+
}
|
| 885 |
+
|
| 886 |
+
setTimeout(typeCode, 500);
|
| 887 |
+
}
|
| 888 |
+
|
| 889 |
+
// Auto-select first step on load
|
| 890 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 891 |
+
showDetails(1);
|
| 892 |
+
|
| 893 |
+
// Add scroll animations
|
| 894 |
+
const observer = new IntersectionObserver((entries) => {
|
| 895 |
+
entries.forEach(entry => {
|
| 896 |
+
if (entry.isIntersecting) {
|
| 897 |
+
entry.target.classList.add('fade-in');
|
| 898 |
+
}
|
| 899 |
+
});
|
| 900 |
+
}, { threshold: 0.1 });
|
| 901 |
+
|
| 902 |
+
document.querySelectorAll('.feature-card, .tech-item').forEach(el => {
|
| 903 |
+
observer.observe(el);
|
| 904 |
+
});
|
| 905 |
+
});
|
| 906 |
+
|
| 907 |
+
// Auto-cycle through steps
|
| 908 |
+
let currentStep = 1;
|
| 909 |
+
setInterval(() => {
|
| 910 |
+
currentStep = currentStep >= 4 ? 1 : currentStep + 1;
|
| 911 |
+
showDetails(currentStep);
|
| 912 |
+
}, 5000);
|
| 913 |
+
</script>
|
| 914 |
+
</body>
|
| 915 |
+
|
| 916 |
+
</html>
|