|
79 | 79 | </div> |
80 | 80 | <div class="copy-button-container"> |
81 | 81 | <code class="copy-text">npx @usrrname/cursorrules</code> |
82 | | - <button class="copy-button" aria-label="Copy command to clipboard" onclick="copyToClipboard()"> |
83 | | - <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" |
84 | | - stroke-linejoin="round"> |
85 | | - <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect> |
86 | | - <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path> |
87 | | - </svg> |
88 | | - Copy |
89 | | - </button> |
90 | | - </div> |
| 82 | + <button class="copy-button" aria-label="Copy command to clipboard" onclick="copyToClipboard()"> |
| 83 | + <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" |
| 84 | + stroke-linejoin="round"> |
| 85 | + <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect> |
| 86 | + <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path> |
| 87 | + </svg> |
| 88 | + Copy |
| 89 | + </button> |
| 90 | + </div> |
91 | 91 | </div> |
92 | 92 | </div> |
93 | 93 | </div> |
|
201 | 201 | </div> |
202 | 202 | <div class="type">Normal / Electric</div> |
203 | 203 | </div> |
204 | | - </div> |
| 204 | + </div> |
205 | 205 |
|
206 | 206 | <!-- SageSoftwareDaddy Card --> |
207 | 207 | <div class="card sage"> |
|
232 | 232 | </div> |
233 | 233 | <div class="type">Ice / Ground</div> |
234 | 234 | </div> |
235 | | - </div> |
| 235 | + </div> |
236 | 236 |
|
237 | 237 | <!-- Spellchuck Card --> |
238 | 238 | <div class="card fairy"> |
239 | 239 | <div class="card-header"> |
240 | 240 | <span class="pokemon-name">Spellchuck</span> |
241 | 241 | <span class="hp">HP 180</span> |
242 | | - </div> |
243 | | - <div class="pokemon-info"> |
244 | | - Documentation AI Agent. Length: 4'11", Weight: 95 lbs. |
245 | | - </div> |
246 | | - <div class="image-container"> |
| 242 | + </div> |
| 243 | + <div class="pokemon-info"> |
| 244 | + Documentation AI Agent. Length: 4'11", Weight: 95 lbs. |
| 245 | + </div> |
| 246 | + <div class="image-container"> |
247 | 247 | <img loading="lazy" src="https://gifdb.com/images/high/anime-elf-frieren-going-to-eat-cake-33rvseyebg1a1wgj.gif" |
248 | 248 | alt="Elf Frieren" class="pokemon-image"> |
249 | 249 | </div> |
|
317 | 317 | </div> |
318 | 318 | <div class="chat-header"> |
319 | 319 | <div class="chat-title"> |
320 | | - <button class="file-name"><span style="color: #ffa500;"><> </span>index.html</button> |
321 | | - <button class="terminal-title">Custom Pokemon Card Creation</button> |
| 320 | + <button class="file-name" onclick="toggleView('.editor-container')"><span |
| 321 | + style="color: #ffa500;"><> </span>index.html</button> |
| 322 | + <button class="terminal-title" onclick="toggleView('.chat-messages')">Custom Pokemon Card Creation</button> |
322 | 323 | </div> |
323 | 324 | </div> |
324 | 325 | <div class="chat-messages"> |
325 | | - <div class="message user-message"> |
326 | | - KawaiiSamurai are you sure we've added all the ai agent information as pokemon cards? |
327 | | - </div> |
| 326 | + <div class="previous-messages"> |
| 327 | + <div class="chat-title"> |
| 328 | + <div class="file-name"><span style="color: #ffa500;"><> </span>index.html</div> |
| 329 | + </div> |
| 330 | + <div class="message user-message"> |
| 331 | + KawaiiSamurai are you sure we've added all the ai agent information as pokemon cards? |
| 332 | + </div> |
| 333 | + </div> |
328 | 334 | <div class="message"> |
329 | 335 | <div><i>Adjusts kawaii glasses with a sparkle ✨</i></div> |
330 | 336 | <p> |
331 | 337 | Oh my goodness, you're right desu! I notice we're missing ThirstySimp-chan from our Pokemon card |
332 | 338 | collection! Let me add that card right away with the same kawaii styling as the others! |
333 | 339 | </p> |
334 | 340 | </div> |
335 | | - |
336 | | - <div class="generating"> |
337 | | - Generating... |
338 | | - </div> |
339 | | - |
340 | | - <div class="message"> |
341 | | - <span>Kawaii desu ne! (。♥‿♥。) I've created a super cute chat component that looks just like the Cursor chat |
342 | | - interface! Here are the kawaii features I included:</sp> |
343 | | - <ol> |
344 | | - <li>Visual Style ✨</li> |
345 | | - <ul> |
346 | | - <li>Dark theme matching Cursor (#1e1e1e background)</li> |
347 | | - <li>Pretty macOS window buttons</li> |
348 | | - <li>Nice rounded corners (8px border-radius)</li> |
349 | | - <li>Beautiful scrollbar design</li> |
350 | | - </ul> |
351 | | - <li>Message Layout 📝</li> |
352 | | - <ul> |
353 | | - <li>User messages in light color (#d4d4d4)</li> |
354 | | - <li>Assistant messages in pretty purple (#c586c0)</li> |
355 | | - <li>Cute action text in blue (#569cd6)</li> |
356 | | - <li>Proper spacing and margins</li> |
357 | | - </ul> |
358 | | - <li>Header Design 🎀</li> |
359 | | - <ul> |
360 | | - <li>File name in pretty blue</li> |
361 | | - <li>Clean title layout</li> |
362 | | - <li>Nice border separation</li> |
363 | | - </ul> |
364 | | - |
365 | | - <li>Interactive Elements 🖱️</li> |
366 | | - <ul> |
367 | | - <li>Hover effects on buttons</li> |
368 | | - <li>Smooth scrolling</li> |
369 | | - <li>Stop button with icon</li> |
370 | | - </ul> |
371 | | - <li>Typography 📚</li> |
372 | | - <ul> |
373 | | - <li>Monaco/Consolas font for that coding feel</li> |
374 | | - <li>Perfect font sizes (13-14px)</li> |
375 | | - <li>Nice line height (1.5)</li> |
376 | | - </ul> |
377 | | - </ol> |
378 | | - <span>Would you like me to add more kawaii features or adjust anything? Maybe add some sparkly |
379 | | - animations |
380 | | - or more message examples? (ノ◕ヮ◕)ノ:・゚✧</span> |
381 | | - </div> |
382 | 341 | </div> |
383 | 342 | </div> |
384 | | - </div> |
| 343 | +</div> |
385 | 344 | <script> |
| 345 | + function toggleView(viewToShow) { |
| 346 | + const chatMessages = document.querySelector('.chat-messages'); |
| 347 | + const view = document.querySelector(viewToShow); |
| 348 | + |
| 349 | + if (viewToShow === '.editor-container') { |
| 350 | + chatMessages.style.display = 'none'; |
| 351 | + view.style.display = 'block'; |
| 352 | + } else { |
| 353 | + chatMessages.style.display = 'block'; |
| 354 | + } |
| 355 | + } |
386 | 356 | function copyToClipboard() { |
387 | 357 | const text = 'npx @usrrname/cursorrules'; |
388 | 358 | navigator.clipboard.writeText(text).then(() => { |
389 | 359 | const button = document.querySelector('.copy-button'); |
390 | 360 | button.classList.add('copied'); |
391 | 361 | button.innerHTML = ` |
392 | | - <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
393 | | - <polyline points="20 6 9 17 4 12"></polyline> |
394 | | - </svg> |
395 | | - Copied! |
396 | | - `; |
| 362 | + svg viewBox="0 0 24 24" fill="none" stroke="cu ke-width="2" stroke-linecap="round "> |
| 363 | + <polyl </polyline> |
| 364 | + ed! |
| 365 | + `; |
397 | 366 | setTimeout(() => { |
398 | 367 | button.classList.remove('copied'); |
399 | 368 | button.innerHTML = ` |
400 | | - <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
401 | | - <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect> |
402 | | - <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path> |
403 | | - </svg> |
404 | | - Copy |
405 | | - `; |
| 369 | + <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 370 | + <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect> |
| 371 | + <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path> |
| 372 | + </svg> |
| 373 | + Copy |
| 374 | + `; |
406 | 375 | }, 2000); |
407 | 376 | }); |
408 | 377 | } |
|
0 commit comments