|
177 | 177 |
|
178 | 178 | <div class="page-body"> |
179 | 179 | <div class="main"> |
180 | | - <div class="left" style="display:flex;flex-direction:column;gap:0.75rem;min-width:0;flex:1;"> |
181 | | - <div style="border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.06);"> |
| 180 | + <div class="left" style="display:flex;flex-direction:column;gap:1rem;min-width:0;flex:1;"> |
| 181 | + <p style="font-size:1rem;color:#444;line-height:1.7;max-width:480px;font-family:'SpaceGrotesk',sans-serif;"> |
| 182 | + C++ Mode is a plugin for <a href="https://processing.org" style="color:#111;border-bottom:1px solid #ccc;">Processing</a> that lets you write native C++ sketches using the Processing API. Get the performance of compiled C++ with the simplicity of Processing's creative coding environment. |
| 183 | + </p> |
| 184 | + <div class="hero-actions"> |
| 185 | + <a class="hero-link" href="/reference">Reference</a> |
| 186 | + <a class="hero-btn-download" href="/downloads">Download</a> |
| 187 | + </div> |
| 188 | + <div id="hero-editor-panel" style="border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.06);max-height:0;opacity:0;transition:max-height 0.4s ease,opacity 0.3s ease;"> |
182 | 189 | <div style="background:#f5f5f5;border-bottom:1px solid #e0e0e0;padding:6px 12px;display:flex;align-items:center;gap:8px;"> |
183 | 190 | <span style="font-family:monospace;font-size:11px;color:#888;flex:1;">sketch.cpp</span> |
184 | 191 | <button id="hero-run-btn" style="background:#e8b400;color:#111;border:none;padding:4px 14px;border-radius:4px;font-size:12px;font-weight:700;cursor:pointer;">▶ Run</button> |
185 | 192 | </div> |
186 | | - <textarea id="hero-editor"></textarea> |
187 | | - </div> |
188 | | - <div class="hero-actions"> |
189 | | - <a class="hero-link" href="/reference">Reference</a> |
190 | | - <a class="hero-btn-download" href="/downloads">Download</a> |
| 193 | + <div style="overflow-x:auto;"><textarea id="hero-editor"></textarea></div> |
191 | 194 | </div> |
192 | 195 | <p style="font-size:0.8rem;color:#aaa;">Independently developed by Jose Gonzalez Llamas</p> |
193 | 196 | </div> |
194 | 197 | <div class="right" style="display:flex;align-items:center;gap:0.75rem;flex-shrink:0;"> |
195 | | - <svg width="36" height="36" viewBox="0 0 36 36"><path d="M4 18L28 18M20 10L28 18L20 26" stroke="#e8b400" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg> |
| 198 | + <div style="display:flex;flex-direction:column;align-items:center;gap:0.5rem;"> |
| 199 | + <button id="hero-sketch-run-btn" style="background:#e8b400;color:#111;border:none;padding:5px 16px;border-radius:4px;font-size:12px;font-weight:700;cursor:pointer;display:none;">▶ Run</button> |
| 200 | + <button onclick="toggleHeroEditor()" style="background:none;border:none;cursor:pointer;padding:4px;" title="Open editor"> |
| 201 | + <svg id="hero-arrow-svg" width="36" height="36" viewBox="0 0 36 36" style="transition:transform 0.3s ease;"> |
| 202 | + <path d="M28 18L4 18M12 10L4 18L12 26" stroke="#e8b400" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" fill="none"/> |
| 203 | + </svg> |
| 204 | + </button> |
| 205 | + </div> |
196 | 206 | <div id="hero-preview" style="width:320px;height:380px;position:relative;overflow:hidden;border-radius:8px;box-shadow:0 4px 24px rgba(0,0,0,0.08);flex-shrink:0;background:#fff;"> |
197 | 207 | <iframe id="hero-iframe" sandbox="allow-scripts allow-same-origin" |
198 | 208 | style="position:absolute;top:0;left:0;width:600px;height:700px;border:none;transform-origin:top left;transform:scale(0.533);" |
|
201 | 211 | </div> |
202 | 212 | <div class="scroll-hint">↓</div> |
203 | 213 | </div> |
204 | | - |
205 | 214 | <div class="examples-section"> |
206 | 215 | <h2>Examples</h2> |
207 | 216 | <div class="examples-grid"> |
|
0 commit comments