|
| 1 | +export type DemoCategory = |
| 2 | + | "3D / Animation" |
| 3 | + | "Data Visualization" |
| 4 | + | "Diagrams" |
| 5 | + | "Interactive" |
| 6 | + | "UI Components"; |
| 7 | + |
| 8 | +export interface DemoItem { |
| 9 | + id: string; |
| 10 | + title: string; |
| 11 | + description: string; |
| 12 | + category: DemoCategory; |
| 13 | + emoji: string; |
| 14 | + prompt: string; |
| 15 | +} |
| 16 | + |
| 17 | +export const DEMO_EXAMPLES: DemoItem[] = [ |
| 18 | + { |
| 19 | + id: "demo-pitch-roll-yaw", |
| 20 | + title: "Pitch, Roll & Yaw", |
| 21 | + description: |
| 22 | + "Interactive 3D airplane explaining pitch, roll, and yaw with control buttons", |
| 23 | + category: "3D / Animation", |
| 24 | + emoji: "✈️", |
| 25 | + prompt: |
| 26 | + "Create a 3D plane in Three.js to explain how pitch, roll, and yaw work. Give me buttons to control each axis. Add labels showing which rotation is which.", |
| 27 | + }, |
| 28 | + { |
| 29 | + id: "demo-weather", |
| 30 | + title: "Weather Card", |
| 31 | + description: |
| 32 | + "Current weather conditions with temperature, humidity, wind, and UV index", |
| 33 | + category: "UI Components", |
| 34 | + emoji: "🌤️", |
| 35 | + prompt: |
| 36 | + "Create a beautiful weather card showing current conditions for San Francisco with temperature, humidity, wind speed, UV index, and a 5-day mini forecast.", |
| 37 | + }, |
| 38 | + { |
| 39 | + id: "demo-binary-search", |
| 40 | + title: "Binary Search", |
| 41 | + description: |
| 42 | + "Step-by-step visualization of binary search on a sorted array", |
| 43 | + category: "Diagrams", |
| 44 | + emoji: "🔍", |
| 45 | + prompt: |
| 46 | + "Visualize how binary search works on a sorted list. Step by step with animation. Show the high, low, and mid pointers moving.", |
| 47 | + }, |
| 48 | + { |
| 49 | + id: "demo-solar-system", |
| 50 | + title: "Solar System", |
| 51 | + description: |
| 52 | + "3D solar system with orbiting planets you can click for facts", |
| 53 | + category: "3D / Animation", |
| 54 | + emoji: "🪐", |
| 55 | + prompt: |
| 56 | + "Build a 3D solar system with orbiting planets using Three.js. Let me click on each planet to see facts about it. Include realistic relative sizes and orbital speeds.", |
| 57 | + }, |
| 58 | + { |
| 59 | + id: "demo-dashboard", |
| 60 | + title: "KPI Dashboard", |
| 61 | + description: |
| 62 | + "Quarterly performance dashboard with metrics cards and bar chart", |
| 63 | + category: "Data Visualization", |
| 64 | + emoji: "📊", |
| 65 | + prompt: |
| 66 | + "Create a KPI dashboard showing Q1 2026 performance with revenue, active users, and conversion rate. Include a monthly revenue bar chart and trend indicators.", |
| 67 | + }, |
| 68 | + { |
| 69 | + id: "demo-sorting", |
| 70 | + title: "Sorting Comparison", |
| 71 | + description: |
| 72 | + "Animated side-by-side comparison of bubble sort vs quicksort", |
| 73 | + category: "Diagrams", |
| 74 | + emoji: "📶", |
| 75 | + prompt: |
| 76 | + "Create an animated comparison of bubble sort vs quicksort running side by side on the same random array. Add speed controls and a step counter.", |
| 77 | + }, |
| 78 | + { |
| 79 | + id: "demo-pomodoro", |
| 80 | + title: "Pomodoro Timer", |
| 81 | + description: |
| 82 | + "Focus timer with circular progress ring, session counter, and controls", |
| 83 | + category: "Interactive", |
| 84 | + emoji: "🍅", |
| 85 | + prompt: |
| 86 | + "Build a Pomodoro timer with a circular progress ring, start/pause/reset buttons, and a session counter. Use 25 min work / 5 min break intervals. Make it look clean and minimal.", |
| 87 | + }, |
| 88 | + { |
| 89 | + id: "demo-neural-network", |
| 90 | + title: "Neural Network", |
| 91 | + description: |
| 92 | + "Interactive neural network diagram with animated forward pass", |
| 93 | + category: "Diagrams", |
| 94 | + emoji: "🧠", |
| 95 | + prompt: |
| 96 | + "Visualize a simple neural network with input, hidden, and output layers. Animate the forward pass showing data flowing through the network. Let me adjust the number of neurons per layer.", |
| 97 | + }, |
| 98 | + { |
| 99 | + id: "demo-invoice", |
| 100 | + title: "Invoice Card", |
| 101 | + description: |
| 102 | + "Compact invoice card with amount, client info, and action buttons", |
| 103 | + category: "UI Components", |
| 104 | + emoji: "🧾", |
| 105 | + prompt: |
| 106 | + "Create an invoice card showing a monthly billing summary with client name, amount due, invoice number, and send/expand action buttons.", |
| 107 | + }, |
| 108 | + { |
| 109 | + id: "demo-music-visualizer", |
| 110 | + title: "Music Equalizer", |
| 111 | + description: |
| 112 | + "Audio equalizer visualization with animated frequency bars and controls", |
| 113 | + category: "3D / Animation", |
| 114 | + emoji: "🎵", |
| 115 | + prompt: |
| 116 | + "Create a music equalizer visualization with animated bars that respond to frequency sliders. Add controls for bass, mid, and treble. Use a gradient color scheme.", |
| 117 | + }, |
| 118 | +]; |
| 119 | + |
| 120 | +export const DEMO_CATEGORIES: DemoCategory[] = [ |
| 121 | + "3D / Animation", |
| 122 | + "Data Visualization", |
| 123 | + "Diagrams", |
| 124 | + "Interactive", |
| 125 | + "UI Components", |
| 126 | +]; |
0 commit comments