Created
July 14, 2026 14:08
-
-
Save tonylampada/9116e452d2be076899ac80ea7a235523 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>gistpreview demo</title> | |
| <style> | |
| :root { color-scheme: light dark; } | |
| body { margin:0; font-family: system-ui, sans-serif; display:grid; place-items:center; min-height:100vh; | |
| background: linear-gradient(135deg,#58b6ff,#1b3a5c); color:#fff; } | |
| .card { text-align:center; padding:2rem 2.5rem; background:rgba(0,0,0,.25); | |
| border-radius:16px; backdrop-filter:blur(6px); box-shadow:0 8px 40px rgba(0,0,0,.3); } | |
| h1 { margin:.2rem 0; font-size:2rem; } | |
| p { margin:.4rem 0; opacity:.9; } | |
| button { margin-top:1rem; padding:.6rem 1.2rem; border:0; border-radius:8px; | |
| font-size:1rem; cursor:pointer; background:#fff; color:#1b3a5c; } | |
| #n { font-variant-numeric: tabular-nums; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| <h1>👋 gistpreview works</h1> | |
| <p>This HTML lives in a GitHub gist, rendered live.</p> | |
| <p>Clicks: <span id="n">0</span></p> | |
| <button id="b">Click me</button> | |
| </div> | |
| <script> | |
| let n = 0; | |
| document.getElementById('b').onclick = () => { | |
| document.getElementById('n').textContent = ++n; | |
| }; | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment