Skip to content

Instantly share code, notes, and snippets.

@azs06
Created May 10, 2026 13:15
Show Gist options
  • Select an option

  • Save azs06/b3152aac8990a4743c31a5a62f14531c to your computer and use it in GitHub Desktop.

Select an option

Save azs06/b3152aac8990a4743c31a5a62f14531c to your computer and use it in GitHub Desktop.
Codex interactive HTML demo for soikat.dev gist viewer
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Codex Interactive HTML Demo</title>
<style>
:root {
color-scheme: light dark;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
min-height: 100vh;
margin: 0;
display: grid;
place-items: center;
background: #f6f0e6;
color: #1f2933;
}
main {
width: min(38rem, calc(100vw - 2rem));
padding: 2rem;
border: 1px solid #ded3c3;
border-radius: 8px;
background: #fffaf2;
box-shadow: 0 12px 35px rgba(31, 41, 51, 0.12);
}
h1 {
margin: 0 0 0.75rem;
font-size: clamp(1.75rem, 5vw, 3rem);
line-height: 1.05;
}
p {
margin: 0 0 1.5rem;
color: #59636e;
}
button {
border: 0;
border-radius: 6px;
padding: 0.75rem 1rem;
background: #b85c38;
color: white;
font: inherit;
font-weight: 700;
cursor: pointer;
}
output {
display: block;
margin-top: 1rem;
font-weight: 700;
}
</style>
</head>
<body>
<main>
<h1>Interactive HTML from a gist</h1>
<p>This file was created by Codex as a quick demo for soikat.dev/gist/{gist_id}.</p>
<button type="button">Count clicks</button>
<output>Clicks: 0</output>
</main>
<script>
const button = document.querySelector("button");
const output = document.querySelector("output");
let clicks = 0;
button.addEventListener("click", () => {
clicks += 1;
output.textContent = `Clicks: ${clicks}`;
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment